From e0cbd131c0ca70c35fef891a0b50f5afd99e5a5a0648c4a86dc72fc726fcdfb5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 1 Aug 2011 17:41:25 +0000 Subject: [PATCH 1/4] Make build work for Fedorean systems OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=16 --- libmnl.spec | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/libmnl.spec b/libmnl.spec index b4d6bef..daf5eda 100644 --- a/libmnl.spec +++ b/libmnl.spec @@ -20,20 +20,20 @@ Name: libmnl Summary: Minimalistic Netlink communication library %define lname %{name}0 -Version: 1.0.1 -Release: 0 -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: pkg-config >= 0.19 +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 %if 0%{?suse_version} < 1130 -BuildRequires: linux-kernel-headers +#BuildRequires: linux-kernel-headers %else -BuildRequires: linux-glibc-devel +#BuildRequires: linux-glibc-devel %endif %description @@ -51,8 +51,6 @@ Author(s): %define debug_package_requires %lname = %version-%release %package -n %lname - - Group: System/Libraries Summary: Minimalistic Netlink communication library @@ -69,8 +67,6 @@ Author(s): Netfilter Team %package -n %name-devel - - Group: Development/Libraries/C and C++ Requires: %lname = %version Summary: Development files for libmnl From 616f90d877c8bff90b9eda6602fd427b9a2225bff6df5557d9b8a99ec7fec881 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 29 Dec 2011 20:50:02 +0000 Subject: [PATCH 2/4] SPDX; separate includedir OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=17 --- libmnl.changes | 6 ++++++ libmnl.spec | 29 ++++++----------------------- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/libmnl.changes b/libmnl.changes index f65e291..ae13e6b 100644 --- a/libmnl.changes +++ b/libmnl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 29 20:48:55 UTC 2011 - jengelh@medozas.de + +- SPDX format for License: tag +- Use separate include dir to detect compile errors + ------------------------------------------------------------------- Sun Dec 26 21:30:34 UTC 2010 - jengelh@medozas.de diff --git a/libmnl.spec b/libmnl.spec index daf5eda..33ead3e 100644 --- a/libmnl.spec +++ b/libmnl.spec @@ -1,7 +1,7 @@ # -# spec file for package libmnl (Version 1.0.1) +# spec file for package libmnl # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -22,9 +22,9 @@ Summary: Minimalistic Netlink communication library %define lname %{name}0 Version: 1.0.1 Release: 1 -License: LGPLv2+ +License: LGPL-2.1+ Group: Productivity/Networking/Security -Url: http://netfilter.org/projects/libmnl/ +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 @@ -43,13 +43,6 @@ 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. -Author(s): ----------- - Pablo Neira Ayuso - Netfilter Team - -%define debug_package_requires %lname = %version-%release - %package -n %lname Group: System/Libraries Summary: Minimalistic Netlink communication library @@ -61,11 +54,6 @@ 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. -Author(s): ----------- - Pablo Neira Ayuso - Netfilter Team - %package -n %name-devel Group: Development/Libraries/C and C++ Requires: %lname = %version @@ -78,19 +66,14 @@ 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. -Author(s): ----------- - Pablo Neira Ayuso - Netfilter Team - %prep %setup -q %build if [ ! -e configure ]; then - ./autogen.sh; + autoreconf -fi; fi; -%configure +%configure --includedir=%_includedir/%name-%version make %{?_smp_mflags} %install From 9cbc0804aaa86fafc8a44929f8ca51a4f5e0d907c5778036bd412f59720b8a7f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 31 Dec 2011 20:34:41 +0000 Subject: [PATCH 3/4] 1.0.1+git18 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=18 --- libmnl-1.0.1+git18.tar.xz | 3 +++ libmnl-1.0.1.tar.bz2 | 3 --- libmnl-1.0.1.tar.bz2.sig | Bin 72 -> 0 bytes libmnl.changes | 6 ++++++ libmnl.spec | 30 ++++++++++++++---------------- 5 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 libmnl-1.0.1+git18.tar.xz delete mode 100644 libmnl-1.0.1.tar.bz2 delete mode 100644 libmnl-1.0.1.tar.bz2.sig diff --git a/libmnl-1.0.1+git18.tar.xz b/libmnl-1.0.1+git18.tar.xz new file mode 100644 index 0000000..bfc6e8f --- /dev/null +++ b/libmnl-1.0.1+git18.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4778ac347de5243688d9bf3b63ad5ad4e6f62b75f89c6874c347f87b2ab2ffd +size 32352 diff --git a/libmnl-1.0.1.tar.bz2 b/libmnl-1.0.1.tar.bz2 deleted file mode 100644 index f917d0c..0000000 --- a/libmnl-1.0.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5dd81c42101bae6dde8aeb396367a7f2103de4b186a3e096b5d026c4cd5889f5 -size 258981 diff --git a/libmnl-1.0.1.tar.bz2.sig b/libmnl-1.0.1.tar.bz2.sig deleted file mode 100644 index f958f85647bdff3d321c2e100c9b6a09b9ade919513e25b3a2f05cfa8af7f965..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 72 zcmV-O0Jr~$Mg#y60ssaD0!= 0.19 -%if 0%{?suse_version} < 1130 -#BuildRequires: linux-kernel-headers -%else -#BuildRequires: linux-glibc-devel -%endif +BuildRequires: autoconf automake >= 1.6 libtool +BuildRequires: pkgconfig >= 0.23 xz %description libmnl is a minimalistic user-space library oriented to Netlink @@ -78,7 +76,7 @@ make %{?_smp_mflags} %install %makeinstall -find "%buildroot" -name "*.la" -delete; +rm -f "%buildroot/%_libdir"/*.la; %post -n %lname -p /sbin/ldconfig @@ -86,12 +84,12 @@ find "%buildroot" -name "*.la" -delete; %files -n %lname %defattr(-,root,root) -%_libdir/*.so.* +%_libdir/libmnl.so.0* %files -n %name-devel %defattr(-,root,root) -%_includedir/* -%_libdir/*.so -%_libdir/pkgconfig/* +%_includedir/libmnl* +%_libdir/libmnl.so +%_libdir/pkgconfig/libmnl.pc %changelog From 52dd48fc17ff5c84da454308150fdffb62250af75414cdf9bbe20bdbc48cd98d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 2 Jan 2012 21:26:09 +0000 Subject: [PATCH 4/4] libmnl 1.0.2 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=19 --- libmnl-1.0.1+git18.tar.xz | 3 --- libmnl-1.0.2.tar.bz2 | 3 +++ libmnl-1.0.2.tar.bz2.sig | Bin 0 -> 543 bytes libmnl.changes | 9 ++++++--- libmnl.spec | 10 +++++----- 5 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 libmnl-1.0.1+git18.tar.xz create mode 100644 libmnl-1.0.2.tar.bz2 create mode 100644 libmnl-1.0.2.tar.bz2.sig diff --git a/libmnl-1.0.1+git18.tar.xz b/libmnl-1.0.1+git18.tar.xz deleted file mode 100644 index bfc6e8f..0000000 --- a/libmnl-1.0.1+git18.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b4778ac347de5243688d9bf3b63ad5ad4e6f62b75f89c6874c347f87b2ab2ffd -size 32352 diff --git a/libmnl-1.0.2.tar.bz2 b/libmnl-1.0.2.tar.bz2 new file mode 100644 index 0000000..6222a82 --- /dev/null +++ b/libmnl-1.0.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d91e85386fd44ad1fa5e1f3d87af6099d954d8d0f45b009a4ecc096137e4a60 +size 300560 diff --git a/libmnl-1.0.2.tar.bz2.sig b/libmnl-1.0.2.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..d3991c621f4f7116351108c8d3e72b542fad84b9ad57afdec25c8a2f04359376 GIT binary patch literal 543 zcmV+)0^t3L0vrSY0RjL91p-e2`S<_|2@s?aABnqPSj^H?5CE8A`o#RO;bS`vrpuCyAgG|~W0yfuE_qxe#fD%7uV8Fz&;3U{YGZ#S(1s?i zSM*6z)Y+iSarU6ch@f0+SN?v$qE-az>C=={P=2W+h`#00i{X(@Fo<28?)y~gyHnHD zCIjxORDS7xk2mtZscyNhXlt9cq6~BQ>n{h2(V+A?*Ts2L^7cn*k%P>QhbiU1TUw`0 zSM2wnyw=5sKZ*pW>Nq4LwD{IU{Pqt}I+2Aiq!6X2&}W^B9>XU|#$og}u7nK7f?1f} z-areQfSi2+R|`F^h^484t;?=Skgc~t!Af`W5204E;{~a~2Wg<{`HoxGK(#69Bn+!8 zedlQn8iv-U2MWG6JCg}-Em<)hAWlCdD8hSo0Kc}c$i}UMXf9wqJXmjK8@lq;ix`A0 zASCR2LHTyBh7r+5|Iii`eHOX6mX|pG{;7ho%^+{tf7$s2o4oViy2lP_J`rZD^)D_b z3(R2ACQzaEtqHNe38HpFk^2qtRav833`Ka#GWXA8S`Mf^= 1.6 libtool -BuildRequires: pkgconfig >= 0.23 xz +BuildRequires: pkgconfig >= 0.23 %description libmnl is a minimalistic user-space library oriented to Netlink