forked from pool/python-netaddr
Accepting request 514799 from home:mnhauke:network:automation
- Convert to singlespec OBS-URL: https://build.opensuse.org/request/show/514799 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 6 09:31:51 UTC 2017 - mardnh@gmx.de
|
||||||
|
|
||||||
|
- Convert to singlespec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jan 14 14:15:17 UTC 2017 - michael@stroeder.com
|
Sat Jan 14 14:15:17 UTC 2017 - michael@stroeder.com
|
||||||
|
|
||||||
|
@@ -16,24 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
#%%bcond_without test
|
||||||
Name: python-netaddr
|
Name: python-netaddr
|
||||||
Version: 0.7.19
|
Version: 0.7.19
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://github.com/drkjam/netaddr
|
|
||||||
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.io/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
Url: http://github.com/drkjam/netaddr
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
%if 0%{?suse_version}
|
BuildRequires: fdupes
|
||||||
%py_requires
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
%endif
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A pure Python network address representation and manipulation library.
|
A pure Python network address representation and manipulation library.
|
||||||
@@ -57,15 +55,22 @@ Included are routines for:
|
|||||||
sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
|
sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_clone %{buildroot}%{_bindir}/netaddr
|
||||||
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%files
|
%if %{with test}
|
||||||
%defattr(-,root,root,-)
|
%check
|
||||||
|
%python_exec setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_bindir}/netaddr
|
%{_bindir}/netaddr-%{python_bin_suffix}
|
||||||
|
%python3_only %{_bindir}/netaddr
|
||||||
%doc AUTHORS CHANGELOG COPYRIGHT README.md LICENSE
|
%doc AUTHORS CHANGELOG COPYRIGHT README.md LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user