15
0

Accepting request 573529 from home:sebix:branches:devel:languages:python

- specfile:
 * fix check section to actually run the tests
 * neutral description

OBS-URL: https://build.opensuse.org/request/show/573529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kitchen?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2018-02-07 07:27:04 +00:00
committed by Git OBS Bridge
parent 0eeabacd86
commit 6bb305ef01
2 changed files with 25 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-kitchen
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -13,6 +13,7 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -20,39 +21,28 @@
Name: python-kitchen
Version: 1.2.5
Release: 0
License: LGPL-2.1+
Summary: Kitchen contains a cornucopia of useful code
Url: https://fedorahosted.org/kitchen
License: LGPL-2.1+
Group: Development/Languages/Python
Url: https://fedorahosted.org/kitchen/
Source: https://files.pythonhosted.org/packages/source/k/kitchen/kitchen-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
# SECTION tests
BuildRequires: %{python_module nose}
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
We've all done it. In the process of writing a brand new application we've
discovered that we need a little bit of code that we've invented before.
Perhaps it's something to handle unicode text. Perhaps it's something to make
a bit of python-2.5 code run on python-2.3. Whatever it is, it ends up being
a tiny bit of code that seems too small to worry about pushing into its own
module so it sits there, a part of your current project, waiting to be cut and
pasted into your next project. And the next. And the next. And since that
little bittybit of code proved so useful to you, it's highly likely that it
proved useful to someone else as well. Useful enough that they've written it
and copy and pasted it over and over into each of their new projects.
Well, no longer! Kitchen aims to pull these small snippets of code into a few
python modules which you can import and use within your project. No more copy
and paste! Now you can let someone else maintain and release these small
snippets so that you can get on with your life.
A bunch of useful python functions to be used in other projects.
%prep
%setup -q -n kitchen-%{version}
sed -i '1s/^#!.*//' kitchen2/kitchen/pycompat24/base64/_base64.py
%build
%python_build
@@ -60,10 +50,16 @@ snippets so that you can get on with your life.
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%{python_expand # run test
%if $python == python2
pushd kitchen2
%else
pushd kitchen3
%endif
nosetests-%{$python_version}
popd}
%files %{python_files}
%defattr(-,root,root,-)