Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:crameleon:misc
python-aggregate6
python-aggregate6.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-aggregate6.spec of Package python-aggregate6
# # spec file for package python-aggregate6 # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2023 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net> # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define apptag 1.0.12 %define appname aggregate6 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif %if 0%{?suse_version} > 1600 %define pythons python311 %endif Name: python-%{appname}%{psuffix} Version: 1.0.12+git37.3ef93ac Release: 0 Summary: IPv4 and IPv6 prefix aggregation tool License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/job/aggregate6 Source: %{appname}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python3-py-radix Provides: %{appname} BuildArch: noarch %if %{with test} BuildRequires: %{python_module aggregate6} BuildRequires: %{python_module py-radix} %endif %python_subpackages %description aggregate6 will compress an unsorted list of IP prefixes (both IPv4 and IPv6). %prep %autosetup -n %{appname}-%{version} sed -i 's?man/man7?share/man/man7?' setup.py sed -i '1d' %{appname}/%{appname}.py %build %if !%{with test} %python_build %endif %install %if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{appname} %endif %if %{with test} %check %python_expand $python tests/test_regression.py %endif %if !%{with test} %files %{python_files} %license LICENSE %doc README.md %dir %{python_sitelib}/%{appname} %{_bindir}/%{appname} %pycache_only %{python_sitelib}/%{appname}/__pycache__ %{python_sitelib}/%{appname}/{__{main,init}__,%{appname}}.py %{python_sitelib}/%{appname}-%{apptag}-py%{python_version}.egg-info %{_mandir}/man7/%{appname}.7%{?ext_man} %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor