From 876d4b907c25afde76ac8b24cd8108c30ac40c81bff847d6f7e49ee8b207c822 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 19 Apr 2017 18:46:24 +0000 Subject: [PATCH] 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 --- partd-0.3.2.tar.gz | 3 --- partd-0.3.7.tar.gz | 3 +++ python-partd.changes | 7 +++++++ python-partd.spec | 49 +++++++++++++++++++++++++------------------- 4 files changed, 38 insertions(+), 24 deletions(-) delete mode 100644 partd-0.3.2.tar.gz create mode 100644 partd-0.3.7.tar.gz diff --git a/partd-0.3.2.tar.gz b/partd-0.3.2.tar.gz deleted file mode 100644 index 67d0be4..0000000 --- a/partd-0.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b8a2f313d07548ab5fbca89fae27d63ce81709ee544609b9e515d9c604ca910 -size 17097 diff --git a/partd-0.3.7.tar.gz b/partd-0.3.7.tar.gz new file mode 100644 index 0000000..06991c9 --- /dev/null +++ b/partd-0.3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdc344bca07f3b10645cc380950a00bbfcdbf993f3396715eb0936d14811cd18 +size 17530 diff --git a/python-partd.changes b/python-partd.changes index 132578e..00f937a 100644 --- a/python-partd.changes +++ b/python-partd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 19 18:44:33 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.3.7 +- Only make hard requirements BuildRequires and Requires. +- Implement single-spec version. + ------------------------------------------------------------------- Tue Jul 14 13:44:59 UTC 2015 - toddrme2178@gmail.com diff --git a/python-partd.spec b/python-partd.spec index aabacfa..e146fc7 100644 --- a/python-partd.spec +++ b/python-partd.spec @@ -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}/*