f5268f9
%global with_python3 1
c8ef2d9
c8ef2d9
Name:           python-tempita
50fc6e1
Version:        0.5.1
fe2681e
Release:        12%{?dist}
c8ef2d9
Summary:        A very small text templating language
c8ef2d9
c8ef2d9
Group:          Development/Languages
c8ef2d9
License:        MIT
c8ef2d9
URL:            http://pythonpaste.org/tempita/
f1ff227
Source0:        http://pypi.python.org/packages/source/T/Tempita/Tempita-%{version}.tar.gz
c8ef2d9
c8ef2d9
BuildArch:      noarch
0308168
BuildRequires:  python-setuptools
daecc05
BuildRequires:  python-nose
c8ef2d9
f5268f9
%if 0%{?with_python3}
f5268f9
BuildRequires: python3-devel
f5268f9
BuildRequires: python3-setuptools
f5268f9
%endif # if with_python3
f5268f9
c8ef2d9
%description
c8ef2d9
Tempita is a small templating language for text substitution.
c8ef2d9
f5268f9
%if 0%{?with_python3}
f5268f9
%package -n python3-tempita
f5268f9
Summary:        A very small text templating language
f5268f9
Group:          Development/Languages
f5268f9
# Without one of these there's no aes implementation which means there's no way to
f5268f9
# have encrypted cookies.  This is a reduction in features over the python2 version.
f5268f9
# Currently there's no working python3 port for either:
f5268f9
# http://allmydata.org/trac/pycryptopp/ticket/35
f5268f9
# http://lists.dlitz.net/pipermail/pycrypto/2010q2/000253.html
f5268f9
#%if 0%{?fedora}
f5268f9
#Requires: python3-pycryptopp
f5268f9
#%else
f5268f9
#Requires: python3-crypto
f5268f9
#%endif
f5268f9
f5268f9
%description -n python3-tempita
f5268f9
Tempita is a small templating language for text substitution.
f5268f9
%endif # with_python3
f5268f9
f5268f9
c8ef2d9
%prep
c8ef2d9
%setup -q -n Tempita-%{version}
f5268f9
f5268f9
%if 0%{?with_python3}
f5268f9
rm -rf %{py3dir}
f5268f9
cp -a . %{py3dir}
f5268f9
%endif # with_python3
c8ef2d9
c8ef2d9
c8ef2d9
%build
c8ef2d9
%{__python} setup.py build
c8ef2d9
f5268f9
%if 0%{?with_python3}
f5268f9
pushd %{py3dir}
f5268f9
%{__python3} setup.py build
f5268f9
popd
f5268f9
%endif # with_python3
c8ef2d9
c8ef2d9
%install
c8ef2d9
%{__python} setup.py install --skip-build --root %{buildroot}
c8ef2d9
f5268f9
%if 0%{?with_python3}
f5268f9
pushd %{py3dir}
f5268f9
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
f5268f9
popd
f5268f9
%endif # with_python3
0308168
c8ef2d9
daecc05
%check
f1ff227
nosetests
daecc05
daecc05
c8ef2d9
%files
0308168
%{python_sitelib}/tempita/
c8ef2d9
%{python_sitelib}/*.egg-info
c8ef2d9
f5268f9
%if 0%{?with_python3}
f5268f9
%files -n python3-tempita
f5268f9
%{python3_sitelib}/tempita/
f5268f9
%{python3_sitelib}/*.egg-info
f5268f9
%endif
c8ef2d9
c8ef2d9
%changelog
fe2681e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-12
fe2681e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fe2681e
b6fdcb1
* Thu Jan 28 2016 Dan HorĂ¡k <dan[at]danny.cz> - 0.5.1-11
b6fdcb1
- spec cleanup
b6fdcb1
2025adc
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-10
2025adc
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2025adc
6801002
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-9
6801002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6801002
cee1950
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-8
cee1950
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cee1950
accd294
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.5.1-7
accd294
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
accd294
37f02c6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-6
37f02c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
37f02c6
3a2e892
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
3a2e892
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3a2e892
48184e2
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.1-4
48184e2
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
48184e2
0b55a28
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.1-3
0b55a28
- remove rhel logic from with_python3 conditional
0b55a28
bab6d50
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
bab6d50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bab6d50
50fc6e1
* Sun Jun 24 2012 Ricky Zhou <ricky@fedoraproject.org> - 0.5.1-1
50fc6e1
- Update to 0.5.1.
50fc6e1
1ad5b35
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-8
1ad5b35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1ad5b35
2a5d701
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
2a5d701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2a5d701
c9c0b73
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.4-6
c9c0b73
- rebuild with python3.2
c9c0b73
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
c9c0b73
f5268f9
* Tue Aug  3 2010 Kyle VanderBeek <kylev@kylev.com> - 0.4-5
f5268f9
- Add python3-tempita subpackage.
f5268f9
fd8ec37
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4-4
fd8ec37
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
fd8ec37
0308168
* Sat Jun 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4-3
0308168
- Cosmetic fixes -- BR python-setuptools instead of python-setuptools-devel
0308168
- Conditionalize python_sitelib definition
0308168
- trailing slash for directory in %%files
0308168
f8472cd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
f8472cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f8472cd
f1ff227
* Mon Apr 20 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.4-1
f1ff227
- Upstream released a new version.
f1ff227
d032628
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.3-3
d032628
- Change define to global.
d032628
- Remove old >= 8 conditional.
d032628
- Remove unnecessary BuildRequires on python-devel.
d032628
faface7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
faface7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
faface7
bb2ad2b
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.3-1
bb2ad2b
- Upstream released a new version.
1d1ec7a
cb80974
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-4
cb80974
- Rebuild for Python 2.6
cb80974
daecc05
* Mon Jul 07 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.2-2
daecc05
- Add %%check section.
daecc05
c8ef2d9
* Sat Jun 14 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.2-1
c8ef2d9
- Initial RPM Package.