75 lines
2.1 KiB
RPMSpec
75 lines
2.1 KiB
RPMSpec
Name: gperf
|
|
Version: 3.1
|
|
Release: 1mamba
|
|
Summary: A perfect hash function generator
|
|
Group: Applications/Development
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
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
|
|
* Tue Feb 07 2017 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 10 2013 Automatic Build System <autodist@mambasoft.it> 3.0.4-2mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Feb 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.4-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Jan 08 2008 Aleph0 <aleph0@openmamba.org> 3.0.3-1mamba
|
|
- update to 3.0.3
|
|
- new package maintainer
|
|
|
|
* Mon Jul 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.0.2-1qilnx
|
|
- package created by autospec
|