File python-zope-sqlalchemy.spec of Package python-zope-sqlalchemy
#norootforbuild
#
%define real_name zope.sqlalchemy
%define mod_name zope-sqlalchemy
#
#
Name: python-%{mod_name}
Group: Development/Libraries/Python
Version: 0.4
Release: 0
License: ZPLv2.1
Summary: Minimal Zope/SQLAlchemy transaction integration
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Requires: python-setuptools
Requires: python-sqlalchemy >= 0.4.7
Requires: python-transaction
Requires: python-zope-interface
Url: http://pypi.python.org/pypi/zope.sqlalchemy
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif
%description
The aim of this package is to unify the plethora of existing packages integrating SQLAlchemy with Zope's transaction management. As such it seeks only to provide a data manager and makes no attempt to define a zopeish way to configure engines.
You need to understand SQLAlchemy for this package and this README to make any sense. See http://sqlalchemy.org/docs/.
%prep
%setup -n %{real_name}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES.txt CREDITS.txt PKG-INFO README.txt
%changelog
* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.4
- Initial build for tg21