2017-09-27 17:57:51 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
2018-03-28 14:20:43 +00:00
|
|
|
%bcond_without python3
|
|
|
|
%else
|
|
|
|
%bcond_with python3
|
2011-09-08 08:19:22 +00:00
|
|
|
%endif
|
|
|
|
|
2018-03-28 14:10:07 +00:00
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
%bcond_with python2
|
|
|
|
%else
|
|
|
|
%bcond_without python2
|
|
|
|
%endif
|
|
|
|
|
2015-01-28 17:28:05 +00:00
|
|
|
%global upname Mako
|
|
|
|
|
2008-05-31 20:47:02 +00:00
|
|
|
Name: python-mako
|
2019-04-17 10:48:13 +00:00
|
|
|
Version: 1.0.9
|
2019-03-20 12:45:13 +00:00
|
|
|
Release: 1%{?dist}
|
2016-12-18 00:52:59 +00:00
|
|
|
BuildArch: noarch
|
2008-05-31 20:47:02 +00:00
|
|
|
|
2010-06-28 02:13:18 +00:00
|
|
|
# Mostly MIT, but _ast_util.py is Python licensed.
|
2011-09-08 08:19:22 +00:00
|
|
|
# The documentation contains javascript for search licensed BSD or GPLv2
|
|
|
|
License: (MIT and Python) and (BSD or GPLv2)
|
2016-12-18 00:52:59 +00:00
|
|
|
Summary: Mako template library for Python
|
2008-05-31 20:47:02 +00:00
|
|
|
URL: http://www.makotemplates.org/
|
2019-03-20 17:31:28 +00:00
|
|
|
Source0: https://github.com/sqlalchemy/mako/archive/rel_%(echo %{version} | sed "s/\./_/g").tar.gz
|
2016-12-18 00:52:59 +00:00
|
|
|
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{with python2}
|
2011-09-08 08:19:22 +00:00
|
|
|
BuildRequires: python2-devel
|
2016-12-18 00:52:59 +00:00
|
|
|
BuildRequires: python2-pytest
|
2018-02-12 03:30:57 +00:00
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python2-markupsafe
|
2018-06-08 13:05:19 +00:00
|
|
|
#BuildRequires: python2-beaker
|
2018-02-12 03:30:57 +00:00
|
|
|
BuildRequires: python2-nose
|
|
|
|
BuildRequires: python2-mock
|
2018-03-28 14:10:07 +00:00
|
|
|
%endif #{with python2}
|
2008-05-31 20:47:02 +00:00
|
|
|
|
2018-03-28 14:20:43 +00:00
|
|
|
%if %{with python3}
|
2010-05-06 17:26:04 +00:00
|
|
|
BuildRequires: python3-devel
|
2016-12-18 00:52:59 +00:00
|
|
|
BuildRequires: python3-pytest
|
2010-05-06 17:26:04 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2010-06-28 02:13:18 +00:00
|
|
|
BuildRequires: python3-markupsafe
|
2018-06-08 13:05:19 +00:00
|
|
|
#BuildRequires: python3-beaker
|
2014-06-18 16:09:16 +00:00
|
|
|
BuildRequires: python3-mock
|
2011-09-06 03:38:26 +00:00
|
|
|
BuildRequires: python3-nose
|
2018-03-28 14:20:43 +00:00
|
|
|
%endif #{with python3}
|
2010-05-06 17:26:04 +00:00
|
|
|
|
2017-08-19 13:41:29 +00:00
|
|
|
%global _description\
|
|
|
|
Mako is a template library written in Python. It provides a familiar, non-XML\
|
|
|
|
syntax which compiles into Python modules for maximum performance. Mako's\
|
|
|
|
syntax and API borrows from the best ideas of many others, including Django\
|
|
|
|
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded\
|
|
|
|
Python (i.e. Python Server Page) language, which refines the familiar ideas of\
|
|
|
|
componentized layout and inheritance to produce one of the most straightforward\
|
|
|
|
and flexible models available, while also maintaining close ties to Python\
|
2008-05-31 20:47:02 +00:00
|
|
|
calling and scoping semantics.
|
|
|
|
|
2017-08-19 13:41:29 +00:00
|
|
|
%description %_description
|
|
|
|
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{with python2}
|
2017-08-19 13:41:29 +00:00
|
|
|
%package -n python2-mako
|
|
|
|
Summary: %summary
|
2018-02-12 03:30:57 +00:00
|
|
|
Requires: python2-markupsafe
|
2018-03-28 13:50:47 +00:00
|
|
|
|
|
|
|
# Beaker is the preferred caching backend, but is not strictly necessary
|
|
|
|
Recommends: python2-beaker
|
|
|
|
|
2017-08-19 13:41:29 +00:00
|
|
|
%{?python_provide:%python_provide python2-mako}
|
|
|
|
|
|
|
|
%description -n python2-mako %_description
|
2018-03-28 14:10:07 +00:00
|
|
|
%endif #{with python2}
|
2017-08-19 13:41:29 +00:00
|
|
|
|
2014-05-19 16:31:31 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the Mako template library for Python
|
|
|
|
License: (MIT and Python) and (BSD or GPLv2)
|
2018-04-12 13:45:39 +00:00
|
|
|
%if %{with python3}
|
|
|
|
Requires: python3-mako = %{version}-%{release}
|
|
|
|
%else
|
2018-02-12 03:30:57 +00:00
|
|
|
Requires: python2-mako = %{version}-%{release}
|
2018-04-12 13:45:39 +00:00
|
|
|
%endif #{with python3}
|
2014-05-19 16:31:31 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Mako is a template library written in Python. It provides a familiar, non-XML
|
|
|
|
syntax which compiles into Python modules for maximum performance. Mako's
|
|
|
|
syntax and API borrows from the best ideas of many others, including Django
|
|
|
|
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
|
|
|
Python (i.e. Python Server Page) language, which refines the familiar ideas of
|
|
|
|
componentized layout and inheritance to produce one of the most straightforward
|
|
|
|
and flexible models available, while also maintaining close ties to Python
|
|
|
|
calling and scoping semantics.
|
|
|
|
|
|
|
|
This package contains documentation in text and HTML formats.
|
|
|
|
|
|
|
|
|
2018-03-28 14:20:43 +00:00
|
|
|
%if %{with python3}
|
2010-05-06 17:26:04 +00:00
|
|
|
%package -n python3-mako
|
|
|
|
Summary: Mako template library for Python 3
|
2011-09-08 08:19:22 +00:00
|
|
|
Requires: python3-markupsafe
|
2010-05-06 17:26:04 +00:00
|
|
|
|
2018-03-28 13:50:47 +00:00
|
|
|
# Beaker is the preferred caching backend, but is not strictly necessary
|
|
|
|
Recommends: python3-beaker
|
|
|
|
|
2018-03-28 13:55:25 +00:00
|
|
|
%{?python_provide:%python_provide python3-mako}
|
|
|
|
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{without python2}
|
|
|
|
Obsoletes: python2-mako < %{version}-%{release}
|
2018-04-12 13:45:39 +00:00
|
|
|
%endif #{without python2}
|
2018-03-28 14:10:07 +00:00
|
|
|
|
2010-05-06 17:26:04 +00:00
|
|
|
%description -n python3-mako
|
|
|
|
Mako is a template library written in Python. It provides a familiar, non-XML
|
|
|
|
syntax which compiles into Python modules for maximum performance. Mako's
|
|
|
|
syntax and API borrows from the best ideas of many others, including Django
|
|
|
|
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
|
|
|
Python (i.e. Python Server Page) language, which refines the familiar ideas of
|
|
|
|
componentized layout and inheritance to produce one of the most straightforward
|
|
|
|
and flexible models available, while also maintaining close ties to Python
|
|
|
|
calling and scoping semantics.
|
2011-09-08 08:19:22 +00:00
|
|
|
|
|
|
|
This package contains the mako module built for use with python3.
|
2018-03-28 14:20:43 +00:00
|
|
|
%endif #{with python3}
|
2008-05-31 20:47:02 +00:00
|
|
|
|
|
|
|
%prep
|
2019-03-20 17:31:28 +00:00
|
|
|
%autosetup -n mako-rel_%(echo %{version} | sed "s/\./_/g")
|
|
|
|
|
2008-05-31 20:47:02 +00:00
|
|
|
|
|
|
|
%build
|
2018-03-28 14:20:43 +00:00
|
|
|
%{?with_python2:%py2_build}
|
|
|
|
%{?with_python3:%py3_build}
|
2010-05-06 17:26:04 +00:00
|
|
|
|
2008-05-31 20:47:02 +00:00
|
|
|
|
|
|
|
%install
|
2018-03-28 14:20:43 +00:00
|
|
|
%{?with_python3:%py3_install}
|
2010-05-06 17:26:04 +00:00
|
|
|
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{with python2}
|
2011-09-08 08:19:22 +00:00
|
|
|
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-render
|
2018-03-28 14:10:07 +00:00
|
|
|
%endif
|
2010-05-06 17:26:04 +00:00
|
|
|
|
2018-03-28 14:20:43 +00:00
|
|
|
%{?with_python2:%py2_install}
|
2008-05-31 20:47:02 +00:00
|
|
|
|
2011-09-08 08:19:22 +00:00
|
|
|
# These are supporting files for building the docs. No need to ship
|
2010-06-28 02:13:18 +00:00
|
|
|
rm -rf doc/build
|
2010-05-04 20:56:45 +00:00
|
|
|
|
|
|
|
%check
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{with python2}
|
2018-03-28 14:20:43 +00:00
|
|
|
%{__python2} setup.py test
|
2018-03-28 14:10:07 +00:00
|
|
|
%endif #{with python2}
|
2010-05-04 20:56:45 +00:00
|
|
|
|
2018-03-28 14:20:43 +00:00
|
|
|
%if %{with python3}
|
|
|
|
%{__python3} setup.py test
|
2011-09-06 03:38:26 +00:00
|
|
|
%endif
|
2010-05-04 20:56:45 +00:00
|
|
|
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{with python2}
|
2017-08-19 13:41:29 +00:00
|
|
|
%files -n python2-mako
|
2016-12-18 00:52:59 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README.rst examples
|
2009-01-07 05:03:13 +00:00
|
|
|
%{_bindir}/mako-render
|
2018-03-28 14:20:43 +00:00
|
|
|
%{python2_sitelib}/*
|
2018-03-28 14:10:07 +00:00
|
|
|
%endif %{with python2}
|
2008-05-31 20:47:02 +00:00
|
|
|
|
2018-04-12 13:45:39 +00:00
|
|
|
%if %{with python3}
|
2010-05-06 17:26:04 +00:00
|
|
|
%files -n python3-mako
|
2016-12-18 00:52:59 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README.rst examples
|
2018-03-28 14:10:07 +00:00
|
|
|
%if %{with python2}
|
2010-05-06 17:26:04 +00:00
|
|
|
%{_bindir}/python3-mako-render
|
2018-03-28 14:10:07 +00:00
|
|
|
%else
|
|
|
|
%{_bindir}/mako-render
|
|
|
|
%endif
|
2010-05-06 17:26:04 +00:00
|
|
|
%{python3_sitelib}/*
|
|
|
|
%endif
|
2008-05-31 20:47:02 +00:00
|
|
|
|
2014-05-19 16:31:31 +00:00
|
|
|
%files doc
|
|
|
|
%doc doc
|
|
|
|
|
|
|
|
|
2008-05-31 20:47:02 +00:00
|
|
|
%changelog
|
2019-04-17 10:48:13 +00:00
|
|
|
* Wed Apr 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.9-1
|
|
|
|
- Update to 1.0.9 (#1698191, #1700055)
|
|
|
|
|
2019-03-20 17:31:28 +00:00
|
|
|
* Wed Mar 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-1
|
|
|
|
- Update to 1.0.8 (#1470902, #1690902)
|
|
|
|
|
2019-03-20 12:45:13 +00:00
|
|
|
* Wed Mar 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-1
|
|
|
|
- Update to 1.0.7 (#1470902)
|
|
|
|
|
2019-02-02 07:39:57 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-14 00:53:59 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-15 10:49:18 +00:00
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-10
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-03-28 13:50:47 +00:00
|
|
|
* Wed Mar 28 2018 Petr Viktorin <pviktori@redhat.com> - 1.0.6-9
|
|
|
|
- Make python-beaker an optional dependency
|
2018-03-28 13:55:25 +00:00
|
|
|
- Add missing python_provide for python3-mako
|
2018-03-28 14:10:07 +00:00
|
|
|
- Conditionalize the Python 2 subpackage
|
2018-03-28 14:20:43 +00:00
|
|
|
- Modernize the specfile
|
2018-03-28 13:50:47 +00:00
|
|
|
|
2018-02-12 03:30:57 +00:00
|
|
|
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.6-8
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 08:48:45 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|