61b919
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
61b919
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
61b919
Luke Macken b5066c
%global rcver rc1
b4dbfe
61b919
Name:           TurboGears2
b4dbfe
Version:        2.1
Luke Macken 9ab094
Release:        0.4.%{rcver}%{?dist}
Luke Macken b5066c
Summary:        Next generation front-to-back web development megaframework built on Pylons
61b919
61b919
Group:          Development/Languages
61b919
License:        MIT
61b919
URL:            http://www.turbogears.org
Luke Macken b5066c
Luke Macken b5066c
# Snapshot generated from mercurial tip 1048 with `hg backout -r 1046` to
Luke Macken b5066c
# remove Kajiki requirements
Luke Macken b5066c
Source0:        http://www.turbogears.org/2.1/downloads/%{version}/%{name}-%{version}%{rcver}.tar.bz2
Luke Macken 9ab094
# A patch from changeset 1048 to bring our package up to speed with RC1
Luke Macken 9ab094
Patch0:         %{name}-helpers-r1048.patch
61b919
61b919
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
61b919
BuildArch:      noarch
61b919
61b919
BuildRequires:  python-devel python-setuptools-devel
61b919
BuildRequires:  python-nose python-coverage python-paver python-pylons
61b919
BuildRequires:  python-turbokid python-zope-sqlalchemy python-jinja2 python-toscawidgets python-genshi
61b919
BuildRequires:  python-repoze-what python-repoze-who-testutil python-repoze-what-pylons
61b919
BuildRequires:  python-webflash python-tw-forms python-turbojson python-repoze-what-quickstart
Luke Macken b5066c
BuildRequires:  python-chameleon python-repoze-tm2 python-simplegeneric
61b919
61b919
%{?el5:BuildRequires: python-wsgiref}
61b919
Luke Macken b5066c
Requires:       python-pylons
61b919
Requires:       python-webflash >= 0.1-0.a8
61b919
Requires:       python-weberror >= 0.10.1
61b919
Requires:       python-genshi >= 0.5.1
61b919
Requires:       python-zope-sqlalchemy
61b919
Requires:       python-toscawidgets >= 0.9.4
61b919
Requires:       python-turbojson >= 1.2.1
61b919
Requires:       python-repoze-tm2 >= 1.0-0.a4
61b919
Requires:       python-repoze-what-pylons >= 1.0-0.rc3
Luke Macken b5066c
Requires:       python-simplegeneric
61b919
61b919
61b919
%description
Luke Macken b5066c
TurboGears brings together a best of breed python tools to create a flexible,
Luke Macken b5066c
full featured, and easy to use web framework.
61b919
Luke Macken b5066c
TurboGears 2 provides and integrated and well tested set of tools for
Luke Macken b5066c
everything you need to build dynamic, database driven applications.  It
Luke Macken b5066c
provides a full range of tools for front end javascript develeopment, back
Luke Macken b5066c
database development and everything in between:
61b919
Luke Macken b5066c
 * dynamic javascript powered widgets ToscaWidgets
Luke Macken b5066c
 * automatic JSON generation from your controllers
Luke Macken b5066c
 * powerfull, designer friendly XHTML basted templating (Genshi)
Luke Macken b5066c
 * object or route based URL dispatching
Luke Macken b5066c
 * powerful Object Relational Mappers (SQLAlchemy)
61b919
61b919
61b919
%prep
Luke Macken b5066c
%setup -q -n %{name}-%{version}%{rcver}
Luke Macken 9ab094
%patch0 -p1 -b .helpers
61b919
61b919
61b919
%build
61b919
python setup.py build
61b919
61b919
%install
61b919
rm -rf %{buildroot}
61b919
python setup.py install --skip-build --root %{buildroot}
61b919
Luke Macken b5066c
%check
Luke Macken b5066c
# Run the test suite, but skip 1 test that still doesn't work with Pylons 1.0
Luke Macken b5066c
PYTHONPATH=$(pwd) nosetests -q --exclude=test_304
Luke Macken b5066c
rm -fr %{buildroot}%{python_sitelib}/tests
61b919
61b919
%clean
61b919
rm -rf %{buildroot}
61b919
61b919
%files
61b919
%defattr(0644,root,root,0755)
61b919
%doc README.txt
Luke Macken b5066c
%{python_sitelib}/%{name}-%{version}%{rcver}-py%{pyver}.egg-info/
61b919
%{python_sitelib}/tg/
61b919
61b919
61b919
%changelog
Luke Macken 9ab094
* Mon Oct 18 2010 Luke Macken <lmacken@redhat.com> - 2.1-0.4.rc1
Luke Macken 9ab094
- Add a patch to fix a helpers import issue
Luke Macken 9ab094
- This brings our package up to speed with the latest RC1 release
Luke Macken 9ab094
Luke Macken b5066c
* Tue Sep 28 2010 Luke Macken <lmacken@redhat.com> - 2.1-0.3.rc1.dev1048
Luke Macken b5066c
- Pre-RC1 development snapshot
Luke Macken b5066c
- Remove strict Pylons<0.9.7 requirement
Luke Macken b5066c
- Get the test suite running
Luke Macken b5066c
- Pull in python-chameleon for the test suite
Luke Macken b5066c
- Require python-simplegeneric
Luke Macken b5066c
- Update the description
Luke Macken b5066c
98094d
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.1-0.2.b2
98094d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
98094d
b4dbfe
* Wed May 05 2010 Luke Macken <lmacken@redhat.com> - 2.1-0.1.b2
b4dbfe
- Update to 2.1b2
b4dbfe
22121e
* Mon Jan 11 2010 Luke Macken <lmacken@redhat.com> - 2.0.3-4
22121e
- Fix the source URL
22121e
61b919
* Mon Sep 14 2009 Luke Macken <lmacken@redhat.com> - 2.0.3-3
61b919
- Tweak our python-wsgiref conditional for EL5
61b919
61b919
* Tue Sep 01 2009 Luke Macken <lmacken@redhat.com> - 2.0.3-2
61b919
- Remove the SQLAlchemy requirement, as python-zope-sqlalchemy
61b919
  is now set to include the appropriate version
61b919
61b919
* Wed Aug 12 2009 Luke Macken <lmacken@redhat.com> - 2.0.3-1
61b919
- 2.0.3
61b919
61b919
* Sat Jun 27 2009 Luke Macken <lmacken@redhat.com> 2.0.1-1
61b919
- 2.0.1
61b919
- Bump our ToscaWigdets requirement to 0.9.4
61b919
- Remove TurboGears2-custom-content-type.patch, which is upstream
61b919
61b919
* Sat Jun 06 2009 Luke Macken <lmacken@redhat.com> 2.0-4
61b919
- Require the new python-sqlalchemy0.5 package
61b919
61b919
* Thu Jun 04 2009 Luke Macken <lmacken@redhat.com> 2.0-3
61b919
- Add a patch to fix custom content types.
61b919
  http://trac.turbogears.org/ticket/2280
61b919
61b919
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 2.0-2
61b919
- Conditionally include wsgiref
61b919
61b919
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> 2.0-1
61b919
- Update to 2.0 final.
61b919
- Add python-repoze-what-pylons and python-webflash to the BuildRequires
61b919
- Disable the test suite until we package chameleon.genshi
61b919
61b919
* Tue Oct 28 2008 Luke Macken <lmacken@redhat.com> 1.9.7.0.3.b1dev.r5627
61b919
- Update to a svn snapshot to support tgext.authorization instead of
61b919
  tg.ext.repoze.who
61b919
61b919
* Mon Oct 27 2008 Luke Macken <lmacken@redhat.com> 1.9.7-0.2.b1
61b919
- Update to 1.9.7b1
61b919
61b919
* Tue Oct 21 2008 Luke Macken <lmacken@redhat.com> 1.9.7-0.1.a5dev.r5564
61b919
- Initial packaging of TurboGears2 for Fedora.