[python-netifaces] Initial packaging effort
Ryan Rix
rrix at fedoraproject.org
Fri Jun 17 18:57:58 UTC 2011
commit ceb27d3cecb22bc032804cbdd9355623f9fdd1c5
Author: Ryan Rix <ry at n.rix.si>
Date: Fri Jun 17 11:57:41 2011 -0700
Initial packaging effort
.gitignore | 1 +
python-netifaces.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a8a7ab4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/netifaces-0.5.tar.gz
diff --git a/python-netifaces.spec b/python-netifaces.spec
new file mode 100644
index 0000000..3df5c22
--- /dev/null
+++ b/python-netifaces.spec
@@ -0,0 +1,55 @@
+%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))")}
+%endif
+
+# Filter private shared library provides
+%filter_provides_in %{python_sitearch}/zope/interface/.*\.so$
+%filter_setup
+
+Name: python-netifaces
+Version: 0.5
+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)
+
+BuildRequires: python2-devel
+Requires: python2
+
+%description
+This package provides a cross platform API for getting address information
+from network interfaces.
+
+
+%prep
+%setup -q -n netifaces-%{version}
+
+
+%build
+python setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+python setup.py install --root $RPM_BUILD_ROOT
+chmod -x $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/netifaces-0.5-py2.7.egg-info/*
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{python_sitearch}/netifaces-0.5-py2.7.egg-info/
+%{python_sitearch}/netifaces.so
+
+%changelog
+* Wed Jun 1 2011 Ryan Rix <ry at n.rix.si> 0.5-1
+- Initial packaging effort
diff --git a/sources b/sources
index e69de29..3765e48 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ea662a4b4c7db5d1631cc33bf68eb030 netifaces-0.5.tar.gz
More information about the scm-commits
mailing list