|
|
aa1946 |
%if 0%{?fedora}
|
|
|
aa1946 |
%global with_python3 1
|
|
|
aa1946 |
%endif
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?rhel} && 0%{?rhel} < 6
|
|
|
aa1946 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
aa1946 |
%endif
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?fedora} <= 16
|
|
|
aa1946 |
%{!?python3_version: %global python3_version %(%{__python3} -c 'import sys ; sys.stdout.write("%s.%s" % sys.version_info[:2])')}
|
|
|
aa1946 |
%endif
|
|
|
aa1946 |
|
|
|
aa1946 |
Name: python-mako
|
|
|
aa1946 |
Version: 0.8.1
|
|
|
477a50 |
Release: 2%{?dist}
|
|
|
aa1946 |
Summary: Mako template library for Python
|
|
|
aa1946 |
|
|
|
aa1946 |
Group: Development/Languages
|
|
|
aa1946 |
# Mostly MIT, but _ast_util.py is Python licensed.
|
|
|
aa1946 |
# The documentation contains javascript for search licensed BSD or GPLv2
|
|
|
aa1946 |
License: (MIT and Python) and (BSD or GPLv2)
|
|
|
aa1946 |
URL: http://www.makotemplates.org/
|
|
|
aa1946 |
Source0: https://pypi.python.org/packages/source/M/Mako/Mako-%{version}.tar.gz
|
|
|
aa1946 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
aa1946 |
BuildArch: noarch
|
|
|
aa1946 |
BuildRequires: python2-devel
|
|
|
aa1946 |
BuildRequires: python-setuptools
|
|
|
aa1946 |
BuildRequires: python-markupsafe
|
|
|
aa1946 |
BuildRequires: python-beaker
|
|
|
aa1946 |
BuildRequires: python-nose
|
|
|
aa1946 |
Requires: python-markupsafe
|
|
|
aa1946 |
Requires: python-beaker
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3}
|
|
|
aa1946 |
BuildRequires: python3-devel
|
|
|
aa1946 |
BuildRequires: python3-setuptools
|
|
|
aa1946 |
BuildRequires: python3-markupsafe
|
|
|
aa1946 |
BuildRequires: python3-beaker
|
|
|
aa1946 |
%if 0%{?fedora} > 14
|
|
|
aa1946 |
BuildRequires: python3-nose
|
|
|
aa1946 |
%endif
|
|
|
aa1946 |
BuildRequires: /usr/bin/2to3
|
|
|
aa1946 |
%endif # if with_python3
|
|
|
aa1946 |
|
|
|
aa1946 |
%description
|
|
|
aa1946 |
Mako is a template library written in Python. It provides a familiar, non-XML
|
|
|
aa1946 |
syntax which compiles into Python modules for maximum performance. Mako's
|
|
|
aa1946 |
syntax and API borrows from the best ideas of many others, including Django
|
|
|
aa1946 |
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
|
|
aa1946 |
Python (i.e. Python Server Page) language, which refines the familiar ideas of
|
|
|
aa1946 |
componentized layout and inheritance to produce one of the most straightforward
|
|
|
aa1946 |
and flexible models available, while also maintaining close ties to Python
|
|
|
aa1946 |
calling and scoping semantics.
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3}
|
|
|
aa1946 |
%package -n python3-mako
|
|
|
aa1946 |
Summary: Mako template library for Python 3
|
|
|
aa1946 |
Group: Development/Languages
|
|
|
aa1946 |
Requires: python3-beaker
|
|
|
aa1946 |
Requires: python3-markupsafe
|
|
|
aa1946 |
|
|
|
aa1946 |
%description -n python3-mako
|
|
|
aa1946 |
Mako is a template library written in Python. It provides a familiar, non-XML
|
|
|
aa1946 |
syntax which compiles into Python modules for maximum performance. Mako's
|
|
|
aa1946 |
syntax and API borrows from the best ideas of many others, including Django
|
|
|
aa1946 |
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
|
|
aa1946 |
Python (i.e. Python Server Page) language, which refines the familiar ideas of
|
|
|
aa1946 |
componentized layout and inheritance to produce one of the most straightforward
|
|
|
aa1946 |
and flexible models available, while also maintaining close ties to Python
|
|
|
aa1946 |
calling and scoping semantics.
|
|
|
aa1946 |
|
|
|
aa1946 |
This package contains the mako module built for use with python3.
|
|
|
aa1946 |
%endif # with_python3
|
|
|
aa1946 |
|
|
|
aa1946 |
%prep
|
|
|
aa1946 |
%setup -q -n Mako-%{version}
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3}
|
|
|
aa1946 |
rm -rf %{py3dir}
|
|
|
aa1946 |
cp -a . %{py3dir}
|
|
|
aa1946 |
%endif # with_python3
|
|
|
aa1946 |
|
|
|
aa1946 |
%build
|
|
|
aa1946 |
%{__python} setup.py build
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3}
|
|
|
aa1946 |
pushd %{py3dir}
|
|
|
aa1946 |
2to3 --no-diffs -w mako test
|
|
|
aa1946 |
%{__python3} setup.py build
|
|
|
aa1946 |
popd
|
|
|
aa1946 |
%endif # with_python3
|
|
|
aa1946 |
|
|
|
aa1946 |
|
|
|
aa1946 |
%install
|
|
|
aa1946 |
rm -rf %{buildroot}
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3}
|
|
|
aa1946 |
pushd %{py3dir}
|
|
|
aa1946 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
aa1946 |
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-render
|
|
|
aa1946 |
popd
|
|
|
aa1946 |
%endif # with_python3
|
|
|
aa1946 |
|
|
|
aa1946 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
aa1946 |
|
|
|
aa1946 |
# These are supporting files for building the docs. No need to ship
|
|
|
aa1946 |
rm -rf doc/build
|
|
|
aa1946 |
|
|
|
aa1946 |
%check
|
|
|
aa1946 |
PYTHONPATH=$(pwd) nosetests
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3} && 0%{?fedora} > 14
|
|
|
aa1946 |
pushd %{py3dir}
|
|
|
aa1946 |
PYTHONPATH=$(pwd) nosetests-%{python3_version}
|
|
|
aa1946 |
popd
|
|
|
aa1946 |
%endif
|
|
|
aa1946 |
|
|
|
aa1946 |
%clean
|
|
|
aa1946 |
rm -rf %{buildroot}
|
|
|
aa1946 |
|
|
|
aa1946 |
|
|
|
aa1946 |
%files
|
|
|
aa1946 |
%defattr(-,root,root,-)
|
|
|
aa1946 |
%doc CHANGES LICENSE README.rst doc examples
|
|
|
aa1946 |
%{_bindir}/mako-render
|
|
|
aa1946 |
%{python_sitelib}/*
|
|
|
aa1946 |
|
|
|
aa1946 |
%if 0%{?with_python3}
|
|
|
aa1946 |
%files -n python3-mako
|
|
|
aa1946 |
%defattr(-,root,root,-)
|
|
|
aa1946 |
%doc CHANGES LICENSE README.rst doc examples
|
|
|
aa1946 |
%{_bindir}/python3-mako-render
|
|
|
aa1946 |
%{python3_sitelib}/*
|
|
|
aa1946 |
%endif
|
|
|
aa1946 |
|
|
|
aa1946 |
%changelog
|
|
|
477a50 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.8.1-2
|
|
|
477a50 |
- Mass rebuild 2013-12-27
|
|
|
477a50 |
|
|
|
aa1946 |
* Mon Jul 15 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.1-1
|
|
|
aa1946 |
- Update to 0.8.1
|
|
|
aa1946 |
|
|
|
aa1946 |
* Tue Apr 9 2013 Luke Macken <lmacken@redhat.com> - 0.7.3-1
|
|
|
aa1946 |
- Update to 0.7.3 (#784257)
|
|
|
aa1946 |
|
|
|
aa1946 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-6
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.0-5
|
|
|
aa1946 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
aa1946 |
|
|
|
aa1946 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.0-4
|
|
|
aa1946 |
- remove rhel logic from with_python3 conditional
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Tue Dec 13 2011 Luke Macken <lmacken@redhat.com> - 0.5.0-1
|
|
|
aa1946 |
- Update to 0.5.0
|
|
|
aa1946 |
|
|
|
aa1946 |
* Mon Sep 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-2
|
|
|
aa1946 |
- Require beaker to run unittests since its required at runtime
|
|
|
aa1946 |
- Fix license tag
|
|
|
aa1946 |
|
|
|
aa1946 |
* Mon Sep 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-1
|
|
|
aa1946 |
- Update to 0.4.2
|
|
|
aa1946 |
- Run unit tests on python3
|
|
|
aa1946 |
|
|
|
aa1946 |
* Thu Feb 24 2011 Luke Macken <lmacken@redhat.com> - 0.4.0-1
|
|
|
aa1946 |
- Update to 0.4.0 (#654779)
|
|
|
aa1946 |
|
|
|
aa1946 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Wed Feb 02 2011 Luke Macken <lmacken@redhat.com> - 0.3.6-1
|
|
|
aa1946 |
- Update to 0.3.6
|
|
|
aa1946 |
- Remove 2to3 patch
|
|
|
aa1946 |
|
|
|
aa1946 |
* Wed Oct 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.5-2
|
|
|
aa1946 |
- Use a patch from Debian submitted upstream to convert to python3 syntax
|
|
|
aa1946 |
|
|
|
aa1946 |
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 0.3.5-1
|
|
|
aa1946 |
- Update to 0.3.5 (#645063)
|
|
|
aa1946 |
|
|
|
aa1946 |
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.3.4-3
|
|
|
aa1946 |
- rebuild with python3.2
|
|
|
aa1946 |
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
aa1946 |
|
|
|
aa1946 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.4-2
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sun Jun 27 2010 Kyle VanderBeek <kylev@kylev.com> - 0.3.4-1
|
|
|
aa1946 |
- Update to 0.3.4 security fix release
|
|
|
aa1946 |
- Fix missing python3-beaker dependency
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sat Jun 5 2010 Kyle VanderBeek <kylev@kylev.com> - 0.3.3-1
|
|
|
aa1946 |
- Update to upstream 0.3.3
|
|
|
aa1946 |
|
|
|
aa1946 |
* Tue May 4 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.2-2
|
|
|
aa1946 |
- add python3 subpackage
|
|
|
aa1946 |
|
|
|
aa1946 |
* Tue May 04 2010 Luke Macken <lmacken@redhat.com> - 0.3.2-1
|
|
|
aa1946 |
- Update to 0.3.2
|
|
|
aa1946 |
- Run the test suite in %%check
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
|
|
|
aa1946 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
aa1946 |
|
|
|
aa1946 |
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> - 0.2.4-1
|
|
|
aa1946 |
- Update to 0.2.4
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.10-3
|
|
|
aa1946 |
- Rebuild for Python 2.6
|
|
|
aa1946 |
|
|
|
aa1946 |
* Sun May 11 2008 Kyle VanderBeek <kylev@kylev.com> - 0.1.10-2
|
|
|
aa1946 |
- Fix rpmlint warnings.
|
|
|
aa1946 |
- Add docs and examples.
|
|
|
aa1946 |
|
|
|
aa1946 |
* Wed Apr 9 2008 Kyle VanderBeek <kylev@kylev.com> - 0.1.10-1
|
|
|
aa1946 |
- Initial version.
|