From 59b2afc23cf44348734b5fd306948d591fa1018710f788b44659867e84322149 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 17 Jul 2017 05:01:18 +0000 Subject: [PATCH] Accepting request 510512 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/510512 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-chai?expand=0&rev=2 --- chai-0.4.8.tar.gz | 3 --- chai-1.1.2.tar.gz | 3 +++ python-chai.changes | 6 ++++++ python-chai.spec | 28 +++++++++++++++------------- 4 files changed, 24 insertions(+), 16 deletions(-) delete mode 100644 chai-0.4.8.tar.gz create mode 100644 chai-1.1.2.tar.gz diff --git a/chai-0.4.8.tar.gz b/chai-0.4.8.tar.gz deleted file mode 100644 index 825b2dc..0000000 --- a/chai-0.4.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:650ff220808c1a64267f55db07e5edf6781443ca34262167ee37583a9c02f803 -size 74805 diff --git a/chai-1.1.2.tar.gz b/chai-1.1.2.tar.gz new file mode 100644 index 0000000..8246369 --- /dev/null +++ b/chai-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff8d2b6855f660cd23cd5ec79bd10264d39f24f6235773331b48e7fcd637d6cc +size 107807 diff --git a/python-chai.changes b/python-chai.changes index f08e836..1aecd7b 100644 --- a/python-chai.changes +++ b/python-chai.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jul 15 18:37:48 UTC 2017 - aloisio@gmx.com + +- Update to version 1.1.2 +- Converted to singlespec + ------------------------------------------------------------------- Wed Aug 6 08:12:32 UTC 2014 - toddrme2178@gmail.com diff --git a/python-chai.spec b/python-chai.spec index 5d9be34..7b1d652 100644 --- a/python-chai.spec +++ b/python-chai.spec @@ -1,7 +1,7 @@ # # spec file for package python-chai # -# Copyright (c) 2014 SUSE LINUX Products 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,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-chai -Version: 0.4.8 +Version: 1.1.2 Release: 0 Summary: Easy to use mocking/stub framework License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/agoragames/chai -Source: https://pypi.python.org/packages/source/c/chai/chai-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-nose +Source: https://files.pythonhosted.org/packages/source/c/chai/chai-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: fdupes +BuildRequires: python-rpm-macros 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 Chai provides a very easy to use api for mocking/stubbing your python @@ -39,17 +39,19 @@ objects, patterned after the Mocha library for Ruby. %prep %setup -q -n chai-%{version} +rm -rf chai.egg-info %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -nosetests +%python_exec %{_bindir}/nosetests -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE.txt README.rst %{python_sitelib}/*