LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-kitchen.spec of Package python-kitchen (Project home:sleep_walker)

# spec file for package python-kitchen
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           python-kitchen
Version:        1.2.4
Release:        0
License:        LGPL-2.1+
Summary:        Kitchen contains a cornucopia of useful code
Url:            https://fedorahosted.org/kitchen
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/source/k/kitchen/kitchen-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:	python-xml
BuildRequires:	python-setuptools
BuildRequires:	python-nose
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()")}
BuildArch:      noarch

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.

%setup -q -n kitchen-%{version}

python setup.py build

python setup.py install --prefix=%{_prefix} --root=%{buildroot}