vicendominguez

demo spec rpm file

Dec 11th, 2013
314
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name:   demoproject    
  2. Version:    0.1
  3. Release:    1%{?dist}
  4. Summary:    Demo script for doing something cool
  5.  
  6. Group:  DemoGroup
  7. License:    GPL
  8. Source0:    demoproject-0.1.tar.gz
  9. BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  10.  
  11.  
  12. %description
  13. Demo project that does something interesting
  14.  
  15. %prep
  16. %setup -q
  17.  
  18.  
  19. %build
  20.  
  21.  
  22. %install
  23. install --directory $RPM_BUILD_ROOT/usr/sbin
  24. install --directory $RPM_BUILD_ROOT/etc
  25. install --directory $RPM_BUILD_ROOT/etc/cron.d/
  26.  
  27. install -m 0755 demoscript $RPM_BUILD_ROOT/usr/sbin
  28. install -m 0744 demoscript.conf $RPM_BUILD_ROOT/etc
  29. install -m 0744 cron/democronscript $RPM_BUILD_ROOT/etc/cron.d/
  30.  
  31. %clean
  32. rm -rf $RPM_BUILD_ROOT
  33.  
  34.  
  35. %files
  36. /usr/sbin/demoscript
  37. /etc/demoscript.conf
  38. /etc/cron.d/democronscript
  39.  
  40.  
  41. %changelog
RAW Paste Data