From 8ee6ce025b9798b7193618c678688b4a8eb6f8f0 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 7 Nov 2012 13:43:00 -0800 Subject: [PATCH] add packaging --- packaging/gperf.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packaging/gperf.spec diff --git a/packaging/gperf.spec b/packaging/gperf.spec new file mode 100644 index 0000000..f0c7e96 --- /dev/null +++ b/packaging/gperf.spec @@ -0,0 +1,44 @@ +Name: gperf +Version: 3.0.4 +Release: 1 +License: GPL-2.0+ +Summary: A perfect hash function generator +Url: http://www.gnu.org/software/gperf/ +Group: Development/Tools +Source0: ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz +BuildRequires: gcc-c++ + +%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. + +%prep +%setup -q + + +%build + +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install + +rm -f %{buildroot}%{_datadir}/doc/gperf.html + + + + + + +%files +%defattr(-,root,root,-) +%doc NEWS README doc/gperf.html +%doc %{_mandir}/man1/gperf.1* +%doc %{_infodir}/gperf.info* +%{_bindir}/%{name} + + -- 2.7.4