hello

 

  1. Summary: a terse one-line description of hello. 
  2. Name: hello 
  3. Version: 1.0 
  4. Release: 1 
  5. License: Freely redistributable without restriction 
  6. Group: Applications/Productivity 
  7. Source: hello-1.0.tar.gz 
  8. BuildRoot: %{_tmppath}/%{name}-root 
  9. BuildArch: i686 
  10. URL: http://www.hello.org 
  11. PreReq: pam 
  12. Requires: httpd 
  13. BuildRequires: gcc 
  14.  
  15.  
  16. %description 
  17. this is a test 
  18.  
  19. %prep 
  20. %setup -q 
  21.  
  22. %build 
  23. make 
  24.  
  25. %install 
  26. rm -rf ${RPM_BUILD_ROOT} 
  27. mkdir -p ${RPM_BUILD_ROOT}/usr/local/{lib,bin,share/man/man1} 
  28. mkdir -p ${RPM_BUILD_ROOT}/etc/ld.so.conf.d 
  29. install libhello.so.1.0 ${RPM_BUILD_ROOT}/usr/local/lib 
  30. install hello           ${RPM_BUILD_ROOT}/usr/local/bin 
  31. install hello.1         ${RPM_BUILD_ROOT}/usr/local/share/man/man1 
  32. install hello.conf      ${RPM_BUILD_ROOT}/etc/ld.so.conf.d 
  33.  
  34.  
  35. %files 
  36. %defattr(-,root,root) 
  37. %config(noreplace) /etc/ld.so.conf.d/hello.conf 
  38. /usr/local/lib/libhello.so.1.0 
  39. /usr/local/bin/hello/ 
  40. %doc /usr/local/share/man/man1/hello.1 
  41. %doc README 
  42.  
  43. %clean 
  44. rm -rf ${RPM_BUILD_ROOT} 
  45. make clean 
  46.  
  47.  
  48. %post 
  49. ln -sf libhello.so.1.0  /usr/local/lib/libhello.so.1 
  50. ln -sf libhello.so.1    /usr/local/lib/libhello.so 
  51. /sbin/ldconfig 
  52.  
  53. %changelog 
  54. * Sat Oct 4 2010 Chen  <chen@redhat.com> 1.0-1 
  55. - first build 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章