Upstream 0.10.4

- Packaging cleanups
This commit is contained in:
Haikel Guemar 2015-02-24 00:55:07 +01:00
parent 91ebc69162
commit 89d2dddfe8
3 changed files with 22 additions and 24 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/netifaces-0.5.tar.gz
/netifaces-0.10.4.tar.gz

View File

@ -1,23 +1,23 @@
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?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))")}
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%global pypi_name netifaces
Name: python-netifaces
Version: 0.5
Release: 8%{?dist}
Version: 0.10.4
Release: 1%{?dist}
Summary: Python library to retrieve information about network interfaces
Group: Development/Libraries
License: MIT
URL: http://alastairs-place.net/netifaces/
Source0: http://alastairs-place.net/2007/03/netifaces/netifaces-0.5.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
URL: https://pypi.python.org/pypi/netifaces
Source0: https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python2
%description
This package provides a cross platform API for getting address information
@ -25,30 +25,27 @@ from network interfaces.
%prep
%setup -q -n netifaces-%{version}
%setup -q -n %{pypi_name}-%{version}
%build
python setup.py build
%Build
%{__python2} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --root $RPM_BUILD_ROOT
chmod -x $RPM_BUILD_ROOT%{python_sitearch}/netifaces-0.5-*.egg-info/*
%clean
rm -rf $RPM_BUILD_ROOT
%{__python2} setup.py install --root $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%{python_sitearch}/netifaces-0.5-*.egg-info/
%{python_sitearch}/netifaces.so
%doc README.rst
%{python2_sitearch}/%{pypi_name}-%{version}-*.egg-info/
%{python2_sitearch}/%{pypi_name}.so
%changelog
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.4-1
- Upstream 0.10.4
- Packaging cleanups
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View File

@ -1 +1 @@
ea662a4b4c7db5d1631cc33bf68eb030 netifaces-0.5.tar.gz
36da76e2cfadd24cc7510c2c0012eb1e netifaces-0.10.4.tar.gz