Blame SPECS/python-jinja2.spec

4d95d9
%{?scl:%scl_package python-jinja2}
4d95d9
%{!?scl:%global pkg_name %{name}}
4d95d9
4d95d9
%global python3_pkgversion %{nil}
4d95d9
%global srcname Jinja2
4d95d9
4d95d9
Name:           %{?scl_prefix}python-jinja2
4d95d9
Version:        2.10.3
4d95d9
Release:        5%{?dist}
4d95d9
Summary:        General purpose template engine
4d95d9
License:        BSD
4d95d9
URL:            http://jinja.pocoo.org/
4d95d9
Source0:        %{pypi_source}
4d95d9
4d95d9
# Enable building without docs to avoid a circular dependency between this
4d95d9
# and python-sphinx:
4d95d9
%bcond_with docs
4d95d9
4d95d9
BuildArch:      noarch
4d95d9
4d95d9
%{?scl:Requires: %{scl}-runtime}
4d95d9
%{?scl:BuildRequires: %{scl}-runtime}
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-devel
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-setuptools
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-babel >= 0.8
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-markupsafe >= 0.23
4d95d9
# Tests disabled due to missing dependencies
4d95d9
# BuildRequires:  %%{?scl_prefix}python%%{python3_pkgversion}-pytest
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-rpm-macros
4d95d9
%if %{with docs}
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-sphinx
4d95d9
BuildRequires:  make
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-Pallets-Sphinx-Themes
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-sphinxcontrib-log-cabinet
4d95d9
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-sphinx-issues
4d95d9
%endif
4d95d9
Requires:       %{?scl_prefix}python%{python3_pkgversion}-babel >= 0.8
4d95d9
Requires:       %{?scl_prefix}python%{python3_pkgversion}-markupsafe >= 0.23
4d95d9
Requires:       %{?scl_prefix}python%{python3_pkgversion}-setuptools
4d95d9
4d95d9
%description
4d95d9
Jinja2 is a template engine written in pure Python.  It provides a
4d95d9
Django inspired non-XML syntax but supports inline expressions and an
4d95d9
optional sandboxed environment.
4d95d9
4d95d9
If you have any exposure to other text-based template languages, such
4d95d9
as Smarty or Django, you should feel right at home with Jinja2. It's
4d95d9
both designer and developer friendly by sticking to Python's
4d95d9
principles and adding functionality useful for templating
4d95d9
environments.
4d95d9
4d95d9
%prep
4d95d9
%{?scl:scl enable %{scl} - << \EOF}
4d95d9
set -ex
4d95d9
%autosetup -n %{srcname}-%{version}
4d95d9
4d95d9
# cleanup
4d95d9
find . -name '*.pyo' -o -name '*.pyc' -delete
4d95d9
%{?scl:EOF}
4d95d9
4d95d9
4d95d9
%build
4d95d9
%{?scl:scl enable %{scl} - << \EOF}
4d95d9
set -ex
4d95d9
%py3_build
4d95d9
%if %{with docs}
4d95d9
make -C docs html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
4d95d9
# remove hidden file
4d95d9
rm -rf docs/_build/html/.buildinfo
4d95d9
%endif # with docs
4d95d9
4d95d9
%{?scl:EOF}
4d95d9
4d95d9
4d95d9
%install
4d95d9
%{?scl:scl enable %{scl} - << \EOF}
4d95d9
set -ex
4d95d9
%py3_install
4d95d9
%{?scl:EOF}
4d95d9
4d95d9
4d95d9
%check
4d95d9
%{?scl:scl enable %{scl} - << \EOF}
4d95d9
set -ex
4d95d9
# %%{__python3} -m pytest tests
4d95d9
4d95d9
%{?scl:EOF}
4d95d9
4d95d9
4d95d9
%files
4d95d9
%doc CHANGES.rst
4d95d9
%doc ext
4d95d9
%doc examples
4d95d9
%license LICENSE.rst
4d95d9
%if %{with docs}
4d95d9
%doc docs/_build/html
4d95d9
%endif
4d95d9
%{python3_sitelib}/jinja2
4d95d9
%{python3_sitelib}/Jinja2-%{version}-py?.?.egg-info
4d95d9
4d95d9
4d95d9
%changelog
4d95d9
* Thu Feb 06 2020 Lumír Balhar <lbalhar@redhat.com> - 2.10.3-5
4d95d9
- Import from the python38 module and modified for rh-python38 RHSCL
4d95d9
Resolves: rhbz#1671025
4d95d9
4d95d9
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 2.10.3-4
4d95d9
- Exclude unsupported i686 arch
4d95d9
4d95d9
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 2.10.3-3
4d95d9
- Adjusted for Python 3.8 module in RHEL 8
4d95d9
4d95d9
* Wed Nov 20 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.10.3-2
4d95d9
- Add missing BR on make.
4d95d9
4d95d9
* Mon Nov 11 2019 Lumír Balhar <lbalhar@redhat.com> - 2.10.3-1
4d95d9
- New upstream version (2.10.3)
4d95d9
4d95d9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.10.1-5
4d95d9
- Rebuilt for Python 3.8.0rc1 (#1748018)
4d95d9
4d95d9
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.10.1-4
4d95d9
- Rebuilt for Python 3.8
4d95d9
4d95d9
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.10.1-3
4d95d9
- Bootstrap for Python 3.8
4d95d9
4d95d9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4d95d9
4d95d9
* Wed Apr 10 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.10.1-1
4d95d9
- Update to 2.10.1.
4d95d9
- Update specfile.
4d95d9
4d95d9
* Wed Feb 27 2019 Phil Wyett <philwyett@kathenas.org> - 2.10-8
4d95d9
- Fix FTBS due to bad conditional
4d95d9
- Add version requirement for markupsafe
4d95d9
4d95d9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-7
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4d95d9
4d95d9
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-6
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4d95d9
4d95d9
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10-5
4d95d9
- Rebuilt for Python 3.7
4d95d9
4d95d9
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10-4
4d95d9
- Bootstrap for Python 3.7
4d95d9
4d95d9
* Mon Apr 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.10-3
4d95d9
- Don't build the Python 2 subpackage on EL > 7
4d95d9
4d95d9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4d95d9
4d95d9
* Thu Nov 16 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.10-1
4d95d9
- Update to 2.10.
4d95d9
- Use %%bcond.
4d95d9
- Move BRs to their respective subpackages.
4d95d9
4d95d9
* Fri Oct 20 2017 Troy Dawson <tdawson@redhat.com> - 2.9.6-4
4d95d9
- Really cleanup spec file conditionals
4d95d9
4d95d9
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.9.6-3
4d95d9
- Cleanup spec file conditionals
4d95d9
4d95d9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.6-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4d95d9
4d95d9
* Wed Apr  5 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.9.6-1
4d95d9
- Update to 2.9.6.
4d95d9
4d95d9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.5-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4d95d9
4d95d9
* Sun Jan 29 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.9.5-1
4d95d9
- Update to 2.9.5.
4d95d9
4d95d9
* Fri Jan 13 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.9.4-1
4d95d9
- Update to 2.9.4.
4d95d9
4d95d9
* Sat Dec 31 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.8.1-1
4d95d9
- Update to 2.8.1.
4d95d9
4d95d9
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.8-8
4d95d9
- Rebuild for Python 3.6
4d95d9
4d95d9
* Thu Sep 22 2016 Orion Poplawski <orion@cora.nwra.com> - 2.8-7
4d95d9
- Ship python2-jinja2 (bug #1378519)
4d95d9
- Modernize spec
4d95d9
4d95d9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-6
4d95d9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4d95d9
4d95d9
* Fri Feb  5 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.8-5
4d95d9
- Do not call py.test, there are currently no tests in the tarball.
4d95d9
4d95d9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-4
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4d95d9
4d95d9
* Mon Oct 12 2015 Robert Kuska <rkuska@redhat.com> - 2.8-3
4d95d9
- Rebuilt for Python3.5 rebuild
4d95d9
4d95d9
* Mon Jul 27 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.8-2
4d95d9
- Apply updates Python packaging guidelines.
4d95d9
- Mark LICENSE with %%license.
4d95d9
4d95d9
* Sun Jul 26 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.8-1
4d95d9
- Upstream 2.8
4d95d9
4d95d9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-3
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4d95d9
4d95d9
* Tue Dec 2 2014 Orion Poplawski <orion@cora.nwra.com> - 2.7.3-2
4d95d9
- Add Requires python(3)-setuptools (bug #1168774)
4d95d9
4d95d9
* Sat Jun  7 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.3-1
4d95d9
- Update to 2.7.3.
4d95d9
- Reenable docs.
4d95d9
4d95d9
* Sat May 10 2014 Orion Poplawski <orion@cora.nwra.com> - 2.7.2-2
4d95d9
- Bootstrap (without docs) build for Python 3.4
4d95d9
4d95d9
* Fri Jan 10 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.2-1
4d95d9
- Update to 2.7.2.
4d95d9
- Update python3 conditional.
4d95d9
4d95d9
* Fri Aug 16 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.1-1
4d95d9
- Update to 2.7.1.
4d95d9
4d95d9
* Thu Jul 25 2013 Orion Poplawski <orion@cora.nwra.com> - 2.7-1
4d95d9
- Update to 2.7
4d95d9
- spec cleanup
4d95d9
4d95d9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-6
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4d95d9
4d95d9
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.6-5
4d95d9
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
4d95d9
4d95d9
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.6-4
4d95d9
- remove rhel logic from with_python3 conditional
4d95d9
4d95d9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-3
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4d95d9
4d95d9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4d95d9
4d95d9
* Mon Jul 25 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.6-1
4d95d9
- Update to 2.6.
4d95d9
4d95d9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.5-4
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4d95d9
4d95d9
* Tue Jan 18 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.5-3
4d95d9
- Re-enable html doc generation.
4d95d9
- Remove conditional for F-12 and below.
4d95d9
- Do not silently fail the testsuite for with py3k.
4d95d9
4d95d9
* Mon Nov  1 2010 Michel Salim <salimma@fedoraproject.org> - 2.5.5-2
4d95d9
- Move python3 runtime requirements to python3 subpackage
4d95d9
4d95d9
* Wed Oct 27 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.5-1
4d95d9
- Update to 2.5.5.
4d95d9
4d95d9
* Wed Aug 25 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.2-4
4d95d9
- Revert to previous behavior: fail the build on failed test.
4d95d9
- Rebuild for Python 3.2.
4d95d9
4d95d9
* Wed Aug 25 2010 Dan Horák <dan[at]danny.cz> - 2.5.2-3
4d95d9
- %%ifnarch doesn't work on noarch package so don't fail the build on failed tests
4d95d9
4d95d9
* Wed Aug 25 2010 Dan Horák <dan[at]danny.cz> - 2.5.2-2
4d95d9
- disable the testsuite on s390(x)
4d95d9
4d95d9
* Thu Aug 19 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.2-1
4d95d9
- Update to upstream version 2.5.2.
4d95d9
- Package depends on python-markupsafe and is noarch now.
4d95d9
4d95d9
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.5-4
4d95d9
- add explicit build-requirement on python-setuptools
4d95d9
- fix doc disablement for python3 subpackage
4d95d9
4d95d9
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.5-3
4d95d9
- support disabling documentation in the build to break a circular build-time
4d95d9
dependency with python-sphinx; disable docs for now
4d95d9
4d95d9
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.5-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
4d95d9
4d95d9
* Tue Jul 13 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.5-1
4d95d9
- Update to upstream version 2.5.
4d95d9
- Create python3 subpackage.
4d95d9
- Minor specfile fixes.
4d95d9
- Add examples directory.
4d95d9
- Thanks to Gareth Armstrong for additional hints.
4d95d9
4d95d9
* Wed Apr 21 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.1-1
4d95d9
- Update to 2.4.1.
4d95d9
4d95d9
* Tue Apr 13 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.4-1
4d95d9
- Update to 2.4.
4d95d9
4d95d9
* Tue Feb 23 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
4d95d9
- Update to 2.3.1.
4d95d9
- Docs are built using Sphinx now.
4d95d9
- Run the testsuite.
4d95d9
4d95d9
* Sat Sep 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
4d95d9
- Update to 2.2.1, mainly a bugfix release.
4d95d9
- Remove patch no longer needed.
4d95d9
- Remove conditional for FC-8.
4d95d9
- Compilation of speedup module has to be explicitly requested now.
4d95d9
4d95d9
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4d95d9
4d95d9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
4d95d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4d95d9
4d95d9
* Sat Jan 10 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1
4d95d9
- Update to 2.1.1 (bugfix release).
4d95d9
4d95d9
* Thu Dec 18 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.1-1
4d95d9
- Update to 2.1, which fixes a number of bugs.
4d95d9
  See http://jinja.pocoo.org/2/documentation/changelog#version-2-1.
4d95d9
4d95d9
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0-3
4d95d9
- Rebuild for Python 2.6
4d95d9
4d95d9
* Tue Jul 22 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-2
4d95d9
- Use rpm buildroot macro instead of RPM_BUILD_ROOT.
4d95d9
4d95d9
* Sun Jul 20 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-1
4d95d9
- Upstream released 2.0.
4d95d9
4d95d9
* Sun Jun 29 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-0.1.rc1
4d95d9
- Modified specfile from the existing python-jinja package.
4d95d9