forked from pool/python-repoze.sphinx.autointerface
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-repoze.sphinx.autointerface?expand=0&rev=10
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user