diff --git a/README.md b/README.md index 25b2431..4b524ac 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pyudev +pyudev is a Python binding for libudev. + diff --git a/pyudev.spec b/pyudev.spec new file mode 100644 index 0000000..ef42745 --- /dev/null +++ b/pyudev.spec @@ -0,0 +1,92 @@ +Name: pyudev +Version: 0.16.1 +Release: 2mamba +Summary: Python binding for libudev +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://packages.python.org/pyudev +Source: http://pypi.python.org/packages/source/p/pyudev/pyudev-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +BuildRequires: python +## AUTOBUILDREQ-END +Requires: python >= %python_version +Requires: python-apipkg +Requires: udev +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildArch: noarch + +%description +pyudev is a Python binding for libudev. + +%package qt4 +Group: System/Libraries/Python +Summary: PyQt4 binding for libudev +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: PyQt4 + +%description qt4 +pyudev is a Python binding for libudev. + +This package provides the PyQt4 binding. + +%prep +%setup -q + +%build +%{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --single-version-externally-managed \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz,;\,qt,d" %{name}.filelist + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc CHANGES.rst COPYING README.rst + +%files qt4 +%defattr(-,root,root) +%{python_sitelib}/pyudev/_qt_base.py* +%{python_sitelib}/pyudev/pyqt4.py* + +%changelog +* Sat May 25 2013 Silvan Calarco 0.16.1-2mamba +- python 2.7 mass rebuild + +* Wed Aug 15 2012 Automatic Build System 0.16.1-1mamba +- automatic version update by autodist + +* Thu Jun 14 2012 Automatic Build System 0.15-1mamba +- automatic version update by autodist + +* Sun Oct 02 2011 Automatic Build System 0.12-1mamba +- automatic version update by autodist + +* Mon Jul 25 2011 Automatic Build System 0.11-1mamba +- automatic version update by autodist + +* Sun Jun 19 2011 Automatic Build System 0.10-1mamba +- automatic update by autodist + +* Tue May 17 2011 Automatic Build System 0.9-1mamba +- automatic update by autodist + +* Sun Mar 06 2011 Automatic Build System 0.8-1mamba +- automatic update by autodist + +* Thu Sep 30 2010 Stefano Cotta Ramusino 0.5-1mamba +- package created by autospec