Use /usr/include/pkg; drop gpg-offline

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_cthelper?expand=0&rev=15
This commit is contained in:
Jan Engelhardt 2014-09-23 15:59:11 +00:00 committed by Git OBS Bridge
parent e8853f417e
commit 658f12d8b7
2 changed files with 11 additions and 13 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Sep 23 15:43:40 UTC 2014 - jengelh@inai.de
- Drop gpg-offline build-time requirement; this is now handled by
the local source validator
- Move include files to /usr/include/pkg, like done in many other
packages
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 28 20:23:02 CET 2012 - sbrabec@suse.cz Wed Nov 28 20:23:02 CET 2012 - sbrabec@suse.cz

View File

@ -36,14 +36,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildRequires: automake >= 1.6 #BuildRequires: automake >= 1.6
#BuildRequires: libtool >= 2 #BuildRequires: libtool >= 2
BuildRequires: pkgconfig >= 0.21 BuildRequires: pkgconfig >= 0.21
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
BuildRequires: pkgconfig(libmnl) >= 1.0.0 BuildRequires: pkgconfig(libmnl) >= 1.0.0
%else
BuildRequires: libmnl-devel >= 1.0.0
%endif
%if 0%{?suse_version} >= 1230
BuildRequires: gpg-offline
%endif
%description %description
This library provides the programming interface (API) to the This library provides the programming interface (API) to the
@ -58,25 +51,22 @@ This library provides the programming interface (API) to the
Netfilter userspace helper infrastructure. Netfilter userspace helper infrastructure.
%package devel %package devel
Requires: %lname = %version
Summary: Userspace library for the Netfilter Conntrack Helper extension Summary: Userspace library for the Netfilter Conntrack Helper extension
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel %description devel
This library provides the programming interface (API) to the This library provides the programming interface (API) to the
Netfilter userspace helper infrastructure. Netfilter userspace helper infrastructure.
%prep %prep
%if 0%{?gpg_verify:1}
%gpg_verify %{S:2}
%endif
%setup -q %setup -q
%build %build
if [ ! -e configure ]; then if [ ! -e configure ]; then
autoreconf -fi; autoreconf -fi;
fi; fi;
%configure --disable-static --includedir=%_includedir/%name-%version %configure --disable-static --includedir="%_includedir/pkg/%name-%version"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -93,7 +83,7 @@ rm -f "%buildroot/%_libdir"/*.la;
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%_includedir/%name-%version %_includedir/pkg/
%_libdir/libnetfilter_cthelper.so %_libdir/libnetfilter_cthelper.so
%_libdir/pkgconfig/libnetfilter_cthelper.pc %_libdir/pkgconfig/libnetfilter_cthelper.pc