2010-12-07 12:01:34 +01:00
|
|
|
#
|
2010-12-26 22:33:19 +01:00
|
|
|
# spec file for package libmnl (Version 1.0.1)
|
2010-12-07 12:01:34 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 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.
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2010-12-07 12:01:34 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libmnl
|
2010-12-20 16:40:40 +01:00
|
|
|
Summary: Minimalistic Netlink communication library
|
2010-12-07 12:02:15 +01:00
|
|
|
%define lname %{name}0
|
2011-08-01 19:41:25 +02:00
|
|
|
Version: 1.0.1
|
|
|
|
Release: 1
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
Url: http://netfilter.org/projects/libmnl/
|
|
|
|
Source: http://netfilter.org/projects/libmnl/files/%name-%version.tar.bz2
|
|
|
|
Source1: http://netfilter.org/projects/libmnl/files/%name-%version.tar.bz2.sig
|
|
|
|
Source9: baselibs.conf
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: pkgconfig >= 0.19
|
2010-10-19 15:35:38 +02:00
|
|
|
%if 0%{?suse_version} < 1130
|
2011-08-01 19:41:25 +02:00
|
|
|
#BuildRequires: linux-kernel-headers
|
2010-10-19 15:35:38 +02:00
|
|
|
%else
|
2011-08-01 19:41:25 +02:00
|
|
|
#BuildRequires: linux-glibc-devel
|
2010-10-19 15:35:38 +02:00
|
|
|
%endif
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libmnl is a minimalistic user-space library oriented to Netlink
|
|
|
|
developers. There are a lot of common tasks in parsing, validating,
|
|
|
|
constructing of both the Netlink header and TLVs that are repetitive
|
|
|
|
and easy to get wrong. This library aims to provide simple helpers
|
|
|
|
that allows you to re-use code and to avoid re-inventing the wheel.
|
|
|
|
|
2010-12-17 17:26:31 +01:00
|
|
|
Author(s):
|
|
|
|
----------
|
|
|
|
Pablo Neira Ayuso
|
|
|
|
Netfilter Team <netfilter-devel@vger.kernel.org>
|
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%define debug_package_requires %lname = %version-%release
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%package -n %lname
|
2010-12-07 12:01:34 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Minimalistic Netlink communication library
|
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%description -n %lname
|
2010-10-19 13:05:32 +02:00
|
|
|
libmnl is a minimalistic user-space library oriented to Netlink
|
|
|
|
developers. There are a lot of common tasks in parsing, validating,
|
|
|
|
constructing of both the Netlink header and TLVs that are repetitive
|
|
|
|
and easy to get wrong. This library aims to provide simple helpers
|
|
|
|
that allows you to re-use code and to avoid re-inventing the wheel.
|
|
|
|
|
2010-12-17 17:26:31 +01:00
|
|
|
Author(s):
|
|
|
|
----------
|
|
|
|
Pablo Neira Ayuso
|
|
|
|
Netfilter Team <netfilter-devel@vger.kernel.org>
|
|
|
|
|
2010-10-19 13:05:32 +02:00
|
|
|
%package -n %name-devel
|
2010-12-07 12:01:34 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-07 12:02:15 +01:00
|
|
|
Requires: %lname = %version
|
2010-12-07 12:01:34 +01:00
|
|
|
Summary: Development files for libmnl
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%description -n %name-devel
|
|
|
|
libmnl is a minimalistic user-space library oriented to Netlink
|
|
|
|
developers. There are a lot of common tasks in parsing, validating,
|
|
|
|
constructing of both the Netlink header and TLVs that are repetitive
|
|
|
|
and easy to get wrong. This library aims to provide simple helpers
|
|
|
|
that allows you to re-use code and to avoid re-inventing the wheel.
|
|
|
|
|
2010-12-17 17:26:31 +01:00
|
|
|
Author(s):
|
|
|
|
----------
|
|
|
|
Pablo Neira Ayuso
|
|
|
|
Netfilter Team <netfilter-devel@vger.kernel.org>
|
|
|
|
|
2010-10-19 13:05:32 +02:00
|
|
|
%prep
|
2010-12-17 17:26:31 +01:00
|
|
|
%setup -q
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
./autogen.sh;
|
|
|
|
fi;
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
find "%buildroot" -name "*.la" -delete;
|
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%files -n %lname
|
2010-10-19 13:05:32 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/*.so.*
|
|
|
|
|
|
|
|
%files -n %name-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/*
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/*
|
|
|
|
|
|
|
|
%changelog
|