forked from pool/python-zope.deprecation
Accepting request 508918 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/508918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.deprecation?expand=0&rev=10
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.deprecation
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,23 +17,23 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.deprecation
|
||||
Version: 4.1.2
|
||||
Version: 4.2.0
|
||||
Release: 0
|
||||
Url: http://pypi.python.org/pypi/zope.deprecation
|
||||
Summary: Zope Deprecation Infrastructure
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-setuptools
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
%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
|
||||
Url: https://pypi.python.org/pypi/zope.deprecation
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
When we started working on Zope 3.1, we noticed that the hardest part of the
|
||||
@@ -42,33 +42,36 @@ deprecated modules, classes, functions, methods and properties. This package
|
||||
provides a simple function called 'deprecated(names, reason)' to deprecate the
|
||||
previously mentioned Python objects.
|
||||
|
||||
%package doc
|
||||
%package -n %{name}-doc
|
||||
Summary: Zope 3 Deprecation Infrastructure
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{python_module zope.deprecation-doc = %{version}}
|
||||
|
||||
%description doc
|
||||
%description -n %{name}-doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.deprecation-%{version}
|
||||
rm -rf zope.deprecation.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec setup.py -q test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||
%python_sitelib/*
|
||||
|
||||
%files doc
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user