a14f36e
Name: python-mako
e25541c
Version: 1.1.1
e25541c
Release: 1%{?dist}
bcf5d0d
BuildArch: noarch
a14f36e
1390f0d
# Mostly MIT, but _ast_util.py is Python licensed.
c081131
# The documentation contains javascript for search licensed BSD or GPLv2
c081131
License: (MIT and Python) and (BSD or GPLv2)
bcf5d0d
Summary: Mako template library for Python
a14f36e
URL: http://www.makotemplates.org/
2c575d6
Source0: https://github.com/sqlalchemy/mako/archive/rel_%(echo %{version} | sed "s/\./_/g").tar.gz
bcf5d0d
5f74222
ba061ce
BuildRequires: python3-devel
bcf5d0d
BuildRequires: python3-pytest
ba061ce
BuildRequires: python3-setuptools
1390f0d
BuildRequires: python3-markupsafe
Luke Macken 005ebf3
BuildRequires: python3-mock
ba061ce
6dd6fa9
%global _description\
6dd6fa9
Mako is a template library written in Python. It provides a familiar, non-XML\
6dd6fa9
syntax which compiles into Python modules for maximum performance. Mako's\
6dd6fa9
syntax and API borrows from the best ideas of many others, including Django\
6dd6fa9
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded\
6dd6fa9
Python (i.e. Python Server Page) language, which refines the familiar ideas of\
6dd6fa9
componentized layout and inheritance to produce one of the most straightforward\
6dd6fa9
and flexible models available, while also maintaining close ties to Python\
a14f36e
calling and scoping semantics.
a14f36e
6dd6fa9
%description %_description
6dd6fa9
456d72d
ba061ce
%package -n python3-mako
5f74222
Summary: %{summary}
ba061ce
456d72d
# Beaker is the preferred caching backend, but is not strictly necessary
456d72d
Recommends: python3-beaker
456d72d
5f74222
Obsoletes: python2-mako < 1.1.0-3
2d7238a
d0221b8
%{?python_provide:%python_provide python3-mako}
d0221b8
5f74222
%description -n python3-mako %_description
c081131
c081131
This package contains the mako module built for use with python3.
5f74222
5f74222
5f74222
%package doc
5f74222
Summary: Documentation for the Mako template library for Python
5f74222
Suggests: python3-mako = %{version}-%{release}
5f74222
5f74222
%description doc %_description
5f74222
5f74222
This package contains documentation in text and HTML formats.
5f74222
a14f36e
a14f36e
%prep
2c575d6
%autosetup -n mako-rel_%(echo %{version} | sed "s/\./_/g")
2c575d6
a14f36e
a14f36e
%build
5f74222
%py3_build
ba061ce
a14f36e
a14f36e
%install
2d7238a
%py3_install
2d7238a
2d7238a
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/mako-render-%{python3_version}
2d7238a
ln -s ./mako-render-%{python3_version} %{buildroot}/%{_bindir}/mako-render-3
2d7238a
ln -s ./mako-render-%{python3_version} %{buildroot}/%{_bindir}/mako-render
a14f36e
c081131
# These are supporting files for building the docs.  No need to ship
1390f0d
rm -rf doc/build
659c910
659c910
5f74222
%check
196ec70
py.test-3
659c910
a14f36e
ba061ce
%files -n python3-mako
bcf5d0d
%license LICENSE
bcf5d0d
%doc CHANGES README.rst examples
654d113
%{_bindir}/mako-render
2d7238a
%{_bindir}/mako-render-3
2d7238a
%{_bindir}/mako-render-%{python3_version}
5f74222
%{python3_sitelib}/mako/
5f74222
%{python3_sitelib}/Mako-*.egg-info/
a14f36e
Luke Macken d71c923
%files doc
Luke Macken d71c923
%doc doc
Luke Macken d71c923
Luke Macken d71c923
a14f36e
%changelog
e25541c
* Mon Feb 10 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-1
e25541c
- Update to 1.1.1 (#1787962) (#1793184)
e25541c
1dcdf4d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
1dcdf4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1dcdf4d
4b21a6f
* Tue Jan 07 2020 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.0-4
4b21a6f
- Fix FTBFS with pytest-5 by dropping a BR on python-nose (mako does not use nose).
4b21a6f
5f74222
* Fri Nov 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
5f74222
- Subpackage python2-mako has been removed
5f74222
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
5f74222
2d7238a
* Fri Oct 11 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
2d7238a
- Rename the Python-versioned executables not to start with "python"
2d7238a
- Make mako-render Python 3 on Fedora 32+
2d7238a
196ec70
* Tue Sep 03 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.0-1
196ec70
- Update to 1.1.0 (#1725969).
196ec70
- https://docs.makotemplates.org/en/latest/changelog.html#change-1.1.0
196ec70
0665975
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-4
0665975
- Rebuilt for Python 3.8
0665975
8b3c39e
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-3
8b3c39e
- Rebuilt for Python 3.8
8b3c39e
28773d1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-2
28773d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
28773d1
dd15afd
* Wed Jun 05 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.12-1
dd15afd
- Update to 1.0.12 (#1708706).
dd15afd
- https://docs.makotemplates.org/en/latest/changelog.html#change-1.0.12
dd15afd
ffc7e7b
* Wed Apr 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.9-1
ffc7e7b
- Update to 1.0.9 (#1698191, #1700055)
ffc7e7b
2c575d6
* Wed Mar 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-1
2c575d6
- Update to 1.0.8 (#1470902, #1690902)
2c575d6
73b4040
* Wed Mar 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-1
73b4040
- Update to 1.0.7 (#1470902)
73b4040
3fd6360
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-12
3fd6360
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3fd6360
f462720
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-11
f462720
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f462720
00a7ee7
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-10
00a7ee7
- Rebuilt for Python 3.7
00a7ee7
456d72d
* Wed Mar 28 2018 Petr Viktorin <pviktori@redhat.com> - 1.0.6-9
456d72d
- Make python-beaker an optional dependency
d0221b8
- Add missing python_provide for python3-mako
654d113
- Conditionalize the Python 2 subpackage
33ca828
- Modernize the specfile
456d72d
ca96cca
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.6-8
ca96cca
- Update Python 2 dependency declarations to new packaging standards
ca96cca
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
ca96cca
b3c2350
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-7
b3c2350
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild