From 68b22742c6c4642089bd621c5082ab62bf398832f7c8efe6f3690f27edaa8750 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 3 Mar 2022 15:11:02 +0000 Subject: [PATCH] Accepting request 949885 from home:badshah400:branches:security * Update to version 0.36.1. * Switch to using default python3 for build and use appropriate python macros (BuildRequires: python3-devel, python-rpm-macros). * Move bash completions to %_datadir/bash-completion/completions. * Fix env dependent hashbangs. OBS-URL: https://build.opensuse.org/request/show/949885 OBS-URL: https://build.opensuse.org/package/show/security/ufw?expand=0&rev=22 --- ufw-0.36.1.tar.gz | 3 +++ ufw-0.36.tar.gz | 3 --- ufw.changes | 22 ++++++++++++++++++++++ ufw.spec | 39 ++++++++++++++++++--------------------- 4 files changed, 43 insertions(+), 24 deletions(-) create mode 100644 ufw-0.36.1.tar.gz delete mode 100644 ufw-0.36.tar.gz diff --git a/ufw-0.36.1.tar.gz b/ufw-0.36.1.tar.gz new file mode 100644 index 0000000..9156b6c --- /dev/null +++ b/ufw-0.36.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c57e78fbf2970f0cc9c56ea87a231e6d83d825e55b9e31e2c88b91b0ea03c8c +size 583123 diff --git a/ufw-0.36.tar.gz b/ufw-0.36.tar.gz deleted file mode 100644 index e67d26d..0000000 --- a/ufw-0.36.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:754b22ae5edff0273460ac9f57509c3938187e0cf4fb9692c6a02833fff33cfc -size 580338 diff --git a/ufw.changes b/ufw.changes index b58c831..4885af8 100644 --- a/ufw.changes +++ b/ufw.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Sat Jan 29 15:38:15 UTC 2022 - Atri Bhattacharya + +- Update to version 0.36.1: + * update man page for limit since IPv6 has been supported since + 0.33 (LP: #1831186). + * add direction when no interfaces specified in get_app_tuple() + (LP: #1838764). + * various testsuite adjustments for iptables 1.8 + * doc/ufw.8: + - ::/0 is also a synonym for 'Anywhere' + - document --force with 'ufw delete NUM' + * prefer python3 + * empty out IPT_MODULES and update documentation (LP: #1556419) + * adjust check-requirements to look for other firewall software + * src/backend_iptables.py: unconditionally reload user rules + with 'delete' (LP: #1933117). +- Switch to using default python3 for build and use appropriate + python macros (BuildRequires: python3-devel, python-rpm-macros). +- Move bash completions to %_datadir/bash-completion/completions. +- Fix env dependent hashbangs. + ------------------------------------------------------------------- Thu Jan 08 13:44:54 UTC 2019 - alexander_naumov@opensuse.org diff --git a/ufw.spec b/ufw.spec index 93602ca..bcb1adf 100644 --- a/ufw.spec +++ b/ufw.spec @@ -1,7 +1,7 @@ # # spec file for package ufw # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,22 +12,23 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define major_ver 0.36 Name: ufw -Version: 0.36 +Version: %{major_ver}.1 Release: 0 Summary: Uncomplicated Firewall License: GPL-3.0-only Group: Productivity/Networking/Security -Url: https://launchpad.net/ufw -Source0: https://launchpad.net/ufw/%{version}/%{version}/+download/%{name}-%{version}.tar.gz +URL: https://launchpad.net/ufw +Source0: https://launchpad.net/ufw/%{major_ver}/%{version}/+download/%{name}-%{version}.tar.gz BuildRequires: bash-completion BuildRequires: iptables -BuildRequires: python-base >= 2.7 -BuildRequires: python-devel +BuildRequires: python-rpm-macros +BuildRequires: python3-devel BuildRequires: systemd-rpm-macros Requires: bash-completion Recommends: %{name}-lang @@ -44,17 +45,15 @@ manipulating the firewall. %prep %setup -q -#Submited patch through ufw's bug report -#Fix directory locations instead of #CONFIG_PREFIX# -#http://bugs.launchpad.net/ufw/+bug/819600 %build -#python setup.py build +%python3_build %install -python setup.py install --prefix=%{_prefix} --root %{buildroot} +%python3_install +sed -i "1{s|/usr/bin/env||}" %{buildroot}%{_sbindir}/ufw mkdir -p %{buildroot}/%{_bindir} -install -Dm0644 shell-completion/bash %{buildroot}%{_sysconfdir}/bash_completion.d/ufw.sh +install -Dm0644 shell-completion/bash %{buildroot}%{_datadir}/bash-completion/completions/ufw.sh install -Dm0644 doc/systemd.example %{buildroot}%{_unitdir}/%{name}.service ln -s %{_mandir}/man8/ufw.8.gz %{buildroot}%{_mandir}/man8/rcufw.8.gz ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} @@ -73,29 +72,27 @@ ln -s %{_sbindir}/ufw %{buildroot}/%{_bindir}/ufw %service_del_postun ufw.service %files -%defattr(-,root,root) /lib/ufw/ufw-init /lib/ufw/ufw-init-functions -%{python_sitelib}/ufw-%{version}-py%{python_version}.egg-info +%{python3_sitelib}/ufw-%{version}-py%{python3_version}.egg-info %{_sbindir}/ufw %{_sbindir}/rcufw %{_bindir}/ufw -%{_mandir}/man8/ufw-framework.8%{ext_man} -%{_mandir}/man8/ufw.8%{ext_man} -%{_mandir}/man8/rcufw.8%{ext_man} +%{_mandir}/man8/ufw-framework.8%{?ext_man} +%{_mandir}/man8/ufw.8%{?ext_man} +%{_mandir}/man8/rcufw.8%{?ext_man} %config %{_sysconfdir}/%{name} %config %{_sysconfdir}/%{name}/applications.d %config %{_sysconfdir}/default/ufw -%config %{_sysconfdir}/bash_completion.d/ufw.sh +%{_datadir}/bash-completion/completions/ufw.sh %{_unitdir}/%{name}.service /lib/ufw -%{python_sitelib}/ufw +%{python3_sitelib}/ufw %{_datadir}/%{name} %{_datadir}/%{name}/iptables %exclude %{_datadir}/%{name}/messages %files lang -%defattr(-,root,root) %dir %{_datadir}/%{name}/messages %lang(zh_TW) %{_datadir}/%{name}/messages/zh_TW.mo %lang(ar) %{_datadir}/%{name}/messages/ar.mo