[packages/python-Mako] - python3 package moved to python3-Mako.spec, mako-render symlink moved to python3; release 7
qboosh
qboosh at pld-linux.org
Sat Mar 15 17:31:36 CET 2025
commit 11c32bc6f82dfb27680abac529702cb4fbd16ec9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 15 17:03:58 2025 +0100
- python3 package moved to python3-Mako.spec, mako-render symlink moved to python3; release 7
python-Mako.spec | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/python-Mako.spec b/python-Mako.spec
index 2c874e0..c391f8c 100644
--- a/python-Mako.spec
+++ b/python-Mako.spec
@@ -2,7 +2,7 @@
#
# Conditional build:
%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with python3 # CPython 3.x module (built from python3-Mako.spec)
%bcond_without tests # unit tests
%define fname Mako
@@ -11,7 +11,7 @@ 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
+Release: 7
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/mako/
@@ -67,6 +67,7 @@ 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
+Conflicts: python-Mako < 1.1.6-7
%description -n python3-Mako
Mako is a template library written in Python. It provides a familiar,
@@ -127,10 +128,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%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
+ln -sf mako-render-3 $RPM_BUILD_ROOT%{_bindir}/mako-render
%endif
%clean
@@ -140,7 +138,6 @@ 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-2
%{py_sitescriptdir}/mako
%{py_sitescriptdir}/Mako-%{version}-py*.egg-info
@@ -151,6 +148,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-Mako
%defattr(644,root,root,755)
%doc 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-Mako.git/commitdiff/11c32bc6f82dfb27680abac529702cb4fbd16ec9
More information about the pld-cvs-commit
mailing list