[packages/python3-tempita] - python-Tempita.spec updated to 0.6.0 for python 3+

qboosh qboosh at pld-linux.org
Sun Nov 2 20:29:41 CET 2025


commit 49a3126582a3e8d9a037feba6135ef70456c3043
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 2 20:29:41 2025 +0100

    - python-Tempita.spec updated to 0.6.0 for python 3+

 python-Tempita.spec  | 99 ----------------------------------------------------
 python3-tempita.spec | 52 +++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 99 deletions(-)
---
diff --git a/python-Tempita.spec b/python-Tempita.spec
deleted file mode 100644
index 3217365..0000000
--- a/python-Tempita.spec
+++ /dev/null
@@ -1,99 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define 	module	Tempita
-Summary:	A very small text templating language
-Summary(pl.UTF-8):	Bardzo mały język szablonów tekstu
-Name:		python-%{module}
-Version:	0.5.2
-Release:	4
-License:	MIT
-Group:		Development/Languages/Python
-Source0:	https://files.pythonhosted.org/packages/source/T/Tempita/%{module}-%{version}.tar.gz
-# Source0-md5:	4c2f17bb9d481821c41b6fbee904cea1
-URL:		https://pypi.org/project/Tempita/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.5
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-fissix
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-setuptools
-BuildRequires:	sed >= 4.0
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-A very small text templating language.
-
-%description -l pl.UTF-8
-Bardzo mały język szablonów tekstu.
-
-%package -n python3-Tempita
-Summary:	A very small text templating language
-Summary(pl.UTF-8):	Bardzo mały język szablonów tekstu
-Group:		Development/Languages/Python
-
-%description -n python3-Tempita
-A very small text templating language.
-
-%description -n python3-Tempita -l pl.UTF-8
-Bardzo mały język szablonów tekstu.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%if %{with python3}
-# 2to3 no longer supported by setuptools
-install -d py3
-cp -p setup.cfg setup.py py3
-%{__sed} -i -e '/use_2to3=/d' py3/setup.py
-%{__python3} -m fissix tempita -o py3/tempita -n -W
-%endif
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-cd py3
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-cd py3
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%{py_sitescriptdir}/tempita
-%{py_sitescriptdir}/Tempita-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-Tempita
-%defattr(644,root,root,755)
-%{py3_sitescriptdir}/tempita
-%{py3_sitescriptdir}/Tempita-%{version}-py*.egg-info
-%endif
diff --git a/python3-tempita.spec b/python3-tempita.spec
new file mode 100644
index 0000000..e75209c
--- /dev/null
+++ b/python3-tempita.spec
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (some file missing)
+
+Summary:	A very small text templating language
+Summary(pl.UTF-8):	Bardzo mały język szablonów tekstu
+Name:		python3-tempita
+Version:	0.6.0
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+#Source0Download: https://pypi.org/simple/tempita/
+Source0:	https://files.pythonhosted.org/packages/source/t/tempita/tempita-%{version}.tar.gz
+# Source0-md5:	ca13cc92318415bb560fb874e673a355
+URL:		https://pypi.org/project/Tempita/
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Obsoletes:	python3-Tempita < 0.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A very small text templating language.
+
+%description -l pl.UTF-8
+Bardzo mały język szablonów tekstu.
+
+%prep
+%setup -q -n tempita-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/tempita
+%{py3_sitescriptdir}/Tempita-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-tempita.git/commitdiff/49a3126582a3e8d9a037feba6135ef70456c3043



More information about the pld-cvs-commit mailing list