From a28d7523efc79f9a66d9167a85c34dfb9682f84ae7427d0de0b06949f5c841a6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:59:13 +0000 Subject: [PATCH 1/3] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-repoze.sphinx.autointerface?expand=0&rev=9 --- python-repoze.sphinx.autointerface.changes | 5 +++++ python-repoze.sphinx.autointerface.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-repoze.sphinx.autointerface.changes b/python-repoze.sphinx.autointerface.changes index 4401704..08848b2 100644 --- a/python-repoze.sphinx.autointerface.changes +++ b/python-repoze.sphinx.autointerface.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:53:39 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Fri Jun 16 20:14:53 UTC 2017 - okurz@suse.com diff --git a/python-repoze.sphinx.autointerface.spec b/python-repoze.sphinx.autointerface.spec index 05b8dcd..2b07dc3 100644 --- a/python-repoze.sphinx.autointerface.spec +++ b/python-repoze.sphinx.autointerface.spec @@ -1,7 +1,7 @@ # # spec file for package python # -# 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,7 +28,6 @@ License: SUSE-Repoze Group: Development/Languages/Python Source: https://pypi.io/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From d89ff8ccfc725d46aee61da7e0be991ca01c0bd1711a6bc734415f51de40d1f5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:20:58 +0000 Subject: [PATCH 2/3] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-repoze.sphinx.autointerface?expand=0&rev=10 --- python-repoze.sphinx.autointerface.spec | 33 +++++++++++-------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/python-repoze.sphinx.autointerface.spec b/python-repoze.sphinx.autointerface.spec index 2b07dc3..4769d12 100644 --- a/python-repoze.sphinx.autointerface.spec +++ b/python-repoze.sphinx.autointerface.spec @@ -18,27 +18,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname repoze.sphinx.autointerface - -Name: python-%{modname} -Version: 0.8 -Release: 0 -Url: http://www.repoze.org -Summary: Sphinx extension: auto-generates API docs from Zope interfaces -License: SUSE-Repoze -Group: Development/Languages/Python -Source: https://pypi.io/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{python_module setuptools} -BuildRequires: fdupes -BuildRequires: python-rpm-macros -Requires: python-Sphinx -Requires: python-zope.interface %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif - +Name: python-%{modname} +Version: 0.8 +Release: 0 +Summary: Sphinx extension: auto-generates API docs from Zope interfaces +License: SUSE-Repoze +Group: Development/Languages/Python +URL: http://www.repoze.org +Source: https://files.pythonhosted.org/packages/source/r/repoze.sphinx.autointerface/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Sphinx +Requires: python-zope.interface %python_subpackages %description @@ -57,8 +54,8 @@ zope.interface instances in code. %fdupes %{buildroot}%{_prefix} %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst +%license LICENSE.txt +%doc CHANGES.rst COPYRIGHT.txt README.rst %{python_sitelib}/* %changelog From b85ad607205f13a5974398fd4a317180c164c3cf410d93d9cb5f942af9bc02ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 7 Dec 2018 10:15:39 +0000 Subject: [PATCH 3/3] - Fix fdupes call - Remove useless code for SLE11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-repoze.sphinx.autointerface?expand=0&rev=11 --- python-repoze.sphinx.autointerface.changes | 6 ++++++ python-repoze.sphinx.autointerface.spec | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/python-repoze.sphinx.autointerface.changes b/python-repoze.sphinx.autointerface.changes index 08848b2..d026dab 100644 --- a/python-repoze.sphinx.autointerface.changes +++ b/python-repoze.sphinx.autointerface.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 7 10:15:24 UTC 2018 - Tomáš Chvátal + +- Fix fdupes call +- Remove useless code for SLE11 + ------------------------------------------------------------------- Tue Dec 4 12:53:39 UTC 2018 - Matej Cepl diff --git a/python-repoze.sphinx.autointerface.spec b/python-repoze.sphinx.autointerface.spec index 4769d12..fa8d5b4 100644 --- a/python-repoze.sphinx.autointerface.spec +++ b/python-repoze.sphinx.autointerface.spec @@ -18,11 +18,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname repoze.sphinx.autointerface -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif Name: python-%{modname} Version: 0.8 Release: 0 @@ -36,6 +31,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Sphinx Requires: python-zope.interface +BuildArch: noarch %python_subpackages %description @@ -51,7 +47,7 @@ zope.interface instances in code. %install %python_install -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE.txt