15
0
forked from pool/python-chai

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
This commit is contained in:
2017-07-17 05:01:18 +00:00
committed by Git OBS Bridge
parent da4c88cb4d
commit 59b2afc23c
4 changed files with 24 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:650ff220808c1a64267f55db07e5edf6781443ca34262167ee37583a9c02f803
size 74805

BIN
chai-1.1.2.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -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

View File

@@ -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}/*