update to 0.22.0 [release 0.22.0-1mamba;Mon Dec 21 2020]
This commit is contained in:
parent
b904c2902e
commit
78331cc60e
86
pyudev.spec
86
pyudev.spec
@ -1,13 +1,13 @@
|
||||
Name: pyudev
|
||||
Version: 0.16.1
|
||||
Release: 2mamba
|
||||
Version: 0.22.0
|
||||
Release: 1mamba
|
||||
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
|
||||
Source: https://pypi.debian.net/pyudev/pyudev-%{version}.tar.gz
|
||||
License: LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython-devel
|
||||
@ -27,12 +27,68 @@ 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
|
||||
|
||||
@ -54,16 +110,28 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz,;\,qt,d" %{name}.filelist
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files -f %{name}.filelist
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.rst COPYING README.rst
|
||||
%dir %{python_sitearch}/pyudev-%{version}-py*.egg-info
|
||||
%{python_sitearch}/pyudev-%{version}-py*.egg-info/*
|
||||
%doc COPYING
|
||||
|
||||
%files qt4
|
||||
%files qt4%{?with_pyver:-py%{pyver}}
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/pyudev/_qt_base.py*
|
||||
%{python_sitelib}/pyudev/pyqt4.py*
|
||||
%{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 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user