forked from pool/python-partd
Accepting request 489420 from home:TheBlackCat:branches:devel:languages:python
- Update to version 0.3.7 - Only make hard requirements BuildRequires and Requires. - Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/489420 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-partd?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-partd
|
||||
#
|
||||
# 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
|
||||
@@ -15,33 +15,36 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-partd
|
||||
Version: 0.3.2
|
||||
Version: 0.3.7
|
||||
Release: 0
|
||||
Summary: Appendable key-value storage
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/mrocklin/partd/
|
||||
Source: https://pypi.python.org/packages/source/p/partd/partd-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-locket
|
||||
BuildRequires: python-msgpack-python
|
||||
BuildRequires: python-pandas
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: python-pyzmq
|
||||
BuildRequires: python-toolz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/partd/partd-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module locket}
|
||||
BuildRequires: %{python_module toolz}
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
Requires: python-locket
|
||||
Requires: python-pandas
|
||||
Requires: python-pyzmq
|
||||
Requires: python-toolz
|
||||
Recommends: python-blosc
|
||||
Recommends: python-numpy >= 1.9.0
|
||||
Recommends: python-pandas
|
||||
Recommends: python-pyzmq
|
||||
Recommends: python-msgpack-python
|
||||
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
|
||||
Key-value byte store with appendable values
|
||||
@@ -52,22 +55,26 @@ We append on old values.
|
||||
|
||||
Partd excels at shuffling operations.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n partd-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
pushd partd/tests
|
||||
PYTHONPATH=%{buildroot}%{python_sitelib} py.test
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
py.test-%{$python_bin_suffix}
|
||||
}
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user