Enable builds for RHEL/SLES

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnfnetlink?expand=0&rev=23
This commit is contained in:
2012-06-30 00:43:30 +00:00
committed by Git OBS Bridge
parent c48e18268f
commit ff46db3ba8

View File

@@ -1,7 +1,7 @@
#
# spec file for package libnfnetlink
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 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
@@ -16,13 +16,10 @@
#
Name: libnfnetlink
%define libsoname %{name}0
Version: 1.0.0+git28
Release: 2
License: GPL-2.0
Group: Productivity/Networking/Security
Release: 0
Url: http://netfilter.org/projects/libnfnetlink/
#Git-Clone: git://git.netfilter.org/libnfnetlink
@@ -31,8 +28,14 @@ Url: http://netfilter.org/projects/libnfnetlink/
Source: %name-%version.tar.xz
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf automake >= 1.6 libtool pkgconfig >= 0.23 xz
BuildRequires: autoconf
BuildRequires: automake >= 1.6
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.21
BuildRequires: xz
Summary: Low-level library for Netfilter-related kernel/userspace communication
License: GPL-2.0
Group: Productivity/Networking/Security
%description
libnfnetlink is the low-level library for netfilter related
@@ -46,8 +49,8 @@ It is only used by other netfilter.org projects, such as
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
%package -n %libsoname
Group: System/Libraries
Summary: Low-level library for Netfilter-related kernel/userspace communication
Group: System/Libraries
%description -n %libsoname
libnfnetlink is the low-level library for netfilter related
@@ -61,9 +64,9 @@ 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
Group: Development/Libraries/C and C++
%description -n %name-devel
libnfnetlink is the low-level library for netfilter related
@@ -92,7 +95,7 @@ fi
make %{?_smp_mflags}
%install
%makeinstall
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la;
%post -n %libsoname -p /sbin/ldconfig
@@ -102,11 +105,11 @@ rm -f "%buildroot/%_libdir"/*.la;
%files -n %libsoname
%defattr(-,root,root)
%doc COPYING README
%_libdir/libnfnetlink.so.*
%_libdir/libnfnetlink.so.0*
%files -n %name-devel
%defattr(-,root,root)
%_includedir/libnfnetlink*
%_includedir/%name-%version
%_libdir/libnfnetlink.so
%_libdir/pkgconfig/libnfnetlink.pc