forked from pool/libmnl
Jan Engelhardt
768fa8b47d
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=3
81 lines
2.2 KiB
RPMSpec
81 lines
2.2 KiB
RPMSpec
|
|
Name: libmnl
|
|
%define soname 0
|
|
Version: 0+git71
|
|
Release: 0
|
|
License: GPLv2+
|
|
Group: Productivity/Networking/Security
|
|
URL: http://netfilter.org/projects/libmnl/
|
|
Source: %name-%version.tar.xz
|
|
Source1: baselibs.conf
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: pkg-config >= 0.19, xz
|
|
%if 0%{?suse_version} < 1130
|
|
BuildRequires: linux-kernel-headers
|
|
%else
|
|
BuildRequires: linux-glibc-devel
|
|
%endif
|
|
Summary: Minimalistic Netlink communication library
|
|
|
|
%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.
|
|
|
|
%define debug_package_requires %name%soname = %version-%release
|
|
|
|
%package -n %name%soname
|
|
Group: System/Libraries
|
|
Summary: Minimalistic Netlink communication library
|
|
|
|
%description -n %name%soname
|
|
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.
|
|
|
|
%package -n %name-devel
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %name%soname = %version
|
|
Summary: Development files for libmnl
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -qn %name
|
|
|
|
%build
|
|
if [ ! -e configure ]; then
|
|
./autogen.sh;
|
|
fi;
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
find "%buildroot" -name "*.la" -delete;
|
|
|
|
%post -n %name%soname -p /sbin/ldconfig
|
|
|
|
%postun -n %name%soname -p /sbin/ldconfig
|
|
|
|
%files -n %name%soname
|
|
%defattr(-,root,root)
|
|
%_libdir/*.so.*
|
|
|
|
%files -n %name-devel
|
|
%defattr(-,root,root)
|
|
%_includedir/*
|
|
%_libdir/*.so
|
|
%_libdir/pkgconfig/*
|
|
|
|
%changelog
|