From 7b26330bd5d491b2bb091122f4b4a53d0013a1f6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:46:48 +0100 Subject: [PATCH] rebuilt with python3 [release 0.36-2mamba;Thu Sep 10 2020] --- ufw.spec | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/ufw.spec b/ufw.spec index 8604c9d..866602d 100644 --- a/ufw.spec +++ b/ufw.spec @@ -2,7 +2,7 @@ %define majver %(echo %version | cut -d. -f1-2) Name: ufw Version: 0.36 -Release: 1mamba +Release: 2mamba Summary: ufw is Uncomplicated Firewall a cli front end to iptables Group: System/Libraries/Python Vendor: openmamba @@ -17,12 +17,12 @@ Patch2: %{name}-0.30.1-load_netbios_ipt_module.patch Patch3: ufw-0.35-disable_logging_by_default.patch License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END BuildRequires: iptables BuildRequires: iptables-ipv6 %systemd_requires -Requires: python >= %python_version +Requires: python3 >= %python3_version Requires: iptables Requires: iptables-ipv6 BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -38,12 +38,16 @@ Ufw stands for Uncomplicated Firewall, and is program for managing a netfilter f %patch3 -p1 %build -%{__python} setup.py build +%{__python3} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - --root="%{buildroot}" +%{__python3} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python3_inc} \ + --install-lib=%{python3_sitearch} \ + --record=%{name}.filelist install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service @@ -76,7 +80,7 @@ fi %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files +%files -f %{name}.filelist %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/default/ufw %dir %{_sysconfdir}/ufw @@ -95,13 +99,14 @@ fi %dir %{_datadir}/ufw %dir %{_datadir}/ufw/iptables %{_datadir}/ufw/iptables/*.rules -%{python_sitelib}/ufw-%{version}-py*.egg-info -%{python_sitelib}/ufw/*.py -%{python_sitelib}/ufw/*.pyc -%{_mandir}/man8/*.8.gz +%{_mandir}/man8/ufw-framework.8* +%{_mandir}/man8/ufw.8* %{_datadir}/ufw/messages/*.mo %changelog +* Thu Sep 10 2020 Silvan Calarco 0.36-2mamba +- rebuilt with python3 + * Tue Dec 25 2018 Automatic Build System 0.36-1mamba - automatic version update by autodist