diff --git a/gperf.spec b/gperf.spec index 6fe3cb5..e3fcd9c 100644 --- a/gperf.spec +++ b/gperf.spec @@ -5,10 +5,10 @@ Release: 6%{?dist} License: GPLv3+ Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz URL: http://www.gnu.org/software/gperf/ -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info BuildRequires: gcc +BuildRequires: gcc-c++ + %description Gperf is a perfect hash function generator written in C++. Simply stated, a perfect hash function is a hash function and a data @@ -20,26 +20,15 @@ using exactly one probe into the data structure. %build %configure -make %{?_smp_mflags} +%make_build %install #mkdir -p $RPM_BUILD_ROOT/usr/share/{man,info} - -make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p' +%make_install # remove the stuff from the buildroot rm -rf $RPM_BUILD_ROOT{%{_mandir}/{dvi,html},%{_datadir}/doc} -%post -/sbin/install-info %{_infodir}/gperf.info.gz %{_infodir}/dir >/dev/null 2>&1 || : -exit 0 - -%preun -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/gperf.info.gz %{_infodir}/dir >/dev/null 2>&1|| : -fi -exit 0 - %files %doc README NEWS doc/*.{html,pdf} COPYING %{_bindir}/%{name}