forked from pool/python-zope.event
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.event?expand=0&rev=14
This commit is contained in:
@@ -17,27 +17,26 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.event
|
||||
%global modname zope.event
|
||||
%define oldpython python
|
||||
Name: python-zope.event
|
||||
Version: 4.2.0
|
||||
Release: 0
|
||||
Summary: Very basic event publishing system
|
||||
License: ZPL-2.1
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pypi.python.org/pypi/%{modname}
|
||||
Source: https://pypi.io/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
||||
URL: http://pypi.python.org/pypi/%{modname}
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.event/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# Documentation requirements:
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildArch: noarch
|
||||
%define oldpython python
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-zope-event = %{version}
|
||||
Obsoletes: %{oldpython}-zope-event < %{version}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -73,12 +72,11 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_exec setup.py test
|
||||
|
||||
%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}/*
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user