diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ede640 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dbus-client-gen-0.2.tar.gz diff --git a/python-dbus-client-gen.spec b/python-dbus-client-gen.spec new file mode 100644 index 0000000..cc09be0 --- /dev/null +++ b/python-dbus-client-gen.spec @@ -0,0 +1,54 @@ +%global srcname dbus-client-gen + +Name: python-%{srcname} +Version: 0.2 +Release: 1%{?dist} +Summary: Library for Generating D-Bus Client Code + +License: MPLv2.0 +URL: https://github.com/stratis-storage/dbus-client-gen +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +This library contains a few methods that consume an XML specification\ +of a D-Bus interface and return classes or functions that may be useful\ +in constructing a python D-Bus client. The XML specification has the format\ +of the data returned by the Introspect() method\ +of the Introspectable interface. + +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v tests + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/dbus_client_gen/ +%{python3_sitelib}/dbus_client_gen-*.egg-info/ + +%changelog +* Mon Jan 08 2018 Igor Gnatenko - 0.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..5b472ca --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dbus-client-gen-0.2.tar.gz) = 46b37c73420de6a7648c40364dc6109d99a23a94b96131dbd3ae40f051eb387a1fe6fa583421c5d46090cddee29ea26330e3d1ff902c2cc8358bab65f205f91c