add BR: gcc-c++
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
0f5eb4a27b
commit
defcc1f1df
19
gperf.spec
19
gperf.spec
@ -5,10 +5,10 @@ Release: 6%{?dist}
|
|||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
|
Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
|
||||||
URL: http://www.gnu.org/software/gperf/
|
URL: http://www.gnu.org/software/gperf/
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Gperf is a perfect hash function generator written in C++. Simply
|
Gperf is a perfect hash function generator written in C++. Simply
|
||||||
stated, a perfect hash function is a hash function and a data
|
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
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#mkdir -p $RPM_BUILD_ROOT/usr/share/{man,info}
|
#mkdir -p $RPM_BUILD_ROOT/usr/share/{man,info}
|
||||||
|
%make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
|
|
||||||
|
|
||||||
# remove the stuff from the buildroot
|
# remove the stuff from the buildroot
|
||||||
rm -rf $RPM_BUILD_ROOT{%{_mandir}/{dvi,html},%{_datadir}/doc}
|
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
|
%files
|
||||||
%doc README NEWS doc/*.{html,pdf} COPYING
|
%doc README NEWS doc/*.{html,pdf} COPYING
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user