pyudev/pyudev.spec

93 lines
2.6 KiB
RPMSpec

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 <stefano.cotta@openmamba.org>
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 <silvan.calarco@mambasoft.it> 0.16.1-2mamba
- python 2.7 mass rebuild
* Wed Aug 15 2012 Automatic Build System <autodist@mambasoft.it> 0.16.1-1mamba
- automatic version update by autodist
* Thu Jun 14 2012 Automatic Build System <autodist@mambasoft.it> 0.15-1mamba
- automatic version update by autodist
* Sun Oct 02 2011 Automatic Build System <autodist@mambasoft.it> 0.12-1mamba
- automatic version update by autodist
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 0.11-1mamba
- automatic version update by autodist
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 0.10-1mamba
- automatic update by autodist
* Tue May 17 2011 Automatic Build System <autodist@mambasoft.it> 0.9-1mamba
- automatic update by autodist
* Sun Mar 06 2011 Automatic Build System <autodist@mambasoft.it> 0.8-1mamba
- automatic update by autodist
* Thu Sep 30 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.5-1mamba
- package created by autospec