* 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/package/show/security/ufw?expand=0&rev=22
This commit is contained in:
parent
158e4db0a9
commit
ea0b66dc77
3
ufw-0.36.1.tar.gz
Normal file
3
ufw-0.36.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c57e78fbf2970f0cc9c56ea87a231e6d83d825e55b9e31e2c88b91b0ea03c8c
|
||||
size 583123
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:754b22ae5edff0273460ac9f57509c3938187e0cf4fb9692c6a02833fff33cfc
|
||||
size 580338
|
22
ufw.changes
22
ufw.changes
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 29 15:38:15 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- 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
|
||||
|
||||
|
39
ufw.spec
39
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
|
||||
|
Loading…
Reference in New Issue
Block a user