python-pyudev/python-pyudev.spec

79 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:26 -04:00
%global srcname pyudev
Name: python-%{srcname}
2022-11-03 14:39:12 +08:00
Version: 0.24.0
2023-06-07 14:46:34 +08:00
Release: 2
2019-09-30 11:15:26 -04:00
Summary: A libudev binding
License: LGPLv2+
URL: http://pypi.python.org/pypi/pyudev
Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
2023-06-07 14:46:34 +08:00
Patch6000: backport-Drop-a-flaky-test.patch
2019-09-30 11:15:26 -04:00
%global _description\
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.
%description %_description
%package -n python3-%{srcname}
Summary: A libudev binding
BuildRequires: python3-devel python3-setuptools
2023-06-07 14:46:34 +08:00
# Test requires
BuildRequires: python3-hypothesis python3-pytest python3-pyudev
2019-09-30 11:15:26 -04:00
Requires: systemd python3-six
Provides: python3-%{srcname}-qt4 python3-%{srcname}-qt5
Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5
%description -n python3-%{srcname} %_description
%{?python_provide:%python_provide python3-%{srcname}}
%prep
2023-06-07 14:46:34 +08:00
%autosetup -n %{srcname}-%{version} -p1
2019-09-30 11:15:26 -04:00
rm -rf pyudev.egg-info
%build
%py3_build
%install
%py3_install
2023-06-07 14:46:34 +08:00
%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)'
2019-09-30 11:15:26 -04:00
%files -n python3-%{srcname}
%license COPYING
%doc README.rst CHANGES.rst
%{python3_sitelib}/pyudev
%{python3_sitelib}/pyudev-%{version}-*.egg-info
%exclude %{python3_sitelib}/pyudev/glib.py
%exclude %{python3_sitelib}/pyudev/__pycache__/glib.*
%exclude %{python3_sitelib}/pyudev/pyside.py
%exclude %{python3_sitelib}/pyudev/__pycache__/pyside.*
%exclude %{python3_sitelib}/pyudev/wx.py
%exclude %{python3_sitelib}/pyudev/__pycache__/wx.*
%changelog
2023-06-07 14:46:34 +08:00
* Wed Jun 07 2023 renhongxun <renhongxun@h-partners.com> - 0.24.0-2
- enable check
2022-11-03 14:39:12 +08:00
* Thu Nov 03 2022 zhuofeng <zhuofeng2@huawei.com> - 0.24.0-1
- update to 0.21.0
* Thu Oct 27 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.22.0-3
- Rebuild for next release
2020-10-30 14:49:15 +08:00
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 0.22.0-2
- remove python2
2020-07-24 21:01:51 +08:00
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.22.0-1
- update to release 0.22.0
2019-09-30 11:15:26 -04:00
* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.21.0-10
- modify requires
* Sat Sep 21 2019 yangfeiyu <yangfeiyu2@huawei.com> - 0.21.0-9
- spec init