libnftnl 1.2.5-2 (x86_64;aarch64;znver1) 2023-17392
9999

Status published
Submitter benbullard79 [@T] cox.net
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/329923
Packages
lib64nftnl-devel-1.2.5-2.x86_64.binary
lib64nftnl11-1.2.5-2.x86_64.binary
lib64nftnl11-debuginfo-1.2.5-2.x86_64.debuginfo
libnftnl-1.2.5-2.x86_64.source
libnftnl-debugsource-1.2.5-2.x86_64.binary
lib64nftnl-devel-1.2.5-2.aarch64.binary
lib64nftnl11-1.2.5-2.aarch64.binary
lib64nftnl11-debuginfo-1.2.5-2.aarch64.debuginfo
libnftnl-1.2.5-2.aarch64.source
libnftnl-debugsource-1.2.5-2.aarch64.binary
lib64nftnl-devel-1.2.5-2.znver1.binary
lib64nftnl11-1.2.5-2.znver1.binary
lib64nftnl11-debuginfo-1.2.5-2.znver1.debuginfo
libnftnl-1.2.5-2.znver1.source
libnftnl-debugsource-1.2.5-2.znver1.binary
Build Date 2023-04-05 20:20:53 +0000 UTC
Last Updated 2023-04-06 17:13:08.30457895 +0000 UTC
$ git diff --patch-with-stat --summary 97b8ab7ed39ffbc496ecb688b54f518628fc6a72..3f998868f3ef0d2963700571b6d393a8e4f447db

 .abf.yml      |  2 +-
 libnftnl.spec | 87 +++++++++--------------------------------------------------
 2 files changed, 13 insertions(+), 76 deletions(-)

diff --git a/.abf.yml b/.abf.yml
index 634a9d3..356171d 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  libnftnl-1.2.3.tar.bz2: ba4f824a4e700441aa8475d4ef7f2138e2871c5e
+  libnftnl-1.2.5.tar.xz: dbd33189f98e9efcd2b5e28bd8a694c35f548e17
diff --git a/libnftnl.spec b/libnftnl.spec
index 243ef52..ed3753d 100644
--- a/libnftnl.spec
+++ b/libnftnl.spec
@@ -1,35 +1,26 @@
-# libnftnl is used by iptables, iptables is used by systemd,
-# libsystemd is used by wine
-%ifarch %{x86_64}
-%bcond_without compat32
-%else
-%bcond_with compat32
-%endif
-
 %define major 11
 %define libname %mklibname nftnl %{major}
 %define libnamedevel %mklibname nftnl -d
-%define lib32name libnftnl%{major}
-%define lib32namedevel libnftnl-devel
+
+# (tpg) optimize it a bit
+%global optflags %{optflags} -Oz
 
 Summary:	Userspace library for handling of netfilter netlink messages
 Name:		libnftnl
-Version:	1.2.3
-Release:	1
+Version:	1.2.5
+Release:	2
 Group:		System/Libraries
 License:	GPLv2
 URL:		http://netfilter.org/projects/libnftnl/index.html
-Source0:	http://netfilter.org/projects/libnftnl/files/libnftnl-%{version}.tar.bz2
+Source0:	http://netfilter.org/projects/libnftnl/files/libnftnl-%{version}.tar.xz
 # (tpg) rediff below patch with these
 # sed -i -e "s,(\*snprintf),(\*snprintf_),g" $(grep -rl "(*snprintf)" *)
 # sed -i -e "s,^\t.snprintf\t\=,\t.snprintf_\t\=,g" $(grep -rl "\.snprintf" *)
 # sed -i -e "s,\->snprintf,\->snprintf_,g" $(grep -rl "\->snprintf" *)
 # Patch0:		https://github.com/openembedded/meta-openembedded/raw/master/meta-networking/recipes-filter/libnftnl/libnftnl/0001-avoid-naming-local-function-as-one-of-printf-family.patch
 BuildRequires:	pkgconfig(libmnl)
-%if %{with compat32}
-BuildRequires:	devel(libmnl)
-BuildRequires:	libc6
-%endif
+Obsoletes:	libnftnl11 < 1.2.5-1
+Obsoletes:	libnftnl-devel < 1.2.5-1
 
 %description
 libnftnl is a userspace library providing a low-level netlink programming
@@ -56,27 +47,6 @@ Requires:	%{libname} >= %{version}-%{release}
 %description -n %{libnamedevel}
 This package contains the development files for %{name}.
 
-%if %{with compat32}
-%package -n %{lib32name}
-Summary:	Main library for %{name} (32-bit)
-Group:		System/Libraries
-
-%description -n %{lib32name}
-libnftnl is a userspace library providing a low-level netlink programming
-interface (API) to the in-kernel nf_tables subsystem. The library libnftnl has
-been previously known as libnftables. This library is currently used by
-nftables.
-
-%package -n %{lib32namedevel}
-Summary:	Development files for %{name} (32-bit)
-Group:		Development/C
-Requires:	%{libnamedevel} = %{EVRD}
-Requires:	%{lib32name} = %{EVRD}
-
-%description -n %{lib32namedevel}
-This package contains the development files for %{name}.
-%endif
-
 %prep
 %autosetup -p1
 
@@ -86,44 +56,20 @@ sed -i 's!tests!!g' Makefile.am
 sed -i 's!examples/Makefile!!g' configure.ac
 sed -i 's!tests/Makefile!!g' configure.ac
 
-export CONFIGURE_TOP="$(pwd)"
 aclocal
 autoheader
 automake -a
 autoconf
 
-%if %{with compat32}
-mkdir build32
-cd build32
-%configure32 || :
-if ! [ -e Makefile ]; then
-	echo "Configure failed. config.log:"
-	cat config.log
-	exit 1
-fi
-cd ..
-%endif
-mkdir build
-cd build
-%configure
-
 %build
-%if %{with compat32}
-%make_build -C build32
-%endif
-%make_build -C build
+%configure
+%make_build
 
 %install
-%if %{with compat32}
-%make_install -C build32
-%endif
-%make_install -C build
+%make_install
 
 %check
-%if %{with compat32}
-make -C build32 check
-%endif
-make -C build %{?_smp_mflags} check
+make %{?_smp_mflags} check
 
 %files -n %{libname}
 %{_libdir}/*.so.%{major}*
@@ -132,12 +78,3 @@ make -C build %{?_smp_mflags} check
 %{_includedir}/libnftnl
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/libnftnl.pc
-
-%if %{with compat32}
-%files -n %{lib32name}
-%{_prefix}/lib/*.so.%{major}*
-
-%files -n %{lib32namedevel}
-%{_prefix}/lib/*.so
-%{_prefix}/lib/pkgconfig/libnftnl.pc
-%endif
Not Available

benbullard79 [@T] cox.netNo Comment.598d 03hrs
benbullard79 [@T] cox.netNo Comment.597d 10hrs
benbullard79 [@T] cox.netNo Comment.597d 10hrs