forked from pool/libnetfilter_queue
Simplify broken Makefile workaround
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_queue?expand=0&rev=25
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: libnetfilter_queue
|
||||
%define libsoname %{name}1
|
||||
%define lname libnetfilter_queue1
|
||||
Version: 1.0.1
|
||||
Release: 0
|
||||
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
||||
@@ -29,19 +29,11 @@ Url: http://netfilter.org/projects/libnetfilter_queue/
|
||||
Source: ftp://ftp.netfilter.org/pub/libnetfilter_queue/%name-%version.tar.bz2
|
||||
Source2: ftp://ftp.netfilter.org/pub/libnetfilter_queue/%name-%version.tar.bz2.sig
|
||||
Source3: baselibs.conf
|
||||
Patch1: nfq-stray-var.diff
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if !(0%{?suse_version} >= 1210)
|
||||
%define oldgcc 1
|
||||
%endif
|
||||
%if 0%{?oldgcc}
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake >= 1.6
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
#BuildRequires: libtool
|
||||
BuildRequires: pkgconfig >= 0.21
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||
BuildRequires: pkgconfig(libnfnetlink) >= 0.0.41
|
||||
%else
|
||||
BuildRequires: libnfnetlink-devel >= 0.0.41
|
||||
@@ -54,11 +46,11 @@ system that deprecates the old ip_queue / libipq mechanism.
|
||||
|
||||
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
||||
|
||||
%package -n %libsoname
|
||||
%package -n %lname
|
||||
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %libsoname
|
||||
%description -n %lname
|
||||
libnetfilter_queue is a userspace library providing an API to packets
|
||||
that have been queued by the kernel packet filter. It is is part of a
|
||||
system that deprecates the old ip_queue / libipq mechanism.
|
||||
@@ -66,7 +58,7 @@ system that deprecates the old ip_queue / libipq mechanism.
|
||||
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
||||
|
||||
%package devel
|
||||
Requires: %libsoname = %version
|
||||
Requires: %lname = %version
|
||||
Requires: libnfnetlink-devel
|
||||
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
||||
Group: Development/Libraries/C and C++
|
||||
@@ -80,31 +72,20 @@ libnetfilter_queue has been previously known as libnfnetlink_queue.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if 0%{?oldgcc}
|
||||
%patch -P 1 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
if [ ! -e configure ]; then
|
||||
autoreconf -fi;
|
||||
else
|
||||
:;
|
||||
%if 0%{?oldgcc}
|
||||
autoreconf -fi;
|
||||
%endif
|
||||
fi;
|
||||
%configure --disable-static --includedir=%_includedir/%name-%version
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags} KERNELDIR="ignore";
|
||||
|
||||
%install
|
||||
make install DESTDIR="%buildroot";
|
||||
make install DESTDIR="%buildroot" KERNELDIR="ignore";
|
||||
rm -f "%buildroot/%_libdir"/*.la;
|
||||
|
||||
%post -n %libsoname -p /sbin/ldconfig
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %libsoname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files -n %libsoname
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libnetfilter_queue.so.1*
|
||||
|
||||
|
Reference in New Issue
Block a user