Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: a415c9504e
Fetching contributors…

Cannot retrieve contributors at this time

101 lines (79 sloc) 2.754 kB
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global modname tw2.sqla
Name: python-tw2-sqla
Version: 2.0.1
Release: 1%{?dist}
Summary: SQLAlchemy database layer for ToscaWidgets2
Group: Development/Languages
License: MIT
BuildArch: noarch
# For building
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-tw2-core
BuildRequires: python-tw2-forms
BuildRequires: python-tw2-dynforms
%if %{?rhel}%{!?rhel:0} >= 6
BuildRequires: python-sqlalchemy0.7 >= 0.7
BuildRequires: python-sqlalchemy >= 0.7
BuildRequires: python-zope-sqlalchemy
# For tests
BuildRequires: python-nose
BuildRequires: python-formencode
BuildRequires: python-BeautifulSoup
BuildRequires: python-strainer
BuildRequires: python-webtest
BuildRequires: python-elixir
# Templates for the test suite
BuildRequires: python-genshi
BuildRequires: python-mako
BuildRequires: python-turbokid
BuildRequires: python-turbocheetah
# Runtime requirements
Requires: python-tw2-forms
Requires: python-tw2-dynforms
%if %{?rhel}%{!?rhel:0} >= 6
Requires: python-sqlalchemy0.7 >= 0.7
Requires: python-sqlalchemy >= 0.7
Requires: python-zope-sqlalchemy
tw2.sqla is a database layer for ToscaWidgets 2 and SQLAlchemy. It allows common
database tasks to be achieved with minimal code.
%setup -q -n %{modname}-%{version}
%if %{?rhel}%{!?rhel:0} >= 6
# Make sure that epel/rhel picks up the correct version of webob *and* SA
awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"WebOb>=1.0\", \"sqlalchemy>=0.7\"]; import pkg_resources"}1' >
# Remove all the fancy nosetests configuration for older python
rm setup.cfg
%{__python} build
%{__python} install -O1 --skip-build \
--install-data=%{_datadir} --root %{buildroot}
%if %{?rhel}%{!?rhel:0} >= 6
# Don't actually run tests on el6. There's an issue with python-elixir.
PYTHONPATH=$(pwd) python test
* Wed May 02 2012 Ralph Bean <> - 2.0.1-1
- New upstream release, contains LICENSE.
* Wed May 02 2012 Ralph Bean <> - 2.0.0-2
- Removed clean section
- Removed defattr in files section
- Removed unnecessary references to buildroot
* Wed Apr 11 2012 Ralph Bean <> - 2.0.0-1
- Initial packaging for Fedora
Jump to Line
Something went wrong with that request. Please try again.