diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05d2d16 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/into-dbus-python-0.06.tar.gz diff --git a/python-into-dbus-python.spec b/python-into-dbus-python.spec new file mode 100644 index 0000000..a46d058 --- /dev/null +++ b/python-into-dbus-python.spec @@ -0,0 +1,58 @@ +%global srcname into-dbus-python + +Name: python-%{srcname} +Version: 0.06 +Release: 1%{?dist} +Summary: Transformer to dbus-python types + +License: ASL 2.0 +URL: https://github.com/stratis-storage/into-dbus-python +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +Facilities for converting an object that inhabits core Python types, e.g.,\ +lists, ints, dicts, to an object that inhabits dbus-python types, e.g.,\ +dbus.Array, dbus.UInt32, dbus.Dictionary based on a specified dbus signature. + +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-dbus-signature-pyparsing +BuildRequires: python3-dbus +BuildRequires: python3-hypothesis +BuildRequires: python3-hs-dbus-signature +Requires: python3-dbus-signature-pyparsing +Requires: python3-dbus + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/into_dbus_python/ +%{python3_sitelib}/into_dbus_python-*.egg-info/ + +%changelog +* Mon Jan 08 2018 Ilya Gradina - 0.06-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..04e9844 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (into-dbus-python-0.06.tar.gz) = 1ed28b5fbc9914f90731a7d37a683d1dd48da6464b7058fde64a15173df5aceb883b3524bbb42025be7162cef2a75c8e4a273de020955a9726299e8d84e933bd