|
|
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 |
|
|
|
61b919c |
Name: TurboGears2
|
|
Luke Macken |
a5f68c3 |
Version: 2.1.4
|
|
|
d172c76 |
Release: 3%{?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 |
3247e93 |
Source0: http://www.turbogears.org/2.1/downloads/%{version}/%{name}-%{version}.tar.gz
|
|
Luke Macken |
a5f68c3 |
Source1: test-templates.tar.bz2
|
|
Luke Macken |
3247e93 |
Patch0: %{name}-kajiki.patch
|
|
Luke Macken |
0616fc8 |
Patch1: %{name}-no-chameleon.patch
|
|
|
d172c76 |
Patch2: %{name}-flexible-webob-version.patch
|
|
|
61b919c |
|
|
|
61b919c |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
61b919c |
BuildArch: noarch
|
|
|
61b919c |
|
|
|
61b919c |
BuildRequires: python-devel python-setuptools-devel
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-nose python-coverage
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-turbokid >= 1.0.4
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-zope-sqlalchemy >= 0.4
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-jinja2
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-simplegeneric
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-who-friendlyform >= 1.0.4
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-who
|
|
Luke Macken |
0616fc8 |
#BuildRequires: python-chameleon < 2.0
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-tm2 >= 1.0-0.4.a4
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-tw-forms
|
|
Luke Macken |
163f0c0 |
BuildRequires: python-genshi >= 0.5.1
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-mako
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-who-testutil >= 1.0.1
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-what-pylons >= 1.0
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-turbojson >= 1.3
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-what >= 1.0.8
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-repoze-what-quickstart >= 1.0.3
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-webflash
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-babel >= 0.9.4
|
|
Luke Macken |
1bd1c7a |
BuildRequires: python-tgext-admin >= 0.3.9
|
|
|
61b919c |
|
|
|
61b919c |
%{?el5:BuildRequires: python-wsgiref}
|
|
|
61b919c |
|
|
|
2227679 |
Requires: python-pylons >= 0.9.7
|
|
|
61b919c |
Requires: python-webflash >= 0.1-0.a8
|
|
|
61b919c |
Requires: python-weberror >= 0.10.1
|
|
|
2227679 |
Requires: python-webob >= 1.0.7
|
|
|
d172c76 |
Requires: python-webob <= 1.1.1
|
|
|
61b919c |
Requires: python-genshi >= 0.5.1
|
|
Luke Macken |
3247e93 |
Requires: python-zope-sqlalchemy >= 0.4
|
|
|
61b919c |
Requires: python-toscawidgets >= 0.9.4
|
|
Luke Macken |
1bd1c7a |
Requires: python-turbojson >= 1.3
|
|
|
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
|
|
Luke Macken |
1bd1c7a |
Requires: python-babel >= 0.9.4
|
|
|
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 |
3247e93 |
%setup -q
|
|
Luke Macken |
3247e93 |
%patch0 -p1 -b .kajiki
|
|
Luke Macken |
0616fc8 |
%patch1 -p1 -b .chameleon
|
|
|
d172c76 |
%patch2 -p1 -b .webob
|
|
|
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 |
a5f68c3 |
%check
|
|
Luke Macken |
a5f68c3 |
# TG2 tarball currently doesn't contain everything needed to run tests,
|
|
Luke Macken |
a5f68c3 |
# so we create an additional tarball with the remaining files by running:
|
|
Luke Macken |
a5f68c3 |
# tar -cjf test-templates.tar.bz2 `find tests -name '*.html' -or -name '*.mak'`
|
|
Luke Macken |
a5f68c3 |
tar -jxvf %{SOURCE1}
|
|
Luke Macken |
a5f68c3 |
mkdir tests/test_stack/config/templates
|
|
Luke Macken |
a5f68c3 |
mkdir tests/test_stack/dispatch/templates
|
|
Luke Macken |
a5f68c3 |
|
|
Luke Macken |
a5f68c3 |
PYTHONPATH=$(pwd) nosetests -q
|
|
Luke Macken |
a5f68c3 |
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 |
3247e93 |
%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/
|
|
|
61b919c |
%{python_sitelib}/tg/
|
|
|
61b919c |
|
|
|
61b919c |
|
|
|
61b919c |
%changelog
|
|
|
d172c76 |
* Fri Apr 13 2012 Ralph Bean <rbean@redhat.com> - 2.1.4-3
|
|
|
d172c76 |
- Patch webob version requirement to allow python-webob-1.1.1
|
|
|
d172c76 |
|
|
|
848a907 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-2
|
|
|
848a907 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
848a907 |
|
|
Luke Macken |
a5f68c3 |
* Wed Dec 14 2011 Luke Macken <lmacken@redhat.com> - 2.1.4-1
|
|
Luke Macken |
a5f68c3 |
- Update to 2.1.4
|
|
Luke Macken |
a5f68c3 |
- Get the test suite up and running again
|
|
Luke Macken |
a5f68c3 |
- Add a tarball with some missing templates needed to run the tests
|
|
Luke Macken |
0616fc8 |
- Patch out the chameleon.genshi tests
|
|
Luke Macken |
a5f68c3 |
|
|
Luke Macken |
1bd1c7a |
* Thu Aug 25 2011 Luke Macken <lmacken@redhat.com> - 2.1.2-1
|
|
Luke Macken |
1bd1c7a |
- Update to 2.1.2
|
|
Luke Macken |
1bd1c7a |
- Update our requirements
|
|
Luke Macken |
1bd1c7a |
|
|
|
2227679 |
* Wed Aug 17 2011 Nils Philippsen <nils@redhat.com>
|
|
|
2227679 |
- Update to 2.1.1 (#663117)
|
|
|
2227679 |
|
|
|
17f3701 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
|
|
|
17f3701 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
17f3701 |
|
|
Luke Macken |
3247e93 |
* Tue Nov 23 2010 Luke Macken <lmacken@redhat.com> - 2.1-1
|
|
Luke Macken |
3247e93 |
- Update to 2.1 final
|
|
Luke Macken |
3247e93 |
- Patch out the kajiki requirement & tests until it's packaged
|
|
Luke Macken |
3247e93 |
|
|
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.
|