forked from pool/python-sortedcontainers
Accepting request 510501 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/510501 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
40f96a0263
commit
f080965db1
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sortedcontainers
|
||||
#
|
||||
# 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,22 +16,24 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sortedcontainers
|
||||
Version: 1.5.3
|
||||
Version: 1.5.7
|
||||
Release: 0
|
||||
Summary: Sorted container data types
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://pypi.python.org/pypi/sortedcontainers/
|
||||
Url: http://www.grantjenks.com/docs/sortedcontainers
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sortedcontainers/sortedcontainers-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
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
|
||||
SortedContainers is an Apache2 licensed containers library, written in
|
||||
@@ -48,18 +50,41 @@ deployment and use of Python easy. There's no need to install a C compiler or
|
||||
pre-build and distribute custom extensions. Performance is a feature and testing
|
||||
has 100% coverage with unit tests and hours of stress.
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/HTML
|
||||
Provides: %{python_module zope.schema-doc = %{version}}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description -n %{name}-doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n sortedcontainers-%{version}
|
||||
rm -rf sortedcontainers.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
# We need to install docs by hand to be able to run fdupes on it
|
||||
mkdir -pv %{buildroot}%{_datadir}/doc/packages/%{name}-doc
|
||||
cp -r build/sphinx/html %{buildroot}%{_datadir}/doc/packages/%{name}-doc
|
||||
%fdupes -s %{buildroot}%{_datadir}/doc/packages/%{name}-doc
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%check
|
||||
%python_exec %{_bindir}/nosetests -v
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc %{_datadir}/doc/packages/%{name}-doc
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user