apg-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. Summary: Automated Password Generator for random password generation
  2. Name: apg
  3. Version: 2.3.0b
  4. Release: 1%{?_dist_release}
  5. License: BSD
  6. Group: System Environment/Base
  7. URL: http://www.adel.nursat.kz/%{name}/
  8. Source0: http://www.adel.nursat.kz/%{name}/download/%{name}-%{version}.tar.gz
  9. Source1: apg.xinetd
  10. Patch0: apg-2.3.0b-gen_rand_pass.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. Requires(post): grep
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. APG (Automated Password Generator) is the tool set for random password
  17. generation. This standalone version generates some random words of
  18. required type and prints them to standard output.
  19. %prep
  20. %setup -q
  21. %patch0 -p1 -b .gen_rand_pass
  22. %build
  23. # Build server
  24. make CFLAGS="$RPM_OPT_FLAGS" FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} cliserv
  25. # Build standalone files
  26. make CFLAGS="$RPM_OPT_FLAGS" FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} standalone
  27. %install
  28. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  29. install -D apg %{buildroot}%{_bindir}/apg
  30. install -D apgbfm %{buildroot}%{_bindir}/apgbfm
  31. install -D apgd %{buildroot}%{_sbindir}/apgd
  32. install -D -m 644 doc/man/apg.1 %{buildroot}%{_mandir}/man1/apg.1
  33. install -D -m 644 doc/man/apgbfm.1 %{buildroot}%{_mandir}/man1/apgbfm.1
  34. install -D -m 644 doc/man/apgd.8 %{buildroot}%{_mandir}/man8/apgd.8
  35. install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/apgd
  36. %clean
  37. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  38. %post
  39. # add a service for apg if it doesn't already exist
  40. if ! grep -q ^pwdgen /etc/services; then
  41. echo -e 'pwdgen\t\t129/tcp\t\t\t# PWDGEN service' >> /etc/services
  42. fi
  43. %files
  44. %defattr(-, root, root)
  45. %doc CHANGES COPYING README THANKS TODO doc/rfc*
  46. %{_bindir}/apg
  47. %{_bindir}/apgbfm
  48. %{_sbindir}/apgd
  49. %{_mandir}/man*/*
  50. %{_sysconfdir}/xinetd.d/apgd
  51. %changelog
  52. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.3.0b-1
  53. - initial build for Vine Linux
  54. * Mon Mar 14 2011 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-11
  55. - Add Requires(post) on grep. Fixes bug #684779
  56. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0b-10
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  58. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0b-9
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  60. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0b-8
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  62. * Mon Aug 11 2008 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-7
  63. - Fix permissions. Fixes #453621
  64. * Sun Feb 10 2008 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-6
  65. - Rebuild for gcc43
  66. * Tue Aug 21 2007 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-5
  67. - Fix incorrect license tag
  68. - Fix incorrect sources
  69. * Sun Aug 27 2006 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-4
  70. - Rebuild for fc6
  71. * Thu Feb 16 2006 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-3
  72. - Rebuild for fc5
  73. * Sat Jul 30 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.3.0b-2
  74. - Fix -y segfault (#164698).
  75. - Make with CFLAGS and FLAGS to build with RPM optflags to
  76. repair debuginfo package.
  77. * Fri Apr 22 2005 Oliver Falk <oliver@linux-kernel.at> - 2.3.0b-1_FC4
  78. - Add FC4 to the release tag, so it's newer than the FC3 package
  79. * Mon Apr 11 2005 Oliver Falk <oliver@linux-kernel.at> - 2.3.0b-1
  80. - Merge FC devel specfile with lkernAT specfile (=> update)
  81. - Has now support for xinetd
  82. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  83. - rebuilt
  84. * Wed Nov 10 2004 Matthias Saou <http://freshrpms.net/> 2.2.3-3
  85. - Bump release to provide Extras upgrade path.
  86. - Nicer mode fix for the sources.
  87. * Sun Sep 21 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.3-0.fdr.2
  88. - Fixed file permission on source tarball.
  89. - Brought spec more in line with current template.
  90. * Mon Sep 15 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.3-0.fdr.1
  91. - Updated to 2.2.3.
  92. * Mon Sep 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.2-0.fdr.1
  93. - Updated to 2.2.2.
  94. * Tue Aug 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.0-0.fdr.1
  95. - Updated to 2.2.0.
  96. * Wed Jul 30 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.0-0.fdr.1
  97. - Fedorafication.
  98. * Mon Mar 31 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
  99. - Rebuilt for Red Hat Linux 9.
  100. - Added _smp_mflags macro.
  101. * Fri Oct 4 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
  102. - Update to 2.1.0.
  103. * Thu May 2 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
  104. - Update to 2.0.0final.
  105. * Tue Feb 27 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  106. - Update to 1.2.13.
  107. * Fri Feb 16 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  108. - Update to 1.2.11.
  109. * Thu Feb 15 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  110. - Update to 1.2.1.
  111. * Wed Feb 7 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  112. - Initial RPM release.