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