2012-11-14 21:58:33 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-iptables
|
|
|
|
|
#
|
2023-12-07 22:59:23 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-11-14 21:58:33 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2013-10-24 11:07:05 +00:00
|
|
|
|
2023-12-07 22:59:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-14 21:58:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-06-27 11:05:30 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-11-14 21:58:33 +00:00
|
|
|
Name: python-iptables
|
2023-12-07 22:59:23 +00:00
|
|
|
Version: 1.0.1
|
2012-11-14 21:58:33 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python bindings for iptables
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
2018-06-27 11:05:30 +00:00
|
|
|
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
|
2012-11-14 21:58:33 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python-iptables is a Python project that provides bindings to the iptables C libraries in Linux.
|
|
|
|
|
Interoperability with iptables is achieved using the iptables C libraries (libiptc, libxtables,
|
|
|
|
|
and iptables extensions), not calling the iptables executable and parsing its output as most other
|
|
|
|
|
iptables wrapper libraries do; this makes python-iptables faster and not prone to parsing errors,
|
|
|
|
|
at the same time leveraging all available iptables match and target extensions without further work.
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-12-08 21:28:20 +00:00
|
|
|
%setup -q
|
2018-06-27 11:05:30 +00:00
|
|
|
chmod -x README.md
|
2012-11-14 21:58:33 +00:00
|
|
|
|
|
|
|
|
%build
|
2018-06-27 11:05:30 +00:00
|
|
|
%python_build
|
2012-11-14 21:58:33 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-06-27 11:05:30 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2012-11-14 21:58:33 +00:00
|
|
|
|
2018-06-27 11:05:30 +00:00
|
|
|
%check
|
|
|
|
|
%python_exec setup.py clean build test --help
|
2012-12-01 15:41:19 +00:00
|
|
|
|
2018-06-27 11:05:30 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license NOTICE
|
|
|
|
|
%doc doc README.md
|
2012-11-14 21:58:33 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|