|
|
e3b4d5 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
Name: python-kitchen
|
|
|
e3b4d5 |
Version: 1.1.1
|
|
|
1325c9 |
Release: 5%{?dist}
|
|
|
e3b4d5 |
Summary: Small, useful pieces of code to make python coding easier
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
Group: Development/Languages
|
|
|
e3b4d5 |
License: LGPLv2+
|
|
|
e3b4d5 |
URL: https://pypi.python.org/pypi/kitchen/
|
|
|
e3b4d5 |
Source0: https://fedorahosted.org/releases/k/i/kitchen/kitchen-%{version}.tar.gz
|
|
|
e3b4d5 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
BuildArch: noarch
|
|
|
e3b4d5 |
BuildRequires: python2-devel
|
|
|
e3b4d5 |
BuildRequires: python-nose
|
|
|
e3b4d5 |
# For the subprocess test
|
|
|
e3b4d5 |
BuildRequires: python-test
|
|
|
e3b4d5 |
%if 0%{?fedora} || 0%{?rhel} >= 6
|
|
|
e3b4d5 |
# sphinx needs to be more recent to build the html docs
|
|
|
e3b4d5 |
BuildRequires: python-sphinx
|
|
|
e3b4d5 |
%endif
|
|
|
e3b4d5 |
%if 0%{?fedora} || 0%{?rhel} > 6
|
|
|
e3b4d5 |
# At present, chardet isn't present in epel but it's a soft dep
|
|
|
e3b4d5 |
BuildRequires: python-chardet
|
|
|
e3b4d5 |
Requires: python-chardet
|
|
|
e3b4d5 |
%endif
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%description
|
|
|
e3b4d5 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
e3b4d5 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
e3b4d5 |
columns a string takes), and compatibility modules for writing code that uses
|
|
|
e3b4d5 |
python-2.7 modules but needs to run on python-2.3
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%package doc
|
|
|
e3b4d5 |
Summary: API documentation for the Kitchen python module
|
|
|
e3b4d5 |
# Currently discussing guidelines about doc subpackages Requiring the main package:
|
|
|
e3b4d5 |
# https://lists.fedoraproject.org/pipermail/packaging/2013-June/009191.html
|
|
|
e3b4d5 |
#Requires: %{name} = %{version}-%{release}
|
|
|
e3b4d5 |
%description doc
|
|
|
e3b4d5 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
e3b4d5 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
e3b4d5 |
columns a string takes), and compatibility modules for writing code that uses
|
|
|
e3b4d5 |
python-2.7 modules but needs to run on python-2.3
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
This package contains the API documenation for programming with the
|
|
|
e3b4d5 |
kitchen library.
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%prep
|
|
|
e3b4d5 |
%setup -q -n kitchen-%{version}
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%build
|
|
|
e3b4d5 |
%{__python} setup.py build
|
|
|
e3b4d5 |
# Build docs
|
|
|
e3b4d5 |
%if 0%{?fedora} || 0%{?rhel} >= 6
|
|
|
e3b4d5 |
%{__python} setup.py build_sphinx
|
|
|
e3b4d5 |
cp -pr build/sphinx/html .
|
|
|
e3b4d5 |
rm -rf html/.buildinfo
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%endif
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%install
|
|
|
e3b4d5 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e3b4d5 |
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%check
|
|
|
e3b4d5 |
# In current mock, the PATH isn't being reset. This causes failures in some
|
|
|
e3b4d5 |
# subprocess tests as a check tests /root/bin/PROGRAM and fails with Permission
|
|
|
e3b4d5 |
# Denied instead of File Not Found. reseting the PATH works around this.
|
|
|
e3b4d5 |
PATH=/bin:/usr/bin
|
|
|
e3b4d5 |
nosetests
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%clean
|
|
|
e3b4d5 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%files
|
|
|
e3b4d5 |
%defattr(-,root,root,-)
|
|
|
e3b4d5 |
%doc COPYING README NEWS COPYING.LESSER
|
|
|
e3b4d5 |
%if 0%{?fedora} || 0%{?rhel} >= 6
|
|
|
e3b4d5 |
%doc html
|
|
|
e3b4d5 |
%endif
|
|
|
e3b4d5 |
%{python_sitelib}/*
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%files doc
|
|
|
e3b4d5 |
%doc COPYING COPYING.LESSER docs/*
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
%changelog
|
|
|
1325c9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.1-5
|
|
|
1325c9 |
- Mass rebuild 2013-12-27
|
|
|
1325c9 |
|
|
|
e3b4d5 |
* Tue Jun 25 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-4
|
|
|
e3b4d5 |
- Move the api documentation into its own subpackage
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
|
|
|
e3b4d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
|
|
e3b4d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Tue Feb 14 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-1
|
|
|
e3b4d5 |
- Bugfix for using easy_gettext_setup or get_translation_object with the
|
|
|
e3b4d5 |
default localedirs
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jan 12 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.0-1
|
|
|
e3b4d5 |
- Update to 1.1.0 final
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Apr 14 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-1
|
|
|
e3b4d5 |
- Upstream update to 1.0 final
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Sun Feb 20 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.4-1
|
|
|
e3b4d5 |
- Upstream update 0.2.4
|
|
|
e3b4d5 |
- Changes i18n.easy_gettext_setup() to return lgettext functions when
|
|
|
e3b4d5 |
byte strings are requested.
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
|
|
|
e3b4d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Wed Jan 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.3-2
|
|
|
e3b4d5 |
- Upstream respin of the tarball
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Wed Jan 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.3-1
|
|
|
e3b4d5 |
- Upstream update to 0.2.3
|
|
|
e3b4d5 |
- Fixes https://bugzilla.redhat.com/show_bug.cgi?id=667433
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Mon Jan 3 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.2-1
|
|
|
e3b4d5 |
- Upstream update 0.2.2
|
|
|
e3b4d5 |
- Adds exception to message functions
|
|
|
e3b4d5 |
- Build html docs
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Sep 2 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.1-0.1.a1
|
|
|
e3b4d5 |
- Update to upstream 0.2.1a1 release.
|
|
|
e3b4d5 |
- Fixes build on python-2.7, adds iterutils module, optimizes some functions,
|
|
|
e3b4d5 |
increases documentation
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.2-0.1.a2
|
|
|
e3b4d5 |
- propoerlly version accrding to pre-release guidelines
|
|
|
e3b4d5 |
- run tests
|
|
|
e3b4d5 |
- update to 0.2a2
|
|
|
e3b4d5 |
- include COPYING.LESSER and docs dir
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.2a1-2
|
|
|
e3b4d5 |
- rename to python-kitchen
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.2a1-1
|
|
|
e3b4d5 |
- update to 0.2a1
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jul 15 2010 Dennis Gilmore <dennis@ausil.us> - 0.1a3-3
|
|
|
e3b4d5 |
- fix spelling mistake in description
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jul 15 2010 Dennis Gilmore <dennis@ausil.us> - 0.1a3-2
|
|
|
e3b4d5 |
- add documentaion
|
|
|
e3b4d5 |
- fix description
|
|
|
e3b4d5 |
|
|
|
e3b4d5 |
* Thu Jul 15 2010 Dennis Gilmore <dennis@ausil.us> - 0.1a3-1
|
|
|
e3b4d5 |
- initial package
|