2010-03-15 11:25:17 +01:00
|
|
|
#
|
2011-12-29 22:27:38 +01:00
|
|
|
# spec file for package libnetfilter_queue
|
2010-03-15 11:25:17 +01:00
|
|
|
#
|
2012-01-01 01:17:35 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-03-15 11:25:17 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-29 22:27:38 +01:00
|
|
|
|
2010-03-15 11:25:17 +01:00
|
|
|
Name: libnetfilter_queue
|
2012-10-08 14:31:49 +02:00
|
|
|
%define lname %{name}1
|
|
|
|
Version: 1.0.2
|
2012-06-30 02:05:23 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
2011-12-29 22:27:38 +01:00
|
|
|
License: GPL-2.0
|
2010-03-15 11:25:17 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2012-01-01 01:17:35 +01:00
|
|
|
Url: http://netfilter.org/projects/libnetfilter_queue/
|
2012-01-03 00:04:39 +01:00
|
|
|
|
2012-12-21 02:51:23 +01:00
|
|
|
#Freecode-URL: http://freecode.com/projects/libnetfilter_queue/
|
2012-01-03 00:04:39 +01:00
|
|
|
#Git-Clone: git://git.netfilter.org/libnetfiler_queue
|
2012-10-08 14:31:49 +02:00
|
|
|
#DL-URL: http://netfilter.org/projects/libnetfilter_queue/files/
|
|
|
|
Source: http://netfilter.org/projects/libnetfilter_queue/files/%name-%version.tar.bz2
|
|
|
|
Source2: http://netfilter.org/projects/libnetfilter_queue/files/%name-%version.tar.bz2.sig
|
2012-01-03 00:04:39 +01:00
|
|
|
Source3: baselibs.conf
|
2012-12-10 15:21:04 +01:00
|
|
|
Source4: %name.keyring
|
2012-10-09 03:02:44 +02:00
|
|
|
Patch1: rhel6-iptos.diff
|
2012-06-30 03:40:14 +02:00
|
|
|
|
2011-12-29 22:27:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-06-30 20:16:02 +02:00
|
|
|
#BuildRequires: libtool
|
2012-06-30 02:05:23 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
2012-06-30 20:16:02 +02:00
|
|
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
2012-10-08 14:31:49 +02:00
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
2012-06-30 02:05:23 +02:00
|
|
|
BuildRequires: pkgconfig(libnfnetlink) >= 0.0.41
|
|
|
|
%else
|
2012-10-08 14:31:49 +02:00
|
|
|
BuildRequires: libmnl-devel >= 1.0.3
|
2012-06-30 02:05:23 +02:00
|
|
|
BuildRequires: libnfnetlink-devel >= 0.0.41
|
|
|
|
%endif
|
2012-12-03 23:02:59 +01:00
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
BuildRequires: gpg-offline
|
|
|
|
%endif
|
2010-03-15 11:25:17 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
|
|
|
|
2012-06-30 20:16:02 +02:00
|
|
|
%package -n %lname
|
2010-03-15 11:25:17 +01:00
|
|
|
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
2012-06-30 02:05:23 +02:00
|
|
|
Group: System/Libraries
|
2010-03-15 11:25:17 +01:00
|
|
|
|
2012-06-30 20:16:02 +02:00
|
|
|
%description -n %lname
|
2010-03-15 11:25:17 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
|
|
|
|
2010-11-02 16:16:25 +01:00
|
|
|
%package devel
|
2012-06-30 20:16:02 +02:00
|
|
|
Requires: %lname = %version
|
2012-06-30 02:05:23 +02:00
|
|
|
Requires: libnfnetlink-devel
|
2010-03-15 11:25:17 +01:00
|
|
|
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
2012-06-30 02:05:23 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-03-15 11:25:17 +01:00
|
|
|
|
2010-11-02 16:16:25 +01:00
|
|
|
%description devel
|
2010-03-15 11:25:17 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
|
|
|
|
|
|
|
%prep
|
2012-12-03 23:02:59 +01:00
|
|
|
%if 0%{?gpg_verify:1}
|
|
|
|
%gpg_verify %{S:2}
|
|
|
|
%endif
|
2010-03-15 11:25:17 +01:00
|
|
|
%setup -q
|
2012-10-09 03:02:44 +02:00
|
|
|
%patch -P 1 -p1
|
2010-03-15 11:25:17 +01:00
|
|
|
|
|
|
|
%build
|
2011-12-29 22:27:38 +01:00
|
|
|
%configure --disable-static --includedir=%_includedir/%name-%version
|
2012-06-30 20:16:02 +02:00
|
|
|
make %{?_smp_mflags} KERNELDIR="ignore";
|
2010-03-15 11:25:17 +01:00
|
|
|
|
|
|
|
%install
|
2012-06-30 20:16:02 +02:00
|
|
|
make install DESTDIR="%buildroot" KERNELDIR="ignore";
|
2011-12-29 22:27:38 +01:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la;
|
2010-03-15 11:25:17 +01:00
|
|
|
|
2012-06-30 20:16:02 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2010-03-15 11:25:17 +01:00
|
|
|
|
2012-06-30 20:16:02 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2010-03-15 11:25:17 +01:00
|
|
|
|
2012-06-30 20:16:02 +02:00
|
|
|
%files -n %lname
|
2010-03-15 11:25:17 +01:00
|
|
|
%defattr(-,root,root)
|
2012-01-01 01:17:35 +01:00
|
|
|
%_libdir/libnetfilter_queue.so.1*
|
2010-03-15 11:25:17 +01:00
|
|
|
|
2011-07-30 21:35:42 +02:00
|
|
|
%files devel
|
2010-03-15 11:25:17 +01:00
|
|
|
%defattr(-,root,root)
|
2012-06-30 03:08:09 +02:00
|
|
|
%_includedir/%name-%version
|
2010-11-02 16:16:25 +01:00
|
|
|
%_libdir/libnetfilter_queue.so
|
|
|
|
%_libdir/pkgconfig/libnetfilter_queue.pc
|
2010-03-15 11:25:17 +01:00
|
|
|
|
|
|
|
%changelog
|