diff --git a/python-pamqp.spec b/python-pamqp.spec index 8509abf..42721a8 100644 --- a/python-pamqp.spec +++ b/python-pamqp.spec @@ -1,7 +1,7 @@ # # spec file for package python-pamqp # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-pamqp @@ -23,15 +24,13 @@ Release: 0 Summary: A pure-python AMQP 0-9-1 frame encoder and decoder License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/gmr/pamqp +URL: https://github.com/gmr/pamqp Source: https://files.pythonhosted.org/packages/source/p/pamqp/pamqp-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -56,9 +55,8 @@ encoding should be run through the pamqp.frame module. %python_expand %fdupes %{buildroot}%{$python_sitelib}/pamqp* %files %{python_files} -%defattr(-,root,root) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog -