d52dbc8
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
d52dbc8
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
d52dbc8
fd6f8d9
%global betaver b2
fd6f8d9
d52dbc8
Name:           TurboGears2
fd6f8d9
Version:        2.1
fd6f8d9
Release:        0.1.%{betaver}%{?dist}
d52dbc8
Summary:        Next generation Front-to-back web development megaframework built on Pylons
d52dbc8
d52dbc8
Group:          Development/Languages
d52dbc8
License:        MIT
d52dbc8
URL:            http://www.turbogears.org
fd6f8d9
Source0:        http://www.turbogears.org/2.1/downloads/%{version}/%{name}-%{version}%{betaver}.tar.gz
d52dbc8
d52dbc8
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d52dbc8
BuildArch:      noarch
d52dbc8
d52dbc8
BuildRequires:  python-devel python-setuptools-devel
d52dbc8
BuildRequires:  python-nose python-coverage python-paver python-pylons
d52dbc8
BuildRequires:  python-turbokid python-zope-sqlalchemy python-jinja2 python-toscawidgets python-genshi
d52dbc8
BuildRequires:  python-repoze-what python-repoze-who-testutil python-repoze-what-pylons
d52dbc8
BuildRequires:  python-webflash python-tw-forms python-turbojson python-repoze-what-quickstart
d52dbc8
d52dbc8
%{?el5:BuildRequires: python-wsgiref}
d52dbc8
d52dbc8
Requires:       python-pylons >= 0.9.7
d52dbc8
Requires:       python-webflash >= 0.1-0.a8
d52dbc8
Requires:       python-weberror >= 0.10.1
d52dbc8
Requires:       python-genshi >= 0.5.1
d52dbc8
Requires:       python-zope-sqlalchemy
d52dbc8
Requires:       python-toscawidgets >= 0.9.4
d52dbc8
Requires:       python-turbojson >= 1.2.1
d52dbc8
Requires:       python-repoze-tm2 >= 1.0-0.a4
d52dbc8
Requires:       python-repoze-what-pylons >= 1.0-0.rc3
d52dbc8
d52dbc8
d52dbc8
%description
d52dbc8
TurboGears2, provides a comprehensive web development toolkit.  It is designed
d52dbc8
to help you create the basic outline of a database-driven web application in
d52dbc8
minutes.
d52dbc8
d52dbc8
TurboGears provides you with sane default for designer friendly templates,
d52dbc8
tools to make  AJAX, and dynamic Javascript driven pages easy on both the
d52dbc8
browser side and the server side.
d52dbc8
d52dbc8
TurboGears is a project that is built upon a foundation of reuse and building
d52dbc8
up.  In retrospect, much of the code that was home grown in the TurboGears
d52dbc8
project should have been released as independent projects that integrate with
d52dbc8
TurboGears.
d52dbc8
d52dbc8
d52dbc8
%prep
fd6f8d9
%setup -q -n %{name}-%{version}%{betaver}
d52dbc8
d52dbc8
d52dbc8
%build
d52dbc8
python setup.py build
d52dbc8
d52dbc8
%install
d52dbc8
rm -rf %{buildroot}
d52dbc8
python setup.py install --skip-build --root %{buildroot}
d52dbc8
fd6f8d9
#%check
fd6f8d9
#PYTHONPATH=$(pwd) nosetests
d52dbc8
d52dbc8
%clean
d52dbc8
rm -rf %{buildroot}
d52dbc8
d52dbc8
%files
d52dbc8
%defattr(0644,root,root,0755)
d52dbc8
%doc README.txt
fd6f8d9
%{python_sitelib}/%{name}-%{version}%{betaver}-py%{pyver}.egg-info/
d52dbc8
%{python_sitelib}/tg/
d52dbc8
d52dbc8
d52dbc8
%changelog
fd6f8d9
* Wed May 05 2010 Luke Macken <lmacken@redhat.com> - 2.1-0.1.b2
fd6f8d9
- Update to 2.1b2
fd6f8d9
fd6f8d9
* Mon Jan 11 2010 Luke Macken <lmacken@redhat.com> - 2.0.3-4
fd6f8d9
- Fix the source URL
fd6f8d9
d52dbc8
* Mon Sep 14 2009 Luke Macken <lmacken@redhat.com> - 2.0.3-3
d52dbc8
- Tweak our python-wsgiref conditional for EL5
d52dbc8
d52dbc8
* Tue Sep 01 2009 Luke Macken <lmacken@redhat.com> - 2.0.3-2
d52dbc8
- Remove the SQLAlchemy requirement, as python-zope-sqlalchemy
d52dbc8
  is now set to include the appropriate version
d52dbc8
d52dbc8
* Wed Aug 12 2009 Luke Macken <lmacken@redhat.com> - 2.0.3-1
d52dbc8
- 2.0.3
d52dbc8
d52dbc8
* Sat Jun 27 2009 Luke Macken <lmacken@redhat.com> 2.0.1-1
d52dbc8
- 2.0.1
d52dbc8
- Bump our ToscaWigdets requirement to 0.9.4
d52dbc8
- Remove TurboGears2-custom-content-type.patch, which is upstream
d52dbc8
d52dbc8
* Sat Jun 06 2009 Luke Macken <lmacken@redhat.com> 2.0-4
d52dbc8
- Require the new python-sqlalchemy0.5 package
d52dbc8
d52dbc8
* Thu Jun 04 2009 Luke Macken <lmacken@redhat.com> 2.0-3
d52dbc8
- Add a patch to fix custom content types.
d52dbc8
  http://trac.turbogears.org/ticket/2280
d52dbc8
d52dbc8
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 2.0-2
d52dbc8
- Conditionally include wsgiref
d52dbc8
d52dbc8
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> 2.0-1
d52dbc8
- Update to 2.0 final.
d52dbc8
- Add python-repoze-what-pylons and python-webflash to the BuildRequires
d52dbc8
- Disable the test suite until we package chameleon.genshi
d52dbc8
d52dbc8
* Tue Oct 28 2008 Luke Macken <lmacken@redhat.com> 1.9.7.0.3.b1dev.r5627
d52dbc8
- Update to a svn snapshot to support tgext.authorization instead of
d52dbc8
  tg.ext.repoze.who
d52dbc8
d52dbc8
* Mon Oct 27 2008 Luke Macken <lmacken@redhat.com> 1.9.7-0.2.b1
d52dbc8
- Update to 1.9.7b1
d52dbc8
d52dbc8
* Tue Oct 21 2008 Luke Macken <lmacken@redhat.com> 1.9.7-0.1.a5dev.r5564
d52dbc8
- Initial packaging of TurboGears2 for Fedora.