Accepting request 508893 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/508893
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.hookable?expand=0&rev=5
This commit is contained in:
Hans-Peter Jansen 2017-07-08 09:12:30 +00:00 committed by Git OBS Bridge
parent 7b755cb759
commit 3745563e1f
2 changed files with 35 additions and 25 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jul 8 07:02:54 UTC 2017 - aloisio@gmx.com
- Converted to single-spec
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 15 12:00:44 UTC 2015 - benoit.monin@gmx.fr Fri May 15 12:00:44 UTC 2015 - benoit.monin@gmx.fr

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-zope.hookable # spec file for package python-zope.hookable
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 LISA GmbH, Bingen, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -17,24 +17,26 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zope.hookable Name: python-zope.hookable
Version: 4.0.4 Version: 4.0.4
Release: 0 Release: 0
Url: http://www.python.org/pypi/zope.hookable
Summary: Zope hookable Summary: Zope hookable
License: ZPL-2.1 License: ZPL-2.1
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/z/zope.hookable/zope.hookable-%{version}.tar.gz Url: http://www.python.org/pypi/zope.hookable
BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: https://files.pythonhosted.org/packages/source/z/zope.hookable/zope.hookable-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
# Documentation requirements: BuildRequires: fdupes
BuildRequires: python-Sphinx BuildRequires: python-rpm-macros
# Testing requirements: # SECTION documentation requirements
BuildRequires: python-zope.testing BuildRequires: %{python_module Sphinx}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 # /SECTION
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # SECTION testing requirements
%endif BuildRequires: %{python_module zope.testing}
# /SECTION
%python_subpackages
%description %description
Hookable object support. Hookable object support.
@ -47,35 +49,38 @@ hookable. Later, someone can modify what it does by calling its sethook method
and changing its implementation. All users of the function, including those and changing its implementation. All users of the function, including those
that imported it, will see the change. that imported it, will see the change.
%package doc %package -n %{name}-doc
Summary: Zope hookable Summary: Zope hookable
Group: Development/Languages/Python Group: Development/Languages/Python
Provides: %{python_module zope.hookable-doc = %{version}}
Requires: %{name} = %{version} Requires: %{name} = %{version}
%description doc %description -n %{name}-doc
This package contains documentation files for %{name}. This package contains documentation files for %{name}.
%prep %prep
%setup -q -n zope.hookable-%{version} %setup -q -n zope.hookable-%{version}
rm -rf zope.hookable.egg-info
%build %build
python setup.py build %python_build
PYTHONPATH=$(echo $(pwd)/build/lib.*) python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
rm -f %{buildroot}%python_sitearch/zope/hookable/_zope_hookable.c %{python_expand rm -f %{buildroot}%{$python_sitearch}/zope/hookable/_zope_hookable.c
%fdupes -s %{buildroot}%{$python_sitearch}
}
%check %check
python setup.py test %python_exec setup.py test
%files %files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%python_sitearch/* %{python_sitearch}/*
%files doc %files -n %{name}-doc
%defattr(-,root,root,-) %defattr(-,root,root)
%doc build/sphinx/html/ %doc build/sphinx/html/
%changelog %changelog