Blame python-pydbus.spec

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