Accepting request 655990 from devel:languages:python

- Fix fdupes call
- Remove useless code for SLE11

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/655990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-repoze.sphinx.autointerface?expand=0&rev=6
This commit is contained in:
2018-12-12 16:28:10 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 15 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Dec 7 10:15:24 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Fix fdupes call
- Remove useless code for SLE11
-------------------------------------------------------------------
Tue Dec 4 12:53:39 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 16 20:14:53 UTC 2017 - okurz@suse.com Fri Jun 16 20:14:53 UTC 2017 - okurz@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,34 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global modname repoze.sphinx.autointerface %global modname repoze.sphinx.autointerface
Name: python-%{modname} Name: python-%{modname}
Version: 0.8 Version: 0.8
Release: 0 Release: 0
Url: http://www.repoze.org
Summary: Sphinx extension: auto-generates API docs from Zope interfaces Summary: Sphinx extension: auto-generates API docs from Zope interfaces
License: SUSE-Repoze License: SUSE-Repoze
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.io/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz URL: http://www.repoze.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: https://files.pythonhosted.org/packages/source/r/repoze.sphinx.autointerface/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-Sphinx Requires: python-Sphinx
Requires: python-zope.interface 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 BuildArch: noarch
%endif
%python_subpackages %python_subpackages
%description %description
@@ -55,11 +47,11 @@ zope.interface instances in code.
%install %install
%python_install %python_install
%fdupes %{buildroot}%{_prefix} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE.txt
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst %doc CHANGES.rst COPYRIGHT.txt README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog