remove qt4 subpackage [release 0.22.0-5mamba;Tue Apr 12 2022]
This commit is contained in:
parent
b17b0adca8
commit
b2f5fe8ea6
54
pyudev.spec
54
pyudev.spec
@ -1,12 +1,12 @@
|
||||
Name: pyudev
|
||||
Version: 0.22.0
|
||||
Release: 2mamba
|
||||
Release: 5mamba
|
||||
Summary: Python binding for libudev
|
||||
Group: System/Libraries/Python
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://packages.python.org/pyudev
|
||||
URL: https://pythonhosted.org/pyudev/
|
||||
Source: https://pypi.debian.net/pyudev/pyudev-%{version}.tar.gz
|
||||
License: LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
@ -41,35 +41,21 @@ Requires: PyQt5
|
||||
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}
|
||||
%if 0%{?with_pyver}
|
||||
%pyver_package
|
||||
%define py_requires_append \
|
||||
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}}
|
||||
%if "0%{?with_pyver}" == "03"
|
||||
Provides: pyudev-qt4
|
||||
Obsoletes: pyudev-qt4 <= 0.16.1
|
||||
%endif
|
||||
|
||||
%description qt4%{?with_pyver:-py%{pyver}}
|
||||
pyudev is a Python binding for libudev.
|
||||
@ -104,6 +90,9 @@ This package provides the PyQt5 binding.
|
||||
|
||||
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}"
|
||||
|
||||
@ -113,19 +102,28 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz,;\,qt,d" %{name}.filelist
|
||||
%{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 qt4%{?with_pyver:-py%{pyver}}
|
||||
#%defattr(-,root,root)
|
||||
#%{python_sitearch}/pyudev/pyqt4*.py*
|
||||
#%{python_sitearch}/pyudev/__pycache__/pyqt4.cpython-*.pyc
|
||||
|
||||
%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
|
||||
* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user