%define tarname Tempita Summary: A very small text templating language Name: python-tempita Version: 0.5.2 Release: %mkrel 7 Source0: https://pypi.python.org/packages/source/T/%{tarname}/%{tarname}-%{version}.tar.gz License: MIT Group: Development/Python URL: http://pythonpaste.org/tempita/ BuildArch: noarch BuildRequires: python-setuptools %description Tempita is a small templating language for text substitution. This isn't meant to be the Next Big Thing in templating; it's just a handy little templating language for when your project outgrows string.Template or % substitution. It's small, it embeds Python in strings, and it doesn't do much else. %package -n python3-tempita Summary: A very small text templating language Group: Development/Python BuildRequires: python3-setuptools %description -n python3-tempita Tempita is a small templating language for text substitution. This isn't meant to be the Next Big Thing in templating; it's just a handy little templating language for when your project outgrows string.Template or % substitution. It's small, it embeds Python in strings, and it doesn't do much else. This package contains the Tempita module built for use with python3. %prep %setup -q -n %{tarname}-%{version} rm -rf *.egg-info rm -rf %{py3dir} cp -a . %{py3dir} %build CFLAGS="%{optflags}" %{__python} setup.py build pushd %{py3dir} CFLAGS="%{optflags}" %{__python3} setup.py build popd %install pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} popd %{__python} setup.py install --skip-build --root %{buildroot} %files %{python_sitelib}/tempita %{python_sitelib}/Tempita-%{version}*.egg-info %files -n python3-tempita %{python3_sitelib}/tempita %{python3_sitelib}/Tempita-%{version}*.egg-info %changelog * Fri Feb 19 2016 umeabot <umeabot> 0.5.2-7.mga6 + Revision: 970946 - Mageia 6 Mass Rebuild * Sat Oct 10 2015 tv <tv> 0.5.2-6.mga6 + Revision: 888875 - rebuild for python 3.5 * Wed Oct 15 2014 umeabot <umeabot> 0.5.2-5.mga5 + Revision: 748404 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 0.5.2-4.mga5 + Revision: 729471 - rebuild for missing pythoneggs deps * Tue Sep 16 2014 umeabot <umeabot> 0.5.2-3.mga5 + Revision: 688378 - Mageia 5 Mass Rebuild * Sat May 31 2014 pterjan <pterjan> 0.5.2-2.mga5 + Revision: 629056 - Rebuild for new Python * Sat Mar 08 2014 philippem <philippem> 0.5.2-1.mga5 + Revision: 601319 - update to 0.5.2 * Tue Oct 22 2013 umeabot <umeabot> 0.5.1-6.mga4 + Revision: 544305 - Mageia 4 Mass Rebuild * Tue Oct 15 2013 pterjan <pterjan> 0.5.1-5.mga4 + Revision: 499530 - Rebuild to add different pythonegg provides for python 2 and 3 * Fri Aug 16 2013 philippem <philippem> 0.5.1-4.mga4 + Revision: 466946 - add Python 3 * Sun Jan 13 2013 umeabot <umeabot> 0.5.1-3.mga3 + Revision: 379557 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Jul 04 2011 philippem <philippem> 0.5.1-2.mga2 + Revision: 118414 - imported package python-tempita * Mon Jul 04 2011 Philippe Makowski <philippem@mageia.org> - import into Mageia * Mon Jun 13 2011 Lev Givon <lev@mandriva.org> 0.5.1-1mdv2010.1 + Revision: 684945 - Update to 0.5.1. * Thu Mar 31 2011 Lev Givon <lev@mandriva.org> 0.5-0.dev.0 + Revision: 649453 - import python-tempita