2020-06-24 10:12:00 +08:00
|
|
|
%global srcname dasbus
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 1.3
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: DBus library in Python 3
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://pypi.python.org/pypi/dasbus
|
2020-06-29 15:17:34 +08:00
|
|
|
Source0: https://github.com/rhinstaller/%{srcname}/archive/%{srcname}-%{version}.tar.gz
|
2020-06-24 10:12:00 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jun 23 2020 fengtao <fengtao40@huawei.com> - 1.3-1
|
|
|
|
|
- package init
|