diff --git a/nftables-1.1.1.tar.xz b/nftables-1.1.1.tar.xz deleted file mode 100644 index 95b6ab0bf8d844152b2f09fc276633975113066f..0000000000000000000000000000000000000000 Binary files a/nftables-1.1.1.tar.xz and /dev/null differ diff --git a/nftables-1.1.4.tar.xz b/nftables-1.1.4.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..835ad1b82f3e2ef320d591e05ffa45ca706c8977 Binary files /dev/null and b/nftables-1.1.4.tar.xz differ diff --git a/nftables.spec b/nftables.spec index d6c96b29d563f9d708240932908d794dabe1ea28..176d81a2b6ed0821a6b57f8cfe332d40649c45aa 100644 --- a/nftables.spec +++ b/nftables.spec @@ -1,18 +1,27 @@ Name: nftables -Version: 1.1.1 +Version: 1.1.4 Release: 1 Epoch: 1 Summary: A subsystem of the Linux kernel processing network data -License: GPLv2 -URL: https://netfilter.org/projects/nftables/ -Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.xz +License: GPL-2.0-only +URL: https://www.netfilter.org/projects/nftables +Source0: https://www.netfilter.org/projects/nftables/files/%{name}-%{version}.tar.xz Source1: nftables.service Source2: nftables.conf -BuildRequires: gcc flex bison libmnl-devel gmp-devel readline-devel libnftnl-devel docbook2X systemd -BuildRequires: iptables-devel jansson-devel python3-devel -BuildRequires: chrpath libedit-devel -BuildRequires: pyproject-rpm-macros python3-setuptools python3-packaging python3-wheel python3-pip +BuildRequires: gcc make +BuildRequires: bison flex +BuildRequires: pkgconfig(libmnl) >= 1.0.4 +BuildRequires: pkgconfig(libnftnl) >= 1.3.0 +BuildRequires: pkgconfig(xtables) >= 1.6.1 +BuildRequires: gmp-devel +BuildRequires: jansson-devel +BuildRequires: libedit-devel +BuildRequires: python3-devel +BuildRequires: readline-devel +BuildRequires: pyproject-rpm-macros python3-setuptools python3-packaging python3-wheel python3-pip +Provides: %{name}-services = %{epoch}:%{version}-%{release} +%{?systemd_requires} %description nftables is a subsystem of the Linux kernel providing filtering and classification of\ @@ -20,7 +29,7 @@ network packets/datagrams/frames. %package devel Summary: Development library for nftables / libnftables -Requires: %{name} = %{epoch}:%{version}-%{release} pkgconfig +Requires: %{name} = %{epoch}:%{version}-%{release} %description devel Development tools and static libraries and header files for the libnftables library. @@ -30,6 +39,7 @@ Development tools and static libraries and header files for the libnftables libr %package -n python3-nftables Summary: Python module providing an interface to libnftables Requires: %{name} = %{epoch}:%{version}-%{release} +Buildarch: noarch %{?python_provide:%python_provide python3-nftables} %description -n python3-nftables @@ -66,9 +76,6 @@ mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $RPM_BUILD_ROOT/%{_sysconfdir}/nft chrpath -d %{buildroot}%{_sbindir}/nft -mkdir -p %{buildroot}/etc/ld.so.conf.d -echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf - pushd py %pyproject3_install %pyproject_save_files nftables @@ -76,36 +83,31 @@ popd %post %systemd_post nftables.service -/sbin/ldconfig %preun %systemd_preun nftables.service %postun %systemd_postun_with_restart nftables.service -/sbin/ldconfig - -%ldconfig_scriptlets devel %files -%defattr(-,root,root) %license COPYING -%config(noreplace) %{_sysconfdir}/nftables/ +%dir %{_sysconfdir}/nftables +%config(noreplace) %{_sysconfdir}/nftables/*.nft +%dir %{_sysconfdir}/nftables/osf +%config(noreplace) %{_sysconfdir}/nftables/osf/pf.os %config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf -%config(noreplace) /etc/ld.so.conf.d/* %{_sbindir}/nft %{_libdir}/*.so.* %{_unitdir}/nftables.service %{_docdir}/nftables/examples/*.nft %files devel -%defattr(-,root,root) %{_includedir}/nftables/libnftables.h %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %files help -%defattr(-,root,root) %{_mandir}/man8/nft* %{_mandir}/man3/libnftables.3* %{_mandir}/man5/libnftables-json* @@ -113,6 +115,9 @@ popd %files -n python3-nftables -f %{pyproject_files} %changelog +* Thu Aug 07 2025 Funda Wang - 1:1.1.4-1 +- update to 1.1.4 + * Tue Mar 11 2025 gaihuiying - 1:1.1.1-1 - Type:requirement - ID:NA