From defcc1f1df795dfe94651386230f66fd3bd01740 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 25 Jul 2018 10:32:02 +0200 Subject: [PATCH] add BR: gcc-c++ Signed-off-by: Igor Gnatenko --- gperf.spec | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) 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}