|
|
d73382 |
%if 0%{?fedora} > 12
|
|
|
d73382 |
%global with_python3 1
|
|
|
d73382 |
%else
|
|
|
d73382 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
d73382 |
%endif
|
|
|
d73382 |
|
|
|
d73382 |
Name: python-tempita
|
|
|
d73382 |
Version: 0.5.1
|
|
|
545063 |
Release: 6%{?dist}
|
|
|
d73382 |
Summary: A very small text templating language
|
|
|
d73382 |
|
|
|
d73382 |
Group: Development/Languages
|
|
|
d73382 |
License: MIT
|
|
|
d73382 |
URL: http://pythonpaste.org/tempita/
|
|
|
d73382 |
Source0: http://pypi.python.org/packages/source/T/Tempita/Tempita-%{version}.tar.gz
|
|
|
d73382 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
d73382 |
|
|
|
d73382 |
BuildArch: noarch
|
|
|
d73382 |
%if 0%{?fedora} < 13
|
|
|
d73382 |
BuildRequires: python-setuptools-devel
|
|
|
d73382 |
%else
|
|
|
d73382 |
BuildRequires: python-setuptools
|
|
|
d73382 |
%endif
|
|
|
d73382 |
BuildRequires: python-nose
|
|
|
d73382 |
|
|
|
d73382 |
%if 0%{?with_python3}
|
|
|
d73382 |
BuildRequires: python3-devel
|
|
|
d73382 |
BuildRequires: python3-setuptools
|
|
|
d73382 |
%endif # if with_python3
|
|
|
d73382 |
|
|
|
d73382 |
%description
|
|
|
d73382 |
Tempita is a small templating language for text substitution.
|
|
|
d73382 |
|
|
|
d73382 |
%if 0%{?with_python3}
|
|
|
d73382 |
%package -n python3-tempita
|
|
|
d73382 |
Summary: A very small text templating language
|
|
|
d73382 |
Group: Development/Languages
|
|
|
d73382 |
# Without one of these there's no aes implementation which means there's no way to
|
|
|
d73382 |
# have encrypted cookies. This is a reduction in features over the python2 version.
|
|
|
d73382 |
# Currently there's no working python3 port for either:
|
|
|
d73382 |
# http://allmydata.org/trac/pycryptopp/ticket/35
|
|
|
d73382 |
# http://lists.dlitz.net/pipermail/pycrypto/2010q2/000253.html
|
|
|
d73382 |
#%if 0%{?fedora}
|
|
|
d73382 |
#Requires: python3-pycryptopp
|
|
|
d73382 |
#%else
|
|
|
d73382 |
#Requires: python3-crypto
|
|
|
d73382 |
#%endif
|
|
|
d73382 |
|
|
|
d73382 |
%description -n python3-tempita
|
|
|
d73382 |
Tempita is a small templating language for text substitution.
|
|
|
d73382 |
%endif # with_python3
|
|
|
d73382 |
|
|
|
d73382 |
|
|
|
d73382 |
%prep
|
|
|
d73382 |
%setup -q -n Tempita-%{version}
|
|
|
d73382 |
|
|
|
d73382 |
%if 0%{?with_python3}
|
|
|
d73382 |
rm -rf %{py3dir}
|
|
|
d73382 |
cp -a . %{py3dir}
|
|
|
d73382 |
%endif # with_python3
|
|
|
d73382 |
|
|
|
d73382 |
|
|
|
d73382 |
%build
|
|
|
d73382 |
%{__python} setup.py build
|
|
|
d73382 |
|
|
|
d73382 |
%if 0%{?with_python3}
|
|
|
d73382 |
pushd %{py3dir}
|
|
|
d73382 |
%{__python3} setup.py build
|
|
|
d73382 |
popd
|
|
|
d73382 |
%endif # with_python3
|
|
|
d73382 |
|
|
|
d73382 |
%install
|
|
|
d73382 |
%{__rm} -rf %{buildroot}
|
|
|
d73382 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
d73382 |
|
|
|
d73382 |
%if 0%{?with_python3}
|
|
|
d73382 |
pushd %{py3dir}
|
|
|
d73382 |
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
d73382 |
popd
|
|
|
d73382 |
%endif # with_python3
|
|
|
d73382 |
|
|
|
d73382 |
%clean
|
|
|
d73382 |
%{__rm} -rf %{buildroot}
|
|
|
d73382 |
|
|
|
d73382 |
|
|
|
d73382 |
%check
|
|
|
d73382 |
nosetests
|
|
|
d73382 |
|
|
|
d73382 |
|
|
|
d73382 |
%files
|
|
|
d73382 |
%defattr(-,root,root,-)
|
|
|
d73382 |
%{python_sitelib}/tempita/
|
|
|
d73382 |
%{python_sitelib}/*.egg-info
|
|
|
d73382 |
|
|
|
d73382 |
%if 0%{?with_python3}
|
|
|
d73382 |
%files -n python3-tempita
|
|
|
d73382 |
%defattr(-,root,root,-)
|
|
|
d73382 |
%{python3_sitelib}/tempita/
|
|
|
d73382 |
%{python3_sitelib}/*.egg-info
|
|
|
d73382 |
%endif
|
|
|
d73382 |
|
|
|
d73382 |
%changelog
|
|
|
545063 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.1-6
|
|
|
545063 |
- Mass rebuild 2013-12-27
|
|
|
545063 |
|
|
|
d73382 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.1-4
|
|
|
d73382 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
d73382 |
|
|
|
d73382 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.1-3
|
|
|
d73382 |
- remove rhel logic from with_python3 conditional
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Sun Jun 24 2012 Ricky Zhou <ricky@fedoraproject.org> - 0.5.1-1
|
|
|
d73382 |
- Update to 0.5.1.
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-8
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.4-6
|
|
|
d73382 |
- rebuild with python3.2
|
|
|
d73382 |
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
d73382 |
|
|
|
d73382 |
* Tue Aug 3 2010 Kyle VanderBeek <kylev@kylev.com> - 0.4-5
|
|
|
d73382 |
- Add python3-tempita subpackage.
|
|
|
d73382 |
|
|
|
d73382 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4-4
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Jun 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4-3
|
|
|
d73382 |
- Cosmetic fixes -- BR python-setuptools instead of python-setuptools-devel
|
|
|
d73382 |
- Conditionalize python_sitelib definition
|
|
|
d73382 |
- trailing slash for directory in %%files
|
|
|
d73382 |
|
|
|
d73382 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Mon Apr 20 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.4-1
|
|
|
d73382 |
- Upstream released a new version.
|
|
|
d73382 |
|
|
|
d73382 |
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.3-3
|
|
|
d73382 |
- Change define to global.
|
|
|
d73382 |
- Remove old >= 8 conditional.
|
|
|
d73382 |
- Remove unnecessary BuildRequires on python-devel.
|
|
|
d73382 |
|
|
|
d73382 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
|
|
|
d73382 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.3-1
|
|
|
d73382 |
- Upstream released a new version.
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-4
|
|
|
d73382 |
- Rebuild for Python 2.6
|
|
|
d73382 |
|
|
|
d73382 |
* Mon Jul 07 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.2-2
|
|
|
d73382 |
- Add %%check section.
|
|
|
d73382 |
|
|
|
d73382 |
* Sat Jun 14 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.2-1
|
|
|
d73382 |
- Initial RPM Package.
|