output.p 778 B

1234567891011121314151617181920212223242526272829303132
  1. --- output.orig.spec 2012-07-02 15:35:04.642573683 +0300
  2. +++ output.spec 2012-07-02 15:35:04.758573686 +0300
  3. @@ -16,6 +16,8 @@ License: BSD
  4. URL: http://www.testpkg.org/
  5. Source0: http://www.testpkg.org/testpkg-%{version}.tar.gz
  6. Source100: testpkg.yaml
  7. +Requires(post): /sbin/install-info
  8. +Requires(postun): /sbin/install-info
  9. %description
  10. Sample package for spectacle testings, which will be used as
  11. @@ -56,8 +58,19 @@ rm -rf %{buildroot}
  12. # << install post
  13. +%post
  14. +%install_info --info-dir=%_infodir /usr/share/info/info.gz
  15. +
  16. +%postun
  17. +if [ $1 = 0 ] ;then
  18. +%install_info_delete --info-dir=%{_infodir} /usr/share/info/info.gz
  19. +fi
  20. +
  21. %files
  22. %defattr(-,root,root,-)
  23. +/usr/bin/abc
  24. +/usr/share/info/info.gz
  25. +/usr/share/testpkg/api
  26. # >> files
  27. # << files