packages: python-pyudev/python-pyudev.spec (NEW)=?UTF-8?Q?=20?=- new package

jajcus jajcus at pld-linux.org
Tue Jun 26 14:13:26 CEST 2012


Author: jajcus                       Date: Tue Jun 26 12:13:26 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new package

---- Files affected:
packages/python-pyudev:
   python-pyudev.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-pyudev/python-pyudev.spec
diff -u /dev/null packages/python-pyudev/python-pyudev.spec:1.1
--- /dev/null	Tue Jun 26 14:13:26 2012
+++ packages/python-pyudev/python-pyudev.spec	Tue Jun 26 14:13:21 2012
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	pyudev
+Summary:	Pure Python binding for libudev
+Name:		python-%{module}
+Version:	0.15
+Release:	1
+License:	LGPL v2.1+
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/p/pyudev/%{module}-%{version}.tar.gz
+# Source0-md5:	35d7295e71664bb630a1fa61ad11d6f6
+URL:		http://pyudev.readthedocs.org/
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pyudev is a LGPL licensed, pure Python binding for libudev, the device
+and hardware management and information library for Linux. It supports
+almost all libudev functionality, you can enumerate devices, query
+device properties and attributes or monitor devices, including
+asynchronous monitoring with threads, or within the event loops of Qt,
+Glib or wxPython.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__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
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst README.rst TESTING.rst doc/
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/06/26 12:13:21  jajcus
+- new package
+
+
================================================================


More information about the pld-cvs-commit mailing list