Update to 0.4.2
Run unit tests on python3
This commit is contained in:
parent
3ad00cd5b4
commit
dd27b20ff7
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ Mako-0.3.4.tar.gz
|
||||
Mako-0.3.5.tar.gz
|
||||
Mako-0.3.6.tar.gz
|
||||
Mako-0.4.0.tar.gz
|
||||
/Mako-0.4.2.tar.gz
|
||||
|
@ -1,11 +1,11 @@
|
||||
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
||||
%global with_python3 1
|
||||
%else
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%endif
|
||||
|
||||
Name: python-mako
|
||||
Version: 0.4.0
|
||||
Version: 0.4.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Mako template library for Python
|
||||
|
||||
@ -16,13 +16,16 @@ URL: http://www.makotemplates.org/
|
||||
Source0: http://www.makotemplates.org/downloads/Mako-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-setuptools-devel python-nose python-markupsafe
|
||||
BuildRequires: python-setuptools python-nose python-markupsafe
|
||||
Requires: python-beaker python-markupsafe
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-markupsafe
|
||||
%if 0%{?fedora} > 14
|
||||
BuildRequires: python3-nose
|
||||
%endif
|
||||
BuildRequires: /usr/bin/2to3
|
||||
%endif # if with_python3
|
||||
|
||||
@ -66,6 +69,7 @@ cp -a . %{py3dir}
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
2to3 --no-diffs -w mako test
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
%endif # with_python3
|
||||
@ -76,12 +80,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
mv $RPM_BUILD_ROOT/%{_bindir}/mako-render $RPM_BUILD_ROOT/%{_bindir}/python3-mako-render
|
||||
popd
|
||||
%endif # with_python3
|
||||
|
||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
|
||||
# These are supporting files for building the docs. Also, they
|
||||
# contain files licensed GPLv2 or BSD which confuses the licensing
|
||||
@ -91,6 +95,11 @@ rm -rf doc/build
|
||||
%check
|
||||
PYTHONPATH=$(pwd) nosetests
|
||||
|
||||
%if 0%{?with_python3} && 0%{?fedora} > 14
|
||||
pushd %{py3dir}
|
||||
PYTHONPATH=$(pwd) nosetests-3.2
|
||||
popd
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -110,6 +119,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Sep 5 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.1-1
|
||||
- Update to 0.4.2
|
||||
- Run unit tests on python3
|
||||
|
||||
* Thu Feb 24 2011 Luke Macken <lmacken@redhat.com> - 0.4.0-1
|
||||
- Update to 0.4.0 (#654779)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user