%{?python_enable_dependency_generator} %global with_python3 1 Name: pystache Version: 0.5.4 Release: 13%{?dist} Summary: Mustache for Python License: MIT URL: http://pypi.python.org/pypi/%{name}/ Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-simplejson %endif # if with_python3 %global _description\ Inspired by ctemplate and et, Mustache is a framework-agnostic way to render\ logic-free views.\ \ As ctemplates says, "It emphasizes separating logic from presentation: it is\ impossible to embed application logic in this template language."\ %description %_description %if 0%{?with_python3} %package -n python3-pystache Summary: Mustache for Python Requires: python3-simplejson %{?python_provide:%python_provide python3-pystache} %description -n python3-pystache Inspired by ctemplate and et, Mustache is a framework-agnostic way to render logic-free views. As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language." %endif # with_python3 %prep %setup -q rm -fvr pystache.egg-info %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %endif # with_python3 %build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif # with_python3 %install %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT mv %{buildroot}%{_bindir}/pystache %{buildroot}%{_bindir}/pystache-3 mv %{buildroot}%{_bindir}/pystache-test %{buildroot}%{_bindir}/pystache-test-3 popd %endif # with_python3 %check #%{__python2} -m pystache.commands.test # tests fail for py3 for some reason #%if 0%{?with_python3} #pushd %{py3dir} #%{__python3} -m pystache.commands.test #popd #%endif # with_python3 %if 0%{?with_python3} %files -n python3-pystache %license LICENSE %doc PKG-INFO HISTORY.md README.md %{python3_sitelib}/%{name}/ %{python3_sitelib}/%{name}-%{version}-py?.?.egg-info %{_bindir}/pystache-3 %{_bindir}/pystache-test-3 %endif # with_python3 %changelog * Mon Aug 19 2019 Miro Hrončok - 0.5.4-13 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 24 2018 Ankur Sinha - 0.5.4-10 - Make improvements to spec * Fri Jul 20 2018 Ankur Sinha - 0.5.4-9 - Rebuild for https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package * Fri Jul 13 2018 Fedora Release Engineering - 0.5.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.5.4-7 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 0.5.4-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.5.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.5.4-4 - Python 2 binary package renamed to python2-pystache See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.5.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 24 2017 Jan Beran 0.5.4-2 - Fix of missing Python 3 version executables * Sat Apr 8 2017 Peter Robinson 0.5.4-1 - Update to 0.5.4 - Use %%license * Sat Feb 11 2017 Fedora Release Engineering - 0.5.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.5.3-9 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5.3-8 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.5.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.5.3-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.5.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 14 2014 Bohuslav Kabrda - 0.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Sun Aug 04 2013 Fedora Release Engineering - 0.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun May 19 2013 Ankur Sinha 0.5.3-1 - Update to 0.5.3 - Add py3 support * Thu Feb 14 2013 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Oct 12 2012 Ankur Sinha 0.5.2-1 - Update to latest upstream version #864264 * Sat Jul 21 2012 Fedora Release Engineering - 0.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 06 2012 Ankur Sinha - 0.3.1-2 - spec bump for gcc 4.7 rebuild * Wed Oct 26 2011 Ankur Sinha - 0.3.1-1 - Initial rpmbuild