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