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