Accepting request 518142 from home:tbechtold:branches:devel:languages:python

- convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/518142
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zake?expand=0&rev=13
This commit is contained in:
2017-08-23 05:20:54 +00:00
committed by Git OBS Bridge
parent 3c03f7c979
commit e5dd8dca7b
2 changed files with 22 additions and 16 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 22 14:38:02 UTC 2017 - tbechtold@suse.com
- convert to singlespec
-------------------------------------------------------------------
Tue Nov 15 10:10:15 UTC 2016 - dmueller@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-zake
#
# Copyright (c) 2016 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,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zake
Version: 0.2.2
Release: 0
@@ -23,21 +24,20 @@ Summary: Testing utilities for the kazoo library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/yahoo/Zake
Source: https://pypi.io/packages/source/z/zake/zake-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-kazoo
BuildRequires: python-nose
BuildRequires: python-setuptools
BuildRequires: python-six
BuildRequires: python-testtools
Source: https://files.pythonhosted.org/packages/source/z/zake/zake-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module kazoo}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module testtools}
BuildRequires: python-rpm-macros
Requires: python-kazoo
Requires: python-six
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
A python package that works to provide a nice set of testing utilities for the kazoo library.
@@ -46,15 +46,16 @@ A python package that works to provide a nice set of testing utilities for the k
%setup -q -n zake-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
nosetests
# disable tests until https://github.com/yahoo/Zake/issues/21 is solved
# %%python_exec %{_bindir}/nosetests
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/*