forked from pool/python-kitchen
initial package for python-kitchen OBS-URL: https://build.opensuse.org/request/show/530863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kitchen?expand=0&rev=1
74 lines
2.7 KiB
RPMSpec
74 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-kitchen
|
|
#
|
|
# 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
|
|
# 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/
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_without test
|
|
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
|
|
Group: Development/Languages/Python
|
|
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}
|
|
BuildRequires: fdupes
|
|
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.
|
|
|
|
|
|
%prep
|
|
%setup -q -n kitchen-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%if %{with test}
|
|
%check
|
|
%python_exec setup.py test
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING COPYING.LESSER NEWS.rst README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|