forked from pool/python-netaddr
- Regenerate spec file with py2pack;
- Removed unneded python-setuptools BuildRequires; - Update to 0.7.6: * A bug fix point release * Refreshed 3rd party data caches * Tested against Python 3.2.x and PyPy 1.6.x * Fixed unit tests under for Mac OSX Specific bug fixes addressed in this release -------------------------------------------- * FIXED Issue 15 - http://github.com/drkjam/netaddr/issues/15 - Incorrect and invalid glob produced when last octet is not * * FIXED Issue 13 - http://github.com/drkjam/netaddr/issues/13 - Added support for IPython 0.11 API changes. Thanks juliantaylor * FIXED Issue 11 - http://github.com/drkjam/netaddr/issues/11 - Calling valid_glob on cidr raises ValueError. Thanks radicand * FIXED Issue 7 - http://github.com/drkjam/netaddr/issues/7 - Unpickling Bug in IPSet. Thanks LuizOz and labeneator * FIXED Issue 2 - http://github.com/drkjam/netaddr/issues/2 - UnboundLocalError raised in IPNetwork constructor. Thanks keesbos Miscellanea ----------- - Has a famous soft drink company started making it own NICs? OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
ece004f668
commit
27bafd2ce4
@@ -11,21 +11,23 @@
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
Name: python-netaddr
|
||||
Version: 0.7.5
|
||||
Release: 1
|
||||
License: BSD3c
|
||||
Version: 0.7.6
|
||||
Release: 0
|
||||
Url: http://github.com/drkjam/netaddr
|
||||
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
||||
Url: http://code.google.com/p/netaddr
|
||||
Group: Development/Libraries/Python
|
||||
License: BSD License
|
||||
Group: Development/Languages/Python
|
||||
Source: netaddr-%{version}.tar.bz2
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
@@ -52,16 +54,22 @@ Included are routines for:
|
||||
|
||||
%prep
|
||||
%setup -q -n netaddr-%{version}
|
||||
chmod -x AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS # remove executable bit from docs
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%{__chmod} -x AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS # remove executable bit from docs
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/*
|
||||
%{_bindir}/netaddr
|
||||
%doc AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user