python-dasbus/python-dasbus.spec
sherlock2010 9b6f9225f1 enable test
(cherry picked from commit 12da322e9e8998107a43e6148c4cb026113740d1)
2023-11-30 14:35:56 +08:00

70 lines
1.6 KiB
RPMSpec

%global srcname dasbus
Name: python-%{srcname}
Version: 1.3
Release: 4
Summary: DBus library in Python 3
License: LGPLv2+
URL: https://pypi.python.org/pypi/dasbus
Source0: https://github.com/rhinstaller/%{srcname}/archive/%{srcname}-%{version}.tar.gz
Patch0001: backport-Raise-TimeoutError-if-a-DBus-call-times-out.patch
BuildArch: noarch
%global _description %{expand:
Dasbus is a DBus library written in Python 3, based on
GLib and inspired by pydbus. It is designed to be easy
to use and extend.}
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-devel python3-setuptools python3-gobject-base python3-pytest dbus-daemon
Requires: python3-gobject-base
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname} %{_description}
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m pytest -v
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/
%changelog
* Tue Nov 28 2023 zhouyihang <zhouyihang3@h-partners.com> - 1.3-4
- Type: requirements
- ID: NA
- SUG: NA
- DESC: add build require dbus-daemon for test
* Mon Nov 27 2023 zhouyihang <zhouyihang3@h-partners.com> - 1.3-3
- Type: requirements
- ID: NA
- SUG: NA
- DESC: enable test
* Fri Oct 21 2022 zhouyihang <zhouyihang3@h-partners.com> - 1.3-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Raise TimeoutError if a DBus call times out
* Tue Jun 23 2020 fengtao <fengtao40@huawei.com> - 1.3-1
- package init