Upstream 0.10.4
- Packaging cleanups
This commit is contained in:
parent
91ebc69162
commit
89d2dddfe8
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/netifaces-0.5.tar.gz
|
/netifaces-0.5.tar.gz
|
||||||
|
/netifaces-0.10.4.tar.gz
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%global pypi_name netifaces
|
||||||
|
|
||||||
Name: python-netifaces
|
Name: python-netifaces
|
||||||
Version: 0.5
|
Version: 0.10.4
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python library to retrieve information about network interfaces
|
Summary: Python library to retrieve information about network interfaces
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://alastairs-place.net/netifaces/
|
URL: https://pypi.python.org/pypi/netifaces
|
||||||
Source0: http://alastairs-place.net/2007/03/netifaces/netifaces-0.5.tar.gz
|
Source0: https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
|
||||||
Requires: python2
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a cross platform API for getting address information
|
This package provides a cross platform API for getting address information
|
||||||
@ -25,30 +25,27 @@ from network interfaces.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n netifaces-%{version}
|
%setup -q -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%Build
|
||||||
python setup.py build
|
%{__python2} setup.py build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{__python2} setup.py install --root $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
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%doc README.rst
|
||||||
%doc README
|
%{python2_sitearch}/%{pypi_name}-%{version}-*.egg-info/
|
||||||
%{python_sitearch}/netifaces-0.5-*.egg-info/
|
%{python2_sitearch}/%{pypi_name}.so
|
||||||
%{python_sitearch}/netifaces.so
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user