diff --git a/README.md b/README.md index be38851..773099e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # gperf +GNU gperf is a perfect hash function generator. +For a given list of strings, it produces a hash function and hash table, in form of C or C++ code, for looking up a value depending on the input string. +The hash function is perfect, which means that the hash table has no collisions, and the hash table lookup needs a single string comparison only. + +Output from the gperf program is used to recognize reserved words in the GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU indent program. + diff --git a/gperf.spec b/gperf.spec new file mode 100644 index 0000000..2abfbc7 --- /dev/null +++ b/gperf.spec @@ -0,0 +1,71 @@ +Name: gperf +Version: 3.0.4 +Release: 2mamba +Summary: A perfect hash function generator +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.gnu.org/software/gperf +Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz +License: GPL +BuildRequires: bash +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: texinfo +Requires(post):%{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +GNU gperf is a perfect hash function generator. +For a given list of strings, it produces a hash function and hash table, in form of C or C++ code, for looking up a value depending on the input string. +The hash function is perfect, which means that the hash table has no collisions, and the hash table lookup needs a single string comparison only. + +Output from the gperf program is used to recognize reserved words in the GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU indent program. + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +rm -f %{buildroot}%{_datadir}/doc/gperf.html + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%install_info gperf.info +exit 0 + +%preun +%uninstall_info gperf.info +exit 0 + +%files +%defattr(-,root,root) +%{_bindir}/gperf +%{_infodir}/gperf.info.* +%{_mandir}/man1/gperf.* +%doc AUTHORS COPYING ChangeLog NEWS README +%doc doc/gperf.html + +%changelog +* Wed Jul 10 2013 Automatic Build System 3.0.4-2mamba +- automatic version update by autodist + +* Tue Feb 17 2009 Silvan Calarco 3.0.4-1mamba +- automatic update by autodist + +* Tue Jan 08 2008 Aleph0 3.0.3-1mamba +- update to 3.0.3 +- new package maintainer + +* Mon Jul 03 2006 Davide Madrisan 3.0.2-1qilnx +- package created by autospec