|
|
c67539 |
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
c67539 |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
c67539 |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
c67539 |
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%global with_python3 1
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?fedora}
|
|
|
c67539 |
%{!?python3_pkgversion: %global python3_pkgversion 3}
|
|
|
c67539 |
%else
|
|
|
c67539 |
%{!?python3_pkgversion: %global python3_pkgversion 34}
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?rhel} > 7
|
|
|
c67539 |
# Disable python2 build by default
|
|
|
c67539 |
%bcond_with python2
|
|
|
c67539 |
%else
|
|
|
c67539 |
%bcond_without python2
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
Name: python-kitchen
|
|
|
c67539 |
Version: 1.2.5
|
|
|
c67539 |
Release: 5%{?dist}
|
|
|
c67539 |
Summary: Small, useful pieces of code to make python coding easier
|
|
|
c67539 |
|
|
|
c67539 |
Group: Development/Languages
|
|
|
c67539 |
License: LGPLv2+
|
|
|
c67539 |
URL: https://pypi.python.org/pypi/kitchen/
|
|
|
c67539 |
Source0: https://github.com/fedora-infra/kitchen/archive/v%{version}.tar.gz
|
|
|
c67539 |
BuildArch: noarch
|
|
|
c67539 |
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
BuildRequires: python2-devel
|
|
|
c67539 |
BuildRequires: python2-nose
|
|
|
c67539 |
# For the subprocess test
|
|
|
c67539 |
BuildRequires: python2-test
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
# sphinx needs to be more recent to build the html docs
|
|
|
c67539 |
%if 0%{?fedora}
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
BuildRequires: python2-sphinx
|
|
|
c67539 |
%else
|
|
|
c67539 |
BuildRequires: python-sphinx
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?fedora} || 0%{?rhel} > 6
|
|
|
c67539 |
# At present, chardet isn't present in epel but it's a soft dep
|
|
|
c67539 |
BuildRequires: python-chardet
|
|
|
c67539 |
Requires: python-chardet
|
|
|
c67539 |
%endif
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3}
|
|
|
c67539 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
c67539 |
BuildRequires: python%{python3_pkgversion}-nose
|
|
|
c67539 |
BuildRequires: python%{python3_pkgversion}-test
|
|
|
c67539 |
BuildRequires: python%{python3_pkgversion}-chardet
|
|
|
c67539 |
%if 0%{?fedora}
|
|
|
c67539 |
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
|
c67539 |
%endif
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%description
|
|
|
c67539 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
c67539 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
c67539 |
columns a string takes), and compatibility modules for writing code that uses
|
|
|
c67539 |
python-2.7 modules but needs to run on python-2.3.
|
|
|
c67539 |
|
|
|
c67539 |
%package doc
|
|
|
c67539 |
Summary: API documentation for the Kitchen python2 module
|
|
|
c67539 |
# Currently discussing guidelines about doc subpackages Requiring the main package:
|
|
|
c67539 |
# https://lists.fedoraproject.org/pipermail/packaging/2013-June/009191.html
|
|
|
c67539 |
#Requires: %%{name} = %%{version}-%%{release}
|
|
|
c67539 |
%description doc
|
|
|
c67539 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
c67539 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
c67539 |
columns a string takes), and compatibility modules for writing code that uses
|
|
|
c67539 |
python-2.7 modules but needs to run on python-2.3.
|
|
|
c67539 |
|
|
|
c67539 |
This package contains the API documenation for programming with the
|
|
|
c67539 |
python-2 version of the kitchen library.
|
|
|
c67539 |
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
%package -n python2-kitchen
|
|
|
c67539 |
Summary: Small, useful pieces of code to make python 2 coding easier
|
|
|
c67539 |
Group: Development/Languages
|
|
|
c67539 |
%{?python_provide:%python_provide python2-kitchen}
|
|
|
c67539 |
|
|
|
c67539 |
%description -n python2-kitchen
|
|
|
c67539 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
c67539 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
c67539 |
columns a string takes).
|
|
|
c67539 |
|
|
|
c67539 |
This is the python2 version of the kitchen module.
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3}
|
|
|
c67539 |
%package -n python%{python3_pkgversion}-kitchen
|
|
|
c67539 |
Summary: Small, useful pieces of code to make python 3 coding easier
|
|
|
c67539 |
Group: Development/Languages
|
|
|
c67539 |
%{?python_provide:%python_provide python%{python3_pkgversion}-kitchen}
|
|
|
c67539 |
|
|
|
c67539 |
%{?__python3:Requires: %{__python3}}
|
|
|
c67539 |
Requires: python%{python3_pkgversion}-chardet
|
|
|
c67539 |
|
|
|
c67539 |
%description -n python%{python3_pkgversion}-kitchen
|
|
|
c67539 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
c67539 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
c67539 |
columns a string takes).
|
|
|
c67539 |
|
|
|
c67539 |
This is the python3 version of the kitchen module.
|
|
|
c67539 |
|
|
|
c67539 |
%package -n python%{python3_pkgversion}-kitchen-doc
|
|
|
c67539 |
Summary: API documentation for the Kitchen python3 module
|
|
|
c67539 |
#Requires: %%{name} = %%{version}-%%{release}
|
|
|
c67539 |
%description -n python%{python3_pkgversion}-kitchen-doc
|
|
|
c67539 |
kitchen includes functions to make gettext easier to use, handling unicode
|
|
|
c67539 |
text easier (conversion with bytes, outputting xml, and calculating how many
|
|
|
c67539 |
columns a string takes).
|
|
|
c67539 |
|
|
|
c67539 |
This package contains the API documenation for programming with the
|
|
|
c67539 |
python-3 version of the kitchen library.
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
|
|
|
c67539 |
%prep
|
|
|
c67539 |
%autosetup -n kitchen-%{version}
|
|
|
c67539 |
|
|
|
c67539 |
# Remove bundled egg info, if any.
|
|
|
c67539 |
rm -rf *.egg*
|
|
|
c67539 |
|
|
|
c67539 |
%build
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
%py2_build
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3}
|
|
|
c67539 |
%py3_build
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
# Build docs
|
|
|
c67539 |
%if 0%{?fedora}
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
sphinx-build-2 kitchen2/docs/ build/sphinx/html
|
|
|
c67539 |
cp -pr build/sphinx/html .
|
|
|
c67539 |
rm -rf html/.buildinfo
|
|
|
c67539 |
%else
|
|
|
c67539 |
sphinx-build kitchen2/docs/ build/sphinx/html
|
|
|
c67539 |
cp -pr build/sphinx/html .
|
|
|
c67539 |
rm -rf html/.buildinfo
|
|
|
c67539 |
%endif
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3} && 0%{?fedora}
|
|
|
c67539 |
sphinx-build-3 kitchen3/docs/ build/sphinx/html
|
|
|
c67539 |
cp -pr build/sphinx/html .
|
|
|
c67539 |
rm -rf html/.buildinfo
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%install
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
%py2_install
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3}
|
|
|
c67539 |
%py3_install
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%check
|
|
|
c67539 |
# In current mock, the PATH isn't being reset. This causes failures in some
|
|
|
c67539 |
# subprocess tests as a check tests /root/bin/PROGRAM and fails with Permission
|
|
|
c67539 |
# Denied instead of File Not Found. reseting the PATH works around this.
|
|
|
c67539 |
PATH=/bin:/usr/bin
|
|
|
c67539 |
%if 0%{?fedora}
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
PYTHONPATH=.:kitchen2/ nosetests-%{python2_version} kitchen2/tests/
|
|
|
c67539 |
%else
|
|
|
c67539 |
PYTHONPATH=.:kitchen2/ nosetests kitchen2/tests/
|
|
|
c67539 |
%endif
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3}
|
|
|
c67539 |
PYTHONPATH=.:kitchen3/ nosetests-%{python3_version} kitchen3/tests/
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
%files -n python2-kitchen
|
|
|
c67539 |
%doc README.rst NEWS.rst
|
|
|
c67539 |
%license COPYING COPYING.LESSER
|
|
|
c67539 |
%{python2_sitelib}/kitchen*
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if %{with python2}
|
|
|
c67539 |
%files doc
|
|
|
c67539 |
%doc kitchen2/docs/*
|
|
|
c67539 |
%license COPYING COPYING.LESSER
|
|
|
c67539 |
%if 0%{?fedora} || 0%{?rhel} >= 6
|
|
|
c67539 |
%doc html
|
|
|
c67539 |
%endif
|
|
|
c67539 |
%endif # with python2
|
|
|
c67539 |
|
|
|
c67539 |
%if 0%{?with_python3}
|
|
|
c67539 |
%files -n python%{python3_pkgversion}-kitchen
|
|
|
c67539 |
%doc README.rst NEWS.rst
|
|
|
c67539 |
%license COPYING COPYING.LESSER
|
|
|
c67539 |
%{python3_sitelib}/kitchen*
|
|
|
c67539 |
|
|
|
c67539 |
%files -n python%{python3_pkgversion}-kitchen-doc
|
|
|
c67539 |
%doc kitchen3/docs/*
|
|
|
c67539 |
%license COPYING COPYING.LESSER
|
|
|
c67539 |
%if 0%{?fedora}
|
|
|
c67539 |
%doc html
|
|
|
c67539 |
%endif
|
|
|
c67539 |
%endif
|
|
|
c67539 |
|
|
|
c67539 |
%changelog
|
|
|
c67539 |
* Tue Sep 25 2018 Tomas Orsava <torsava@redhat.com> - 1.2.5-5
|
|
|
c67539 |
- Require the Python interpreter directly instead of using the package name
|
|
|
c67539 |
- Resolves: rhbz#1633610
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Aug 14 2018 Petr Viktorin <pviktori@redhat.com> - 1.2.5-4
|
|
|
c67539 |
- Fix conditionalized require on python-chardet
|
|
|
c67539 |
- Resolves: #1610024
|
|
|
c67539 |
|
|
|
c67539 |
* Fri Jun 08 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.5-3
|
|
|
c67539 |
- Conditionalize the python2 subpackage
|
|
|
c67539 |
|
|
|
c67539 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-2
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Sun Dec 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.2.5-1
|
|
|
c67539 |
- Update to 1.2.5. Fixes bug #1484856
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-7
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-6
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.2.4-5
|
|
|
c67539 |
- Rebuild for Python 3.6
|
|
|
c67539 |
- Add docs back as a separate source (to fix build with recent sphinx)
|
|
|
c67539 |
- Update codepoints patch for latest Python and unicode data
|
|
|
c67539 |
|
|
|
c67539 |
* Mon Sep 12 2016 Ralph Bean <rbean@redhat.com> - 1.2.4-4
|
|
|
c67539 |
- Explicit python2 subpackage.
|
|
|
c67539 |
- Support python34 on epel7.
|
|
|
c67539 |
- Modernize python macros.
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
|
|
|
c67539 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Fri Nov 13 2015 Ralph Bean <rbean@redhat.com> - 1.2.4-1
|
|
|
c67539 |
- new version
|
|
|
c67539 |
- Apply patch fixing the unicode codepoints table for py3.5.
|
|
|
c67539 |
|
|
|
c67539 |
* Wed Nov 11 2015 Ralph Bean <rbean@redhat.com> - 1.2.1-5
|
|
|
c67539 |
- Support python34 on EPEL7.
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Dec 02 2014 Ralph Bean <rbean@redhat.com> - 1.2.1-2
|
|
|
c67539 |
- Include patch to get py34 tests working for rawhide.
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Dec 02 2014 Ralph Bean <rbean@redhat.com> - 1.2.1-1
|
|
|
c67539 |
- Latest upstream, now with python3 support!
|
|
|
c67539 |
- Added python3 subpackages.
|
|
|
c67539 |
- Remove use of build_sphinx.
|
|
|
c67539 |
- Rename README and NEWS with new .rst extension.
|
|
|
c67539 |
- Modernized python2 macros.
|
|
|
c67539 |
|
|
|
c67539 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-7
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Sat May 31 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-6
|
|
|
c67539 |
- Move the html docs to the docs package
|
|
|
c67539 |
|
|
|
c67539 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-5
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Jun 25 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-4
|
|
|
c67539 |
- Move the api documentation into its own subpackage
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Feb 14 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-1
|
|
|
c67539 |
- Bugfix for using easy_gettext_setup or get_translation_object with the
|
|
|
c67539 |
default localedirs
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jan 12 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.0-1
|
|
|
c67539 |
- Update to 1.1.0 final
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Apr 14 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-1
|
|
|
c67539 |
- Upstream update to 1.0 final
|
|
|
c67539 |
|
|
|
c67539 |
* Sun Feb 20 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.4-1
|
|
|
c67539 |
- Upstream update 0.2.4
|
|
|
c67539 |
- Changes i18n.easy_gettext_setup() to return lgettext functions when
|
|
|
c67539 |
byte strings are requested.
|
|
|
c67539 |
|
|
|
c67539 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
|
|
|
c67539 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c67539 |
|
|
|
c67539 |
* Wed Jan 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.3-2
|
|
|
c67539 |
- Upstream respin of the tarball
|
|
|
c67539 |
|
|
|
c67539 |
* Wed Jan 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.3-1
|
|
|
c67539 |
- Upstream update to 0.2.3
|
|
|
c67539 |
- Fixes https://bugzilla.redhat.com/show_bug.cgi?id=667433
|
|
|
c67539 |
|
|
|
c67539 |
* Mon Jan 3 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.2-1
|
|
|
c67539 |
- Upstream update 0.2.2
|
|
|
c67539 |
- Adds exception to message functions
|
|
|
c67539 |
- Build html docs
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Sep 2 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.1-0.1.a1
|
|
|
c67539 |
- Update to upstream 0.2.1a1 release.
|
|
|
c67539 |
- Fixes build on python-2.7, adds iterutils module, optimizes some functions,
|
|
|
c67539 |
increases documentation
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.2-0.1.a2
|
|
|
c67539 |
- propoerlly version accrding to pre-release guidelines
|
|
|
c67539 |
- run tests
|
|
|
c67539 |
- update to 0.2a2
|
|
|
c67539 |
- include COPYING.LESSER and docs dir
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.2a1-2
|
|
|
c67539 |
- rename to python-kitchen
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.2a1-1
|
|
|
c67539 |
- update to 0.2a1
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 15 2010 Dennis Gilmore <dennis@ausil.us> - 0.1a3-3
|
|
|
c67539 |
- fix spelling mistake in description
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 15 2010 Dennis Gilmore <dennis@ausil.us> - 0.1a3-2
|
|
|
c67539 |
- add documentaion
|
|
|
c67539 |
- fix description
|
|
|
c67539 |
|
|
|
c67539 |
* Thu Jul 15 2010 Dennis Gilmore <dennis@ausil.us> - 0.1a3-1
|
|
|
c67539 |
- initial package
|