%global srcname pydbus Name: python-%{srcname} Version: 0.6.0 Release: 1%{?dist} Summary: Pythonic DBus library License: LGPLv2+ URL: https://pypi.python.org/pypi/pydbus Source0: https://files.pythonhosted.org/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description \ The pydbus module provides pythonic DBUS bindings.\ It is based on PyGI, the Python GObject Introspection bindings,\ which is the recommended way to use GLib from Python. %description %{_description} %package -n python2-%{srcname} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools Requires: python-gobject-base %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{_description} Python 2 version. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-gobject-base %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/%{modname}-*.egg-info/ %{python2_sitelib}/%{modname}/ %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{modname}-*.egg-info/ %{python3_sitelib}/%{modname}/ %changelog * Wed Feb 15 2017 Martin Kolman - 0.6.0-1 - Initial package