2011-09-01 14:06:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Mako
|
|
|
|
#
|
2024-01-22 09:15:01 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-09-01 14:06:20 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-09-05 14:42:56 +00:00
|
|
|
|
2019-03-21 13:41:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 14:06:20 +00:00
|
|
|
#
|
|
|
|
|
2011-09-05 14:42:56 +00:00
|
|
|
|
2021-10-03 20:08:50 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without libalternatives
|
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
|
|
|
|
2023-06-15 20:03:02 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-01 14:06:20 +00:00
|
|
|
Name: python-Mako
|
- update to 1.3.0:
* Mako 1.3.0 bumps the minimum Python version to 3.8
* Python 3.12 is now supported explicitly.
- Update to 1.2.4
correctly interpret quoted sections individually
* Fixed some issues with running the test suite which would
be revealed by running tests in random order.
- Use libalternatives instead of update-alternatives.
emit warnings under Python 3.10.
* The default template encoding is now utf-8
- update to 1.0.8
- fix up build for SLE11
- python3 package added
- Added new "loop" variable to templates, is provided within a %
for block to provide info about the loop such as index,
first/last, odd/even, etc. A migration path is also provided
for legacy templates via the "enable_loop" argument available
on Template, TemplateLookup, and <%page>.
- Added a real check for "reserved" names, that is names which
are never pulled from the context and cannot be passed to the
- The html_error_template() will now apply Pygments highlighting
to the source code displayed in the traceback, if Pygments if
- Added support for context managers,
- Added class-level flag to CacheImpl "pass_context"; when True,
the keyword argument 'context' will be passed to
- Template caching has been converted into a plugin system,
whereby the usage of Beaker is just the default plugin.
Template and TemplateLookup now accept a string "cache_impl"
parameter which refers to the name of a cache plugin,
defaulting to the name 'beaker'. New plugins can be registered
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=99
2023-12-07 22:10:19 +00:00
|
|
|
Version: 1.3.0
|
2011-11-10 10:54:38 +00:00
|
|
|
Release: 0
|
2017-04-24 16:27:39 +00:00
|
|
|
Summary: A Python templating language
|
2011-09-01 14:06:20 +00:00
|
|
|
License: MIT
|
2020-05-25 09:23:10 +00:00
|
|
|
URL: https://www.makotemplates.org/
|
2018-07-05 21:48:07 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/M/Mako/Mako-%{version}.tar.gz
|
2019-07-29 08:41:32 +00:00
|
|
|
BuildRequires: %{python_module MarkupSafe >= 0.9.2}
|
- update to 1.3.0:
* Mako 1.3.0 bumps the minimum Python version to 3.8
* Python 3.12 is now supported explicitly.
- Update to 1.2.4
correctly interpret quoted sections individually
* Fixed some issues with running the test suite which would
be revealed by running tests in random order.
- Use libalternatives instead of update-alternatives.
emit warnings under Python 3.10.
* The default template encoding is now utf-8
- update to 1.0.8
- fix up build for SLE11
- python3 package added
- Added new "loop" variable to templates, is provided within a %
for block to provide info about the loop such as index,
first/last, odd/even, etc. A migration path is also provided
for legacy templates via the "enable_loop" argument available
on Template, TemplateLookup, and <%page>.
- Added a real check for "reserved" names, that is names which
are never pulled from the context and cannot be passed to the
- The html_error_template() will now apply Pygments highlighting
to the source code displayed in the traceback, if Pygments if
- Added support for context managers,
- Added class-level flag to CacheImpl "pass_context"; when True,
the keyword argument 'context' will be passed to
- Template caching has been converted into a plugin system,
whereby the usage of Beaker is just the default plugin.
Template and TemplateLookup now accept a string "cache_impl"
parameter which refers to the name of a cache plugin,
defaulting to the name 'beaker'. New plugins can be registered
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=99
2023-12-07 22:10:19 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2017-03-31 17:01:12 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2021-10-03 20:08:50 +00:00
|
|
|
BuildRequires: python-rpm-macros >= 20210929
|
2019-07-29 08:41:32 +00:00
|
|
|
Requires: python-MarkupSafe >= 0.9.2
|
|
|
|
Requires: python-setuptools
|
2021-10-03 20:08:50 +00:00
|
|
|
%if %{with libalternatives}
|
|
|
|
Requires: alts
|
2021-10-06 07:33:09 +00:00
|
|
|
BuildRequires: alts
|
2021-10-03 20:08:50 +00:00
|
|
|
%else
|
2020-05-25 09:23:10 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-10-06 07:34:07 +00:00
|
|
|
Requires(postun):update-alternatives
|
2021-10-03 20:08:50 +00:00
|
|
|
%endif
|
2018-07-05 21:48:07 +00:00
|
|
|
BuildArch: noarch
|
2016-11-16 06:59:45 +00:00
|
|
|
Recommends: python-Beaker >= 1.1
|
2020-12-12 12:16:59 +00:00
|
|
|
Provides: python-mako = %{version}
|
|
|
|
Obsoletes: python-mako < %{version}
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_subpackages
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%description
|
2017-04-24 16:27:39 +00:00
|
|
|
Mako is a template library written in Python. It provides a non-XML
|
|
|
|
syntax which compiles into Python modules for performance. Mako's
|
|
|
|
syntax and API borrows from Django templates, Cheetah, Myghty, and
|
|
|
|
Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server
|
|
|
|
Page) language, which refines the ideas of componentized layout and
|
|
|
|
inheritance, while maintaining close ties to Python calling and
|
|
|
|
scoping semantics.
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Mako-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_build
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_install
|
2021-09-19 17:35:40 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/mako-render
|
2019-06-18 08:41:48 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-09-16 04:07:55 +00:00
|
|
|
|
2011-09-01 14:06:20 +00:00
|
|
|
%check
|
2019-08-05 18:06:18 +00:00
|
|
|
%pytest
|
2011-09-01 14:06:20 +00:00
|
|
|
|
2021-10-03 20:08:50 +00:00
|
|
|
%pre
|
|
|
|
# If libalternatives is used: Removing old update-alternatives entries.
|
|
|
|
%python_libalternatives_reset_alternative mako-render
|
|
|
|
|
2020-05-25 09:23:10 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative mako-render
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative mako-render
|
|
|
|
|
2017-03-31 17:01:12 +00:00
|
|
|
%files %{python_files}
|
2018-07-05 21:48:07 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README.rst
|
2016-09-16 04:07:55 +00:00
|
|
|
%doc examples
|
2020-05-25 09:23:10 +00:00
|
|
|
%python_alternative %{_bindir}/mako-render
|
2012-05-23 07:13:31 +00:00
|
|
|
%{python_sitelib}/mako/
|
2016-09-16 04:07:55 +00:00
|
|
|
%{python_sitelib}/Mako-%{version}-py*.egg-info
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%changelog
|