forked from pool/python-zope.exceptions
Accepting request 507291 from home:alois:branches:devel:languages:python
I actually need that %_python_use_flavor or %python_exec will rename the build directory. OBS-URL: https://build.opensuse.org/request/show/507291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
b4ea8dfb81
commit
2d9c8a2301
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.exceptions
|
||||
#
|
||||
# Copyright (c) 2015 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,68 +16,41 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.exceptions
|
||||
Version: 4.0.7
|
||||
Version: 4.1.0
|
||||
Release: 0
|
||||
Summary: Zope Exceptions
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
||||
Source: http://pypi.python.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-repoze.sphinx.autointerface
|
||||
# Test result in a dependency loop
|
||||
# Test requirements:
|
||||
# BuildRequires: python-six
|
||||
# BuildRequires: python-zope.interface
|
||||
# BuildRequires: python-zope.testrunner
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-zope.interface
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%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
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This package contains exception interfaces and implementations which are so
|
||||
general purpose that they don't belong in Zope application-specific packages.
|
||||
|
||||
%package doc
|
||||
Summary: Zope Exceptions
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.exceptions-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
PYTHONPATH=$(pwd)/build/lib python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
# Test result in a dependency loop
|
||||
#NOTE(saschpe): Tests are self-referential, i.e. move to sperarate spec file
|
||||
#NOTE(frispete): run tests against source in order to avoid the need for an
|
||||
# external test package
|
||||
# %check
|
||||
# PYTHONPATH=$(pwd)/src python setup.py -q test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user