OBS-URL: https://build.opensuse.org/request/show/98330 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnfnetlink?expand=0&rev=8
118 lines
3.9 KiB
RPMSpec
118 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package libnfnetlink
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
|
|
Name: libnfnetlink
|
|
%define libsoname %{name}0
|
|
Version: 1.0.0+git1
|
|
Release: 2
|
|
License: GPL-2.0
|
|
Group: Productivity/Networking/Security
|
|
URL: http://netfilter.org/projects/libnfnetlink/
|
|
|
|
#Git-Clone: git://git.netfilter.org/libnfnetlink
|
|
#DL-URL: ftp://ftp.netfilter.org/pub/libnfnetlink/
|
|
#Source: http://netfilter.org/projects/libnfnetlink/files/%name-%version.tar.bz2
|
|
Source: %name-%version.tar.xz
|
|
Source2: baselibs.conf
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: xz
|
|
BuildRequires: libtool
|
|
Summary: Low-level library for Netfilter-related kernel/userspace communication
|
|
|
|
%description
|
|
libnfnetlink is the low-level library for netfilter related
|
|
kernel/userspace communication. It provides a generic messaging
|
|
infrastructure for in-kernel netfilter subsystems (such as
|
|
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
|
|
respective users and/or management tools in userspace.
|
|
|
|
This library is not meant as a public API for application developers.
|
|
It is only used by other netfilter.org projects, such as
|
|
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
|
|
|
|
%define debug_package_requires %libsoname = %version-%release
|
|
|
|
%package -n %libsoname
|
|
Group: System/Libraries
|
|
Summary: Low-level library for Netfilter-related kernel/userspace communication
|
|
|
|
%description -n %libsoname
|
|
libnfnetlink is the low-level library for netfilter related
|
|
kernel/userspace communication. It provides a generic messaging
|
|
infrastructure for in-kernel netfilter subsystems (such as
|
|
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
|
|
respective users and/or management tools in userspace.
|
|
|
|
This library is not meant as a public API for application developers.
|
|
It is only used by other netfilter.org projects, such as
|
|
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
|
|
|
|
%package -n %name-devel
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %libsoname = %version
|
|
Summary: Low-level library for Netfilter-related kernel/userspace communication
|
|
|
|
%description -n %name-devel
|
|
libnfnetlink is the low-level library for netfilter related
|
|
kernel/userspace communication. It provides a generic messaging
|
|
infrastructure for in-kernel netfilter subsystems (such as
|
|
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
|
|
respective users and/or management tools in userspace.
|
|
|
|
This library is not meant as a public API for application developers.
|
|
It is only used by other netfilter.org projects, such as
|
|
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
|
|
|
|
%prep
|
|
%if 0%{?__xz:1}
|
|
%setup -q
|
|
%else
|
|
tar -xf "%{S:0}" --use=xz;
|
|
%setup -DTq
|
|
%endif
|
|
|
|
%build
|
|
if [ ! -e configure ]; then
|
|
./autogen.sh
|
|
fi
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
find %buildroot -name "*.la" -delete
|
|
|
|
%post -n %libsoname -p /sbin/ldconfig
|
|
|
|
%postun -n %libsoname -p /sbin/ldconfig
|
|
|
|
%files -n %libsoname
|
|
%defattr(-,root,root)
|
|
%doc COPYING README
|
|
%_libdir/libnfnetlink.so.*
|
|
|
|
%files -n %name-devel
|
|
%defattr(-,root,root)
|
|
%_includedir/libnfnetlink
|
|
%_libdir/libnfnetlink.so
|
|
%_libdir/pkgconfig/libnfnetlink.pc
|
|
|
|
%changelog
|