Name: pyudev Version: 0.22.0 Release: 2mamba Summary: Python binding for libudev Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://packages.python.org/pyudev Source: https://pypi.debian.net/pyudev/pyudev-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(six) ## AUTOBUILDREQ-END Requires: udev 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 Provides: pyudev-qt4 Obsoletes: pyudev-qt4 <= 0.16.1 %description qt4 pyudev is a Python binding for libudev. This package provides the PyQt4 binding. %package qt5 Group: System/Libraries/Python Summary: PyQt5 binding for libudev Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: PyQt5 %description qt5 pyudev is a Python binding for libudev. This package provides the PyQt5 binding. %if "%?with_pyver" %define pyver %{with_pyver} %define pyappend py%{with_pyver} %define __python %(rpm --eval %{__python%{with_pyver}}) %define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) %define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) %define python_inc %(rpm --eval %{python%{with_pyver}_inc}) %define python_version %(rpm --eval %{python%{with_pyver}_version}) %define python_provides %(rpm --eval %{python%{with_pyver}_provides}) %define python_requires %(rpm --eval %{python%{with_pyver}_requires}) %define py_requires %(rpm --eval %{py%{with_pyver}_requires}) %package py%{pyver} Group: System/Libraries/Python Summary: %{summary}. Requires: python-apipkg-%{?pyappend} Requires: udev %py_requires %description py%{pyver} %{summary}. %package qt4%{?with_pyver:-py%{pyver}} Group: System/Libraries/Python Summary: PyQt4 binding for libudev Requires: %{name}%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release} Requires: PyQt4%{?with_pyver:-py%{pyver}} Provides: pyudev-qt4 Obsoletes: pyudev-qt4 <= 0.16.1 %description qt4%{?with_pyver:-py%{pyver}} pyudev is a Python binding for libudev. This package provides the PyQt4 binding. %package qt5%{?with_pyver:-py%{pyver}} Group: System/Libraries/Python Summary: PyQt5 binding for libudev Requires: %{name}%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release} Requires: PyQt5%{?with_pyver:-py%{pyver}} %description qt5%{?with_pyver:-py%{pyver}} pyudev is a Python binding for libudev. This package provides the PyQt5 binding. %endif %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 %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %dir %{python_sitearch}/pyudev-%{version}-py*.egg-info %{python_sitearch}/pyudev-%{version}-py*.egg-info/* %doc COPYING %files qt4%{?with_pyver:-py%{pyver}} %defattr(-,root,root) %{python_sitearch}/pyudev/_qt_base*.py* %{python_sitearch}/pyudev/pyqt4*.py* %{python_sitearch}/pyudev/__pycache__/_qt_base.cpython-* %{python_sitearch}/pyudev/__pycache__/pyqt4.cpython-*.pyc %files qt5%{?with_pyver:-py%{pyver}} %defattr(-,root,root) %{python_sitearch}/pyudev/pyqt5*.py* %{python_sitearch}/pyudev/__pycache__/pyqt5*.pyc %changelog * Mon May 10 2021 Silvan Calarco 0.22.0-2mamba - rebuilt with distdeps * Mon Dec 21 2020 Silvan Calarco 0.22.0-1mamba - update to 0.22.0 * 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