Compare commits

..

No commits in common. "dc75c553a74be4324d1e679a09ad6409388de0e0" and "c092b3ef772de4b4242ecf5e2bfd35f1929b64b7" have entirely different histories.

3 changed files with 35 additions and 92 deletions

View File

@ -1,53 +1,33 @@
%global _empty_manifest_terminate_build 0 %global srcname pyudev
Name: python-pyudev Name: python-%{srcname}
Version: 0.24.1 Version: 0.22.0
Release: 2 Release: 2
Summary: A libudev binding Summary: A libudev binding
License: LGPL 2.1+ License: LGPLv2+
URL: http://pyudev.readthedocs.org/ URL: http://pypi.python.org/pypi/pyudev
Source0: https://files.pythonhosted.org/packages/20/b6/16961ac3575575260c72928f17df9c99c2a696871e486965ec6e2fa2aff4/pyudev-0.24.1.tar.gz Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
%description %global _description\
This package supports almost all libudev functionality.The lisence This package supports almost all libudev functionality.The lisence\
is LGPL.It is a python 2/3 binding to libudev which is a linux is LGPL.It is a python 2/3 binding to libudev which is a linux\
library supporting device management.The usage of pyudev is simple library supporting device management.The usage of pyudev is simple\
and you can use it after a quick learning. and you can use it after a quick learning.
%package -n python3-pyudev %description %_description
Summary: A libudev binding
Provides: python-pyudev
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-six
# Test requires
BuildRequires: python3-hypothesis
BuildRequires: python3-pytest
BuildRequires: python3-pyudev
# General requires
Requires: python3-six
%description -n python3-pyudev
This package supports almost all libudev functionality.The lisence
is LGPL.It is a python 2/3 binding to libudev which is a linux
library supporting device management.The usage of pyudev is simple
and you can use it after a quick learning.
%package help %package -n python3-%{srcname}
Summary: A libudev binding Summary: A libudev binding
Provides: python3-pyudev-doc BuildRequires: python3-devel python3-setuptools
%description help Requires: systemd python3-six
This package supports almost all libudev functionality.The lisence Provides: python3-%{srcname}-qt4 python3-%{srcname}-qt5
is LGPL.It is a python 2/3 binding to libudev which is a linux Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5
library supporting device management.The usage of pyudev is simple %description -n python3-%{srcname} %_description
and you can use it after a quick learning. %{?python_provide:%python_provide python3-%{srcname}}
%prep %prep
%autosetup -n pyudev-%{version} -p1 %autosetup -n %{srcname}-%{version}
rm -rf pyudev.egg-info
%build %build
%py3_build %py3_build
@ -55,57 +35,20 @@ and you can use it after a quick learning.
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} %files -n python3-%{srcname}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi %license COPYING
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi %doc README.rst CHANGES.rst
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi %{python3_sitelib}/pyudev
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi %{python3_sitelib}/pyudev-%{version}-*.egg-info
pushd %{buildroot} %exclude %{python3_sitelib}/pyudev/glib.py
if [ -d usr/lib ]; then %exclude %{python3_sitelib}/pyudev/__pycache__/glib.*
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst %exclude %{python3_sitelib}/pyudev/pyside.py
fi %exclude %{python3_sitelib}/pyudev/__pycache__/pyside.*
if [ -d usr/lib64 ]; then %exclude %{python3_sitelib}/pyudev/wx.py
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst %exclude %{python3_sitelib}/pyudev/__pycache__/wx.*
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
pytest -v --ignore=./tests/test_device.py --ignore=./tests/test_core.py --ignore=./tests/test_enumerate.py --ignore=./tests/test_monitor.py -k 'not (test_get_device_type_character_device or test_get_device_type_block_device or test_fake_monitor)'
%files -n python3-pyudev -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog %changelog
* Thu May 09 2024 wangxiaomeng <wangxiaomeng@kylinos.cn> - 0.24.1-2
- Fix changlog version
* Thu Jul 13 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 0.24.1-1
- update to 0.24.1
* Tue Jun 06 2023 renhongxun <renhongxun@h-partners.com> - 0.24.0-2
- enable check
* Thu Nov 03 2022 zhuofeng <zhuofeng2@huawei.com> - 0.24.0-1
- update to 0.24.0
* Mon May 30 2022 OpenStack_SIG <openstack@openeuler.org> - 0.23.2-1
- Init package python3-pyudev of version 0.23.2
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 0.22.0-2 * Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 0.22.0-2
- remove python2 - remove python2

BIN
pyudev-0.22.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.