diff --git a/python-iptables-0.2.0.tar.gz b/python-iptables-0.2.0.tar.gz deleted file mode 100644 index b3acdae..0000000 --- a/python-iptables-0.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef60b7a58338c65de5a0600eeabca92db940e78fef4dbaffe4fc1e9ce9f6dafb -size 45316 diff --git a/python-iptables.changes b/python-iptables.changes index 5745e24..7ff5034 100644 --- a/python-iptables.changes +++ b/python-iptables.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Jun 25 14:57:13 UTC 2018 - mcepl@suse.com + +- 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 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Sun Dec 8 21:22:27 UTC 2013 - p.drouand@gmail.com @@ -15,3 +28,4 @@ Wed Nov 14 21:52:14 UTC 2012 - saschpe@suse.de - Initial version + diff --git a/python-iptables.spec b/python-iptables.spec index a9431f6..fdeed04 100644 --- a/python-iptables.spec +++ b/python-iptables.spec @@ -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 @@ at the same time leveraging all available iptables match and target extensions w %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 +%check +%python_exec setup.py clean build test --help -%files -%defattr(-,root,root,-) -%doc NOTICE doc +%files %{python_files} +%license NOTICE +%doc doc README.md %{python_sitearch}/* %changelog diff --git a/v0.13.0.tar.gz b/v0.13.0.tar.gz new file mode 100644 index 0000000..dc5a128 --- /dev/null +++ b/v0.13.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd221b32bf273287b82dca3ab59ce6cf00709fcb067f4c4dab56a4f1152288c6 +size 56491