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
104d4b5
%global betaver b2
104d4b5
61b919c
Name:           TurboGears2
104d4b5
Version:        2.1
104d4b5
Release:        0.1.%{betaver}%{?dist}
61b919c
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
104d4b5
Source0:        http://www.turbogears.org/2.1/downloads/%{version}/%{name}-%{version}%{betaver}.tar.gz
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
61b919c
61b919c
%{?el5:BuildRequires: python-wsgiref}
61b919c
61b919c
Requires:       python-pylons >= 0.9.7
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
61b919c
61b919c
61b919c
%description
61b919c
TurboGears2, provides a comprehensive web development toolkit.  It is designed
61b919c
to help you create the basic outline of a database-driven web application in
61b919c
minutes.
61b919c
61b919c
TurboGears provides you with sane default for designer friendly templates,
61b919c
tools to make  AJAX, and dynamic Javascript driven pages easy on both the
61b919c
browser side and the server side.
61b919c
61b919c
TurboGears is a project that is built upon a foundation of reuse and building
61b919c
up.  In retrospect, much of the code that was home grown in the TurboGears
61b919c
project should have been released as independent projects that integrate with
61b919c
TurboGears.
61b919c
61b919c
61b919c
%prep
104d4b5
%setup -q -n %{name}-%{version}%{betaver}
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
104d4b5
#%check
104d4b5
#PYTHONPATH=$(pwd) nosetests
61b919c
61b919c
%clean
61b919c
rm -rf %{buildroot}
61b919c
61b919c
%files
61b919c
%defattr(0644,root,root,0755)
61b919c
%doc README.txt
104d4b5
%{python_sitelib}/%{name}-%{version}%{betaver}-py%{pyver}.egg-info/
61b919c
%{python_sitelib}/tg/
61b919c
61b919c
61b919c
%changelog
104d4b5
* Wed May 05 2010 Luke Macken <lmacken@redhat.com> - 2.1-0.1.b2
104d4b5
- Update to 2.1b2
104d4b5
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.