Hello community, here is the log from the commit of package python-iptables for openSUSE:Factory checked in at 2018-06-28 15:13:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-iptables (Old) and /work/SRC/openSUSE:Factory/.python-iptables.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-iptables" Thu Jun 28 15:13:35 2018 rev:7 rq:619375 version:0.13.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-iptables/python-iptables.changes 2013-12-09 16:59:30.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-iptables.new/python-iptables.changes 2018-06-28 15:13:41.179563489 +0200 @@ -1,0 +2,13 @@ +Mon Jun 25 14:57:13 UTC 2018 - [email protected] + +- Clean up SPEC file +- Upgrade to 0.13.0 ... zillion small changes, mostly bugfixes, + unfortunately there is no better log than the commit one on the GitHub + repo (https://github.com/ldx/python-iptables/commits/master) + +------------------------------------------------------------------- +Thu Aug 24 13:41:30 UTC 2017 - [email protected] + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -16,0 +30 @@ + Old: ---- python-iptables-0.2.0.tar.gz New: ---- v0.13.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-iptables.spec ++++++ --- /var/tmp/diff_new_pack.ixqnkl/_old 2018-06-28 15:13:45.219556085 +0200 +++ /var/tmp/diff_new_pack.ixqnkl/_new 2018-06-28 15:13:45.219556085 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-iptables # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,20 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-iptables -Version: 0.2.0 +Version: 0.13.0 Release: 0 -Url: https://github.com/ldx/python-iptables Summary: Python bindings for iptables License: Apache-2.0 Group: Development/Languages/Python -# Source: https://github.com/ldx/python-iptables/archive/v%{version}.tar.gz -Source: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +URL: https://github.com/ldx/python-iptables +Source: https://github.com/ldx/python-iptables/archive/v%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages %description Python-iptables is a Python project that provides bindings to the iptables C libraries in Linux. @@ -41,20 +40,21 @@ %prep %setup -q +chmod -x README.md %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} -# Can't really run tests, needs root access and modifies iptables of build host: -#%%check -#yes | python test.py - -%files -%defattr(-,root,root,-) -%doc NOTICE doc +%check +%python_exec setup.py clean build test --help + +%files %{python_files} +%license NOTICE +%doc doc README.md %{python_sitearch}/* %changelog
