add BR: gcc-c++

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

View File

@ -3,12 +3,13 @@ Version: 1.0.1
Release: 3%{?dist}
Summary: Squid interface for embedded adaptation modules
License: BSD
Group: Development/Libraries
URL: http://www.e-cap.org/
Source0: http://www.measurement-factory.com/tmp/ecap/%{name}-%{version}.tar.gz
Source1: autoconf.h
BuildRequires: gcc
BuildRequires: gcc-c++
%description
eCAP is a software interface that allows a network application, such as an
HTTP proxy or an ICAP server, to outsource content analysis and adaptation to
@ -28,32 +29,30 @@ replaced with function calls to an adaptation module.
%package devel
Summary: Libraries and header files for the libecap library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the libraries, include files, and other
resources needed for developing libecap applications.
%prep
%setup -q
%autosetup
%build
%configure
make %{?_smp_mflags}
%make_build
%install
make install DESTDIR=%{buildroot}
%make_install
rm -f %{buildroot}%{_libdir}/libecap.a
rm -f %{buildroot}%{_libdir}/libecap.la
# Rename libecap/common/autoconf.h to libecap/common/autoconf-<arch>.h to avoid file conflicts on
# multilib systems and install autoconf.h wrapper
mv %{buildroot}%{_includedir}/%{name}/common/autoconf.h %{buildroot}%{_includedir}/%{name}/common/autoconf-%{_arch}.h
install -m644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h
install -pm644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%doc LICENSE CREDITS NOTICE README