add BR: gcc-c++

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-25 10:32:02 +02:00
parent 0f5eb4a27b
commit defcc1f1df
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -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}