gperf-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Summary: A perfect hash function generator.
  2. Name: gperf
  3. Version: 3.0.3
  4. Release: 1%{?_dist_release}
  5. License: GPL
  6. Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
  7. Group: Development/Tools
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  9. Requires(post): /sbin/install-info
  10. Requires(preun): /sbin/install-info
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. %description
  14. Gperf is a perfect hash function generator written in C++. Simply
  15. stated, a perfect hash function is a hash function and a data
  16. structure that allows recognition of a key word in a set of words
  17. using exactly one probe into the data structure.
  18. %prep
  19. %setup -q
  20. %build
  21. %configure
  22. make
  23. %install
  24. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  25. %makeinstall
  26. # remove the stuff from the buildroot
  27. rm -rf $RPM_BUILD_ROOT/%{_mandir}/{dvi,html}
  28. rm -rf $RPM_BUILD_ROOT%{_prefix}/share/doc
  29. %clean
  30. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  31. %post
  32. /sbin/install-info %{_infodir}/gperf.info.gz %{_infodir}/dir
  33. %preun
  34. if [ $1 = 0 ]; then
  35. /sbin/install-info --delete %{_infodir}/gperf.info.gz %{_infodir}/dir
  36. fi
  37. %files
  38. %defattr(-,root,root)
  39. %doc README NEWS doc/gperf.html
  40. %{_bindir}/gperf
  41. %{_mandir}/man1/gperf.1*
  42. %{_infodir}/gperf.info*
  43. %changelog
  44. * Sat Sep 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.3-1
  45. - applied new versioning policy
  46. * Sun Jun 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.3-0vl1
  47. - new upstream release
  48. * Sun Jul 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.1-1vl1
  49. - based on Redhat Rawhide 3.0.1-1
  50. - s/Copyright/License/
  51. * Fri Feb 22 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  52. - modified for Vine
  53. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  54. - automated rebuild
  55. * Wed Sep 12 2001 Tim Powers <timp@redhat.com>
  56. - rebuild with new gcc and binutils
  57. * Tue Apr 24 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.7.2-1
  58. - Update to 2.7.2
  59. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  60. - automatic rebuild
  61. * Tue Jul 4 2000 Jakub Jelinek <jakub@redhat.com>
  62. - Rebuild with new C++
  63. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  64. - user infodir and mandir macros for FHS
  65. - use %%makeinstall
  66. * Fri Feb 4 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  67. - rebuild to gzip manpage
  68. - don't use CC=egcs
  69. - fix description
  70. * Wed Mar 24 1999 Cristian Gafton <gafton@redhat.com>
  71. - added patches for egcs from UP
  72. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  73. - auto rebuild in the new build environment (release 4)
  74. * Thu Oct 29 1998 Bill Nottingham <notting@redhat.com>
  75. - patch for latest egcs
  76. * Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com>
  77. - strip binary
  78. * Tue Jul 28 1998 Jeff Johnson <jbj@redhat.com>
  79. - create.