Accepting request 504513 from home:okurz:matrix-synapse

Initial submission (alternative to sr#504292 to d:l:p:singlespec)

OBS-URL: https://build.opensuse.org/request/show/504513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-repoze.sphinx.autointerface?expand=0&rev=7
This commit is contained in:
Jan Matejek
2017-06-19 11:43:30 +00:00
committed by Git OBS Bridge
parent 4ea484076d
commit 9444b2203b
4 changed files with 35 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-repoze.sphinx.autointerface
# spec file for package python
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -16,17 +16,22 @@
#
Name: python-repoze.sphinx.autointerface
Version: 0.7.1
%{?!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: http://pypi.python.org/packages/source/r/repoze.sphinx.autointerface/repoze.sphinx.autointerface-%{version}.tar.gz
Source: https://pypi.io/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module devel}
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
@@ -35,23 +40,26 @@ Requires: python-zope.interface
BuildArch: noarch
%endif
%python_subpackages
%description
Thie package defines an extension for the Sphinx documentation system. The
extension allows generation of API documentation by introspection of
zope.interface instances in code.
%prep
%setup -q -n repoze.sphinx.autointerface-%{version}
%setup -q -n %{modname}-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%fdupes %{buildroot}%{_prefix}
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%{python_sitelib}/*
%changelog