From f2f215d97b507fa3a20ed267d2a2110f5b3ee77c0377091e99ee67950b803678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 29 Aug 2018 13:39:32 +0000 Subject: [PATCH] Speclcean ... OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pamqp?expand=0&rev=2 --- python-pamqp.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 -