rebuilt with python3 [release 0.36-2mamba;Thu Sep 10 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 18:46:48 +01:00
parent 49fab777d6
commit 7b26330bd5

View File

@ -2,7 +2,7 @@
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: ufw Name: ufw
Version: 0.36 Version: 0.36
Release: 1mamba Release: 2mamba
Summary: ufw is Uncomplicated Firewall a cli front end to iptables Summary: ufw is Uncomplicated Firewall a cli front end to iptables
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba 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 Patch3: ufw-0.35-disable_logging_by_default.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel BuildRequires: libpython3-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: iptables BuildRequires: iptables
BuildRequires: iptables-ipv6 BuildRequires: iptables-ipv6
%systemd_requires %systemd_requires
Requires: python >= %python_version Requires: python3 >= %python3_version
Requires: iptables Requires: iptables
Requires: iptables-ipv6 Requires: iptables-ipv6
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -38,12 +38,16 @@ Ufw stands for Uncomplicated Firewall, and is program for managing a netfilter f
%patch3 -p1 %patch3 -p1
%build %build
%{__python} setup.py build %{__python3} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python3} setup.py install \
--root="%{buildroot}" -O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python3_inc} \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service
@ -76,7 +80,7 @@ fi
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/default/ufw %config(noreplace) %{_sysconfdir}/default/ufw
%dir %{_sysconfdir}/ufw %dir %{_sysconfdir}/ufw
@ -95,13 +99,14 @@ fi
%dir %{_datadir}/ufw %dir %{_datadir}/ufw
%dir %{_datadir}/ufw/iptables %dir %{_datadir}/ufw/iptables
%{_datadir}/ufw/iptables/*.rules %{_datadir}/ufw/iptables/*.rules
%{python_sitelib}/ufw-%{version}-py*.egg-info %{_mandir}/man8/ufw-framework.8*
%{python_sitelib}/ufw/*.py %{_mandir}/man8/ufw.8*
%{python_sitelib}/ufw/*.pyc
%{_mandir}/man8/*.8.gz
%{_datadir}/ufw/messages/*.mo %{_datadir}/ufw/messages/*.mo
%changelog %changelog
* Thu Sep 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.36-2mamba
- rebuilt with python3
* Tue Dec 25 2018 Automatic Build System <autodist@mambasoft.it> 0.36-1mamba * Tue Dec 25 2018 Automatic Build System <autodist@mambasoft.it> 0.36-1mamba
- automatic version update by autodist - automatic version update by autodist