From d561d11806f6633a46e77ed07b25ed128248ec09 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 25 Jul 2018 10:44:41 +0200 Subject: [PATCH] add BR: gcc-c++ Signed-off-by: Igor Gnatenko --- libecap.spec | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/libecap.spec b/libecap.spec index 5d23ef5..308c45a 100644 --- a/libecap.spec +++ b/libecap.spec @@ -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-.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