15
0
forked from pool/python-BTrees

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

OBS-URL: https://build.opensuse.org/request/show/506562
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=7
This commit is contained in:
2017-06-29 08:42:37 +00:00
committed by Git OBS Bridge
parent ca37163b29
commit cd388fbd54
4 changed files with 109 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-BTrees
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -17,30 +17,30 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-BTrees
Version: 4.1.2
Version: 4.4.1
Release: 0
Summary: Scalable persistent object containers
License: ZPL-2.1
Group: Development/Libraries/Python
Url: http://www.zope.org/Products/ZODB
Source: https://pypi.python.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-persistent-devel
BuildRequires: python-setuptools
BuildRequires: python-zope.interface
Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module persistent-devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zope.interface}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Documentation requirements:
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module repoze.sphinx.autointerface}
# Testing requirements:
BuildRequires: %{python_module transaction}
Requires: python-persistent
Requires: python-zope.interface
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: python-repoze.sphinx.autointerface
# Testing requirements:
BuildRequires: python-transaction
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 contains a generic BTrees implementation for Python. It is
@@ -52,47 +52,51 @@ express in the interface. This could probably use more work. The semantics are
presented in detail through examples of a sample data manager in
BTrees.tests.test_SampleDataManager.
%package devel
%package devel
Summary: Scalable persistent object containers
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description devel
%description devel
This package contains the files needed for binding the %{name} C module.
%package doc
%package doc
Summary: Scalable persistent object containers
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description doc
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n BTrees-%{version}
rm -rf BTrees.egg-info
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_build
%{_python_use_flavor python3}
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm %{buildroot}%python_sitearch/BTrees/*.c
%python_install
%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c
%fdupes -s %{buildroot}%{$python_sitearch}
}
%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 PKG-INFO README.rst
%exclude %python_sitearch/BTrees/*.h
%exclude %{python_sitearch}/BTrees/*.h
%{python_sitearch}/*
%files devel
%files %{python_files devel}
%defattr(-,root,root,-)
%python_sitearch/BTrees/*.h
%{python_sitearch}/BTrees/*.h
%files doc
%files %{python_files doc}
%defattr(-,root,root,-)
%doc build/sphinx/html/