14
0
2018-12-04 17:26:41 +00:00
committed by Git OBS Bridge
parent 35a8080ecb
commit 50be9b9150

View File

@@ -17,27 +17,26 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zope.event
%global modname zope.event %global modname zope.event
%define oldpython python
Name: python-zope.event
Version: 4.2.0 Version: 4.2.0
Release: 0 Release: 0
Summary: Very basic event publishing system Summary: Very basic event publishing system
License: ZPL-2.1 License: ZPL-2.1
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://pypi.python.org/pypi/%{modname} URL: http://pypi.python.org/pypi/%{modname}
Source: https://pypi.io/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/z/zope.event/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# Documentation requirements: # Documentation requirements:
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
BuildArch: noarch BuildArch: noarch
%define oldpython python
%ifpython2 %ifpython2
Provides: %{oldpython}-zope-event = %{version} Provides: %{oldpython}-zope-event = %{version}
Obsoletes: %{oldpython}-zope-event < %{version} Obsoletes: %{oldpython}-zope-event < %{version}
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages %python_subpackages
%description %description
@@ -73,12 +72,11 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_exec setup.py test %python_exec setup.py test
%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}/*
%files -n %{name}-doc %files -n %{name}-doc
%defattr(-,root,root,-)
%doc build/sphinx/html/ %doc build/sphinx/html/
%changelog %changelog