pyudev/pyudev.spec

146 lines
4.5 KiB
RPMSpec

Name: pyudev
Version: 0.24.0
Release: 1mamba
Summary: Python binding for libudev
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pythonhosted.org/pyudev/
Source: https://pypi.debian.net/pyudev/pyudev-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## 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 0%{?with_pyver}
%pyver_package
%define py_requires_append \
Requires: python-apipkg-%pyappend} \
Requires: udev
%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}}
Obsoletes: pyudev-qt4%{?with_pyver:-py%{pyver}} < 0.22.0-6mamba
%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
rm -f %{buildroot}%{python_sitearch}/pyudev/pyqt4*.py*
rm -f %{buildroot}%{python_sitearch}/pyudev/__pycache__/pyqt4.cpython-*.pyc
%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 qt5%{?with_pyver:-py%{pyver}}
%defattr(-,root,root)
%{python_sitearch}/pyudev/_qt_base*.py*
%{python_sitearch}/pyudev/pyqt5*.py*
%{python_sitearch}/pyudev/__pycache__/_qt_base.cpython-*
%{python_sitearch}/pyudev/__pycache__/pyqt5*.pyc
%changelog
* Mon Sep 12 2022 Automatic Build System <autodist@mambasoft.it> 0.24.0-1mamba
- automatic version update by autodist
* Tue May 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-6mamba
- pyudev-qt5-py{X}: obsolete pyudev-qt4-py{X}
* Tue Apr 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-5mamba
- remove qt4 subpackage
* Mon Apr 04 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-4mamba
- fix conflicting provides/obsoletes since adding 3.10 subpackage
* Sun Apr 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-3mamba
- rebuilt with python 3.10
* Mon May 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-2mamba
- rebuilt with distdeps
* Mon Dec 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-1mamba
- update to 0.22.0
* 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