forked from pool/python-zope.interface
Accepting request 504841 from home:okurz:matrix-synapse
Fullly delete doc generation for now to break dependency cycles OBS-URL: https://build.opensuse.org/request/show/504841 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.interface?expand=0&rev=29
This commit is contained in:
committed by
Git OBS Bridge
parent
b7432fcf14
commit
2d206b39df
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.interface
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX 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,35 +16,41 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
|
||||
Name: python-zope.interface
|
||||
Version: 4.3.1
|
||||
%global modname zope.interface
|
||||
Version: 4.4.2
|
||||
Release: 0
|
||||
Url: http://pypi.python.org/pypi/zope.interface
|
||||
Url: http://pypi.python.org/pypi/%{modname}
|
||||
Summary: Interfaces for Python
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
|
||||
Source: https://pypi.io/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
#!BuildIgnore: python-zope.interface
|
||||
BuildRequires: python-repoze.sphinx.autointerface
|
||||
# Testing requirements:
|
||||
BuildRequires: python-coverage
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-zope.event
|
||||
Provides: python-zopeinterface = %{version}
|
||||
Obsoletes: python-zopeinterface < %{version}
|
||||
Provides: python-zope-interface = %{version}
|
||||
Obsoletes: python-zope-interface < %{version}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module zope.event}
|
||||
BuildRequires: python-rpm-macros
|
||||
|
||||
%define oldpython python
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-zopeinterface = %{version}
|
||||
Obsoletes: %{oldpython}-zopeinterface < %{version}
|
||||
Provides: %{oldpython}-zope-interface = %{version}
|
||||
Obsoletes: %{oldpython}-zope-interface < %{version}
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This package is intended to be independently reusable in any Python
|
||||
project. It is maintained by the Zope Toolkit project.
|
||||
@@ -54,37 +60,23 @@ Interfaces are a mechanism for labeling objects as conforming to a given
|
||||
API or contract. So, this package can be considered as implementation of
|
||||
the Design By Contract methodology support in Python.
|
||||
|
||||
%package doc
|
||||
Summary: Interfaces for Python
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.interface-%{version}
|
||||
%setup -q -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
PYTHONPATH=$(echo $(pwd)/build/lib.*) python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
# Remove duplicate files
|
||||
%fdupes -s %{buildroot}
|
||||
rm %{buildroot}%python_sitearch/zope/interface/_zope_interface_coptimizations.c
|
||||
%python_install
|
||||
%python_expand rm %{buildroot}%{$python_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec setup.py test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYRIGHT.txt CHANGES.rst LICENSE.txt README.rst
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user