[packages/python-netifaces] New

megabajt megabajt at pld-linux.org
Mon Oct 29 09:45:51 CET 2012


commit 93e083b62e0a8204b3f29bf3e0c04e7d3c3cf21b
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date:   Mon Oct 29 10:45:28 2012 +0100

    New

 python-netifaces.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/python-netifaces.spec b/python-netifaces.spec
new file mode 100644
index 0000000..d5e6d5a
--- /dev/null
+++ b/python-netifaces.spec
@@ -0,0 +1,51 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	netifaces
+Summary:	Python library to retrieve information about network interfaces
+Name:		python-%{module}
+Version:	0.8
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+Source0:	http://alastairs-place.net/projects/netifaces/%{module}-%{version}.tar.gz
+# Source0-md5:	e57e5983f4c286fac5f8068fbfc5c873
+URL:		http://alastairs-place.net/projects/netifaces/
+BuildRequires:	python-devel
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+Requires:	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides a cross platform API for getting address
+information from network interfaces.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{py_sitedir}/netifaces.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/netifaces-*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-netifaces.git/commitdiff/93e083b62e0a8204b3f29bf3e0c04e7d3c3cf21b



More information about the pld-cvs-commit mailing list