Want more features on Pastebin? Sign Up, it's FREE!
Guest

lib.spec and program.spec

By: a guest on Feb 20th, 2013  |  syntax: None  |  size: 0.91 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. lib.spec:
  2.  
  3. Summary: libtest
  4. Name: libtest
  5. Version: 1.0
  6. Release: 1
  7. Group: test
  8. License: test
  9. Source: %{expand:%%(pwd)}
  10. BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
  11.  
  12. AutoReqProv: no
  13.  
  14. %description
  15.  
  16. %prep
  17. rm -rf $RPM_BUILD_ROOT
  18. mkdir -p $RPM_BUILD_ROOT/usr/lib64
  19. cd $RPM_BUILD_ROOT
  20. cp -a %{SOURCEURL0}/lib/libtest* usr/lib64
  21.  
  22. %clean
  23. rm -rf "$RPM_BUILD_ROOT"
  24.  
  25. %files
  26. /usr/lib64/libtest.so
  27. /usr/lib64/libtest.so.1
  28. /usr/lib64/libtest.so.1.0
  29.  
  30.  
  31. program.spec:
  32. Summary: test_program
  33. Name: test_program
  34. Version: 0.1
  35. Release: 1
  36. Group: test_program
  37. License: test_program
  38. Source: %{expand:%%(pwd)}
  39. BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
  40.  
  41. AutoReqProv: yes
  42.  
  43. %description
  44.  
  45. %prep
  46. rm -rf $RPM_BUILD_ROOT
  47. mkdir -p $RPM_BUILD_ROOT/usr/bin
  48. cd $RPM_BUILD_ROOT
  49. cp %{SOURCEURL0}/bin/test_program usr/bin/
  50.  
  51. %clean
  52. rm -rf "$RPM_BUILD_ROOT"
  53.  
  54. %files
  55. /usr/bin/test_program
clone this paste RAW Paste Data