[packages/python3-Mako] - python-Mako.spec updated to 1.3.9 for python 3.8+; moved mako-render symlink here

qboosh qboosh at pld-linux.org
Sat Mar 15 17:28:58 CET 2025


commit 8eac5d082bcae51d3ebe257a06e16ae6e99fd5dc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 15 17:01:06 2025 +0100

    - python-Mako.spec updated to 1.3.9 for python 3.8+; moved mako-render symlink here

 python-Mako.spec  | 161 ------------------------------------------------------
 python3-Mako.spec |  90 ++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 161 deletions(-)
---
diff --git a/python-Mako.spec b/python-Mako.spec
deleted file mode 100644
index 2c874e0..0000000
--- a/python-Mako.spec
+++ /dev/null
@@ -1,161 +0,0 @@
-# TODO: beaker, dogpile.cache, lingua for tests
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-%bcond_without	tests	# unit tests
-
-%define		fname	Mako
-Summary:	Templating system for Python
-Summary(pl.UTF-8):	System szablonów dla języka Python
-Name:		python-Mako
-# keep 1.1.x here for python2 support
-Version:	1.1.6
-Release:	6
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/mako/
-Source0:	https://files.pythonhosted.org/packages/source/M/Mako/Mako-%{version}.tar.gz
-# Source0-md5:	6d7ccbc372ec6d87113f34d9e8fc65d1
-URL:		https://www.makotemplates.org/
-%if %{with python2}
-BuildRequires:	python >= 1:2.7
-BuildRequires:	python-devel >= 1:2.7
-# import timeit
-BuildRequires:	python-devel-tools >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-babel
-BuildRequires:	python-markupsafe >= 0.9.2
-BuildRequires:	python-mock
-BuildRequires:	python-pygments >= 1.4
-BuildRequires:	python-pytest >= 3.1.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3 >= 1:3.4
-BuildRequires:	python3-devel >= 1:3.4
-# import timeit
-BuildRequires:	python3-devel-tools >= 1:3.4
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-babel
-BuildRequires:	python3-markupsafe >= 0.9.2
-BuildRequires:	python3-pygments >= 1.4
-BuildRequires:	python3-pytest >= 3.1.0
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.6
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Mako is a template library written in Python. It provides a familiar,
-non-XML syntax which compiles into Python modules for maximum
-performance.
-
-%description -l pl.UTF-8
-Mako jest biblioteką szablonów napisaną w języku Python. Zapewnia
-przyjazną, nie XML-ową składnię, która jest kompilowana do modułów
-Pythona dla zwiększenia wydajności.
-
-%package -n python3-Mako
-Summary:	Templating system for Python
-Summary(pl.UTF-8):	System szablonów dla języka Python
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
-
-%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.
-
-%description -n python3-Mako -l pl.UTF-8
-Mako jest biblioteką szablonów napisaną w języku Python. Zapewnia
-przyjazną, nie XML-ową składnię, która jest kompilowana do modułów
-Pythona dla zwiększenia wydajności.
-
-%package doc
-Summary:	Documentation for Python Mako module
-Summary(pl.UTF-8):	Dokumentacja do modułu Pythona Mako
-Group:		Documentation
-
-%description doc
-Documentation for Python Mako module.
-
-%description doc -l pl.UTF-8
-Dokumentacja do modułu Pythona Mako.
-
-%prep
-%setup -q -n Mako-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest test
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest test
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-%if %{with python2}
-%py_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/mako-render{,-2}
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/mako-render{,-3}
-%endif
-
-%if %{with python2}
-ln -sf mako-render-2 $RPM_BUILD_ROOT%{_bindir}/mako-render
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS CHANGES LICENSE README.rst
-%attr(755,root,root) %{_bindir}/mako-render
-%attr(755,root,root) %{_bindir}/mako-render-2
-%{py_sitescriptdir}/mako
-%{py_sitescriptdir}/Mako-%{version}-py*.egg-info
-%{_examplesdir}/%{name}-%{version}
-%endif
-
-%if %{with python3}
-%files -n python3-Mako
-%defattr(644,root,root,755)
-%doc CHANGES LICENSE README.rst
-%attr(755,root,root) %{_bindir}/mako-render-3
-%{py3_sitescriptdir}/mako
-%{py3_sitescriptdir}/Mako-%{version}-py*.egg-info
-%endif
-
-%files doc
-%defattr(644,root,root,755)
-%doc doc/{_static,*.html,*.js}
diff --git a/python3-Mako.spec b/python3-Mako.spec
new file mode 100644
index 0000000..f824259
--- /dev/null
+++ b/python3-Mako.spec
@@ -0,0 +1,90 @@
+# TODO: beaker, dogpile.cache, lingua<4 for tests
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Templating system for Python
+Summary(pl.UTF-8):	System szablonów dla języka Python
+Name:		python3-Mako
+Version:	1.3.9
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/mako/
+Source0:	https://files.pythonhosted.org/packages/source/M/Mako/mako-%{version}.tar.gz
+# Source0-md5:	28b1b70e01a1240c90e97fab2f17e349
+URL:		https://www.makotemplates.org/
+BuildRequires:	python3 >= 1:3.8
+BuildRequires:	python3-devel >= 1:3.8
+# import timeit
+BuildRequires:	python3-devel-tools >= 1:3.8
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools >= 1:47
+%if %{with tests}
+BuildRequires:	python3-babel
+BuildRequires:	python3-markupsafe >= 0.9.2
+BuildRequires:	python3-pygments >= 1.4
+BuildRequires:	python3-pytest >= 3.1.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.4
+Conflicts:	python-Mako < 1.1.6-7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mako is a template library written in Python. It provides a familiar,
+non-XML syntax which compiles into Python modules for maximum
+performance.
+
+%description -l pl.UTF-8
+Mako jest biblioteką szablonów napisaną w języku Python. Zapewnia
+przyjazną, nie XML-ową składnię, która jest kompilowana do modułów
+Pythona dla zwiększenia wydajności.
+
+%package doc
+Summary:	Documentation for Python Mako module
+Summary(pl.UTF-8):	Dokumentacja do modułu Pythona Mako
+Group:		Documentation
+
+%description doc
+Documentation for Python Mako module.
+
+%description doc -l pl.UTF-8
+Dokumentacja do modułu Pythona Mako.
+
+%prep
+%setup -q -n mako-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/mako-render{,-3}
+ln -sf mako-render-3 $RPM_BUILD_ROOT%{_bindir}/mako-render
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGES LICENSE README.rst
+%attr(755,root,root) %{_bindir}/mako-render
+%attr(755,root,root) %{_bindir}/mako-render-3
+%{py3_sitescriptdir}/mako
+%{py3_sitescriptdir}/Mako-%{version}-py*.egg-info
+
+%files doc
+%defattr(644,root,root,755)
+%doc doc/{_static,*.html,*.js}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-Mako.git/commitdiff/8eac5d082bcae51d3ebe257a06e16ae6e99fd5dc



More information about the pld-cvs-commit mailing list