From 2b4474e67608d9de2502e2c1684971e1c58c22288f18602c8a3d4c2df10f357e Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 31 Aug 2017 07:09:07 +0000 Subject: [PATCH] Accepting request 519856 from devel:languages:python:singlespec-staging 1 OBS-URL: https://build.opensuse.org/request/show/519856 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Trolly?expand=0&rev=8 --- Trolly-0.2.1.zip | 3 --- Trolly-0.2.2.zip | 3 +++ python-Trolly.changes | 12 +++++++++++ python-Trolly.spec | 47 +++++++++++++++++++++++-------------------- 4 files changed, 40 insertions(+), 25 deletions(-) delete mode 100644 Trolly-0.2.1.zip create mode 100644 Trolly-0.2.2.zip diff --git a/Trolly-0.2.1.zip b/Trolly-0.2.1.zip deleted file mode 100644 index 40183f4..0000000 --- a/Trolly-0.2.1.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:18596fa34b0efdda75fcb928d224803fd560c14847ceba34c86b10a9b4feeccc -size 12818 diff --git a/Trolly-0.2.2.zip b/Trolly-0.2.2.zip new file mode 100644 index 0000000..003fbad --- /dev/null +++ b/Trolly-0.2.2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67c5a5644a98b56c52fcdc8c23d473a6c5f6b6f54cab29950e627a2b81aa0ca3 +size 14171 diff --git a/python-Trolly.changes b/python-Trolly.changes index 90d3ee5..ae495e2 100644 --- a/python-Trolly.changes +++ b/python-Trolly.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Aug 31 07:07:44 UTC 2017 - toddrme2178@gmail.com + +- update to version 0.2.2 + * No upstream changelog + +------------------------------------------------------------------- +Thu Aug 24 13:56:23 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Thu May 14 11:24:57 UTC 2015 - benoit.monin@gmx.fr @@ -23,3 +34,4 @@ Wed Apr 10 08:40:39 UTC 2013 - speilicke@suse.com - Initial version + diff --git a/python-Trolly.spec b/python-Trolly.spec index 7ac4365..feaeaf4 100644 --- a/python-Trolly.spec +++ b/python-Trolly.spec @@ -1,7 +1,7 @@ # # spec file for package python-Trolly # -# 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,47 +16,50 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-Trolly -Version: 0.2.1 +Version: 0.2.2 Release: 0 Summary: Trello api License: MIT Group: Development/Languages/Python Url: https://github.com/plish/Trolly -Source: http://pypi.python.org/packages/source/T/Trolly/Trolly-%{version}.zip -BuildRequires: python-devel +Source: https://files.pythonhosted.org/packages/source/T/Trolly/Trolly-%{version}.zip +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros BuildRequires: unzip -## Test requirements: -#BuildRequires: python-nose -#BuildRequires: python-httplib2 -Requires: python-httplib2 -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 +%if %{with test} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module httplib2} %endif +Requires: python-httplib2 +BuildArch: noarch + +%python_subpackages %description -A Python wrapper around the Trello API. Provides a group of Python classes to represent Trello Objects. None of the -classes cache values as they are designed to be inherited and extended to suit the needs of each user. Each class -includes a basic set of methods based on general use cases. This library was based on work done by -[sarumont](https://github.com/sarumont/py-trello). Very little was kept from this code, but still props on the initial +A Python wrapper around the Trello API. Provides a group of Python classes to represent Trello Objects. None of the +classes cache values as they are designed to be inherited and extended to suit the needs of each user. Each class +includes a basic set of methods based on general use cases. This library was based on work done by +[sarumont](https://github.com/sarumont/py-trello). Very little was kept from this code, but still props on the initial work. %prep %setup -q -n Trolly-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -#%%check -#nosetests +%if %{with test} +%check +%python_expand nosetests-%{$python_bin_suffix} +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/*