Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
dc75c553a7
!22 Fix changlog version
From: @tjwangxm 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-05-11 02:05:48 +00:00
wangxiaomeng
659debffd5 Fix changlog version 2024-05-09 09:32:58 +08:00
openeuler-ci-bot
a840ae098c
!19 Update package to version 0.24.1
From: @lingjuer 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-07-13 08:13:24 +00:00
lingjuer
f79ee831ce Update to version 0.24.1 2023-07-13 11:39:19 +08:00
openeuler-ci-bot
008ca59380
!12 enable check
From: @renxichen 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
2023-06-07 04:06:21 +00:00
renxichen
9bd4d36799 enable check 2023-06-07 09:13:51 +08:00
openeuler-ci-bot
87517745c6
!11 update to 0.24.0
From: @zhuofeng6 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-11-09 10:16:19 +00:00
zhuofeng
2790edc60b update to 0.24.0 2022-11-07 18:59:27 +08:00
openeuler-ci-bot
90be8e4bb7
!7 Update package pyudev of version 0.23.2
From: @A_L_I_E_Z 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-05-30 11:12:40 +00:00
A_L_I_E_Z
2fec405864 Update package pyudev of version 0.23.2 2022-05-30 03:20:14 +00:00
3 changed files with 92 additions and 35 deletions

View File

@ -1,33 +1,53 @@
%global srcname pyudev %global _empty_manifest_terminate_build 0
Name: python-%{srcname} Name: python-pyudev
Version: 0.22.0 Version: 0.24.1
Release: 2 Release: 2
Summary: A libudev binding Summary: A libudev binding
License: LGPLv2+ License: LGPL 2.1+
URL: http://pypi.python.org/pypi/pyudev URL: http://pyudev.readthedocs.org/
Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/20/b6/16961ac3575575260c72928f17df9c99c2a696871e486965ec6e2fa2aff4/pyudev-0.24.1.tar.gz
BuildArch: noarch BuildArch: noarch
%global _description\ %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.
%description %_description %package -n python3-pyudev
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 -n python3-%{srcname} %package help
Summary: A libudev binding Summary: A libudev binding
BuildRequires: python3-devel python3-setuptools Provides: python3-pyudev-doc
Requires: systemd python3-six %description help
Provides: python3-%{srcname}-qt4 python3-%{srcname}-qt5 This package supports almost all libudev functionality.The lisence
Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5 is LGPL.It is a python 2/3 binding to libudev which is a linux
%description -n python3-%{srcname} %_description library supporting device management.The usage of pyudev is simple
%{?python_provide:%python_provide python3-%{srcname}} and you can use it after a quick learning.
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n pyudev-%{version} -p1
rm -rf pyudev.egg-info
%build %build
%py3_build %py3_build
@ -35,20 +55,57 @@ rm -rf pyudev.egg-info
%install %install
%py3_install %py3_install
%files -n python3-%{srcname} install -d -m755 %{buildroot}/%{_pkgdocdir}
%license COPYING if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
%doc README.rst CHANGES.rst if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
%{python3_sitelib}/pyudev if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
%{python3_sitelib}/pyudev-%{version}-*.egg-info if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%exclude %{python3_sitelib}/pyudev/glib.py pushd %{buildroot}
%exclude %{python3_sitelib}/pyudev/__pycache__/glib.* if [ -d usr/lib ]; then
%exclude %{python3_sitelib}/pyudev/pyside.py find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
%exclude %{python3_sitelib}/pyudev/__pycache__/pyside.* fi
%exclude %{python3_sitelib}/pyudev/wx.py if [ -d usr/lib64 ]; then
%exclude %{python3_sitelib}/pyudev/__pycache__/wx.* find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
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

Binary file not shown.

BIN
pyudev-0.24.1.tar.gz Executable file

Binary file not shown.