%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} %define srcname SQLAlchemy Name: python-sqlalchemy Version: 0.5.2 Release: 1%{?dist} Summary: Modular and flexible ORM library for python Group: Development/Libraries License: MIT URL: http://www.sqlalchemy.org/ Source0: http://pypi.python.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools-devel >= 0.6c3 %description SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible, high-level interface to SQL databases. Database and domain concepts are decoupled, allowing both sides maximum flexibility and power. SQLAlchemy provides a powerful mapping layer that can work as automatically or as manually as you choose, determining relationships based on foreign keys or letting you define the join conditions explicitly, to bridge the gap between database and domain. %prep %setup -q -n %{srcname}-%{version}%{?alphatag} %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build sed -i 's/\r//' examples/dynamic_dict/dynamic_dict.py %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{python_sitelib} python setup.py install --skip-build --root $RPM_BUILD_ROOT # remove unnecessary scripts for building documentation rm -rf doc/build %clean rm -rf $RPM_BUILD_ROOT %check export PYTHONPATH=./test python test/alltests.py %files %defattr(-,root,root,-) %doc README LICENSE PKG-INFO CHANGES doc examples %{python_sitelib}/* %changelog * Wed Feb 11 2009 Toshio Kuratomi - 0.5.2-1 - Update to 0.5.2 * Wed Jan 21 2009 Toshio Kuratomi - 0.5.1-1 - Update to 0.5.1. * Mon Dec 1 2008 Toshio Kuratomi - 0.5-0.1.rc4 - Update to 0.5.0rc4 which works with the new pysqlite - And update test cases to work with the new pysqlite * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.4.7-2 - Rebuild for Python 2.6 * Sun Jul 27 2008 Toshio Kuratomi 0.4.7-1 - Update to 0.4.7. * Sun Jun 1 2008 Toshio Kuratomi 0.4.6-1 - Update to 0.4.6. * Tue Apr 8 2008 Toshio Kuratomi 0.4.5-1 - Update to 0.4.5. * Fri Feb 22 2008 Toshio Kuratomi 0.4.3-1 - Update to 0.4.3. * Tue Dec 11 2007 Toshio Kuratomi 0.4.2-1.p3 - Update to 0.4.2p3. * Tue Dec 11 2007 Toshio Kuratomi 0.4.1-1 - Update to 0.4.1. * Wed Oct 17 2007 Toshio Kuratomi 0.4.0-1 - SQLAlchemy-0.4.0 final - Run the testsuite * Wed Oct 3 2007 Luke Macken 0.4.0-0.4.beta6 - SQLAlchemy-0.4.0beta6 * Tue Sep 11 2007 Toshio Kuratomi - 0.4.0-0.4.beta5 - Update to 0.4beta5. * Fri Sep 06 2007 Toshio Kuratomi - 0.4.0-0.4.beta4 - setuptools has been fixed. * Fri Aug 31 2007 Toshio Kuratomi - 0.4.0-0.3.beta4 - setuptools seems to be broken WRT having an active and inactive version of an egg. Have to make both versions inactive and manually setup a copy that can be started via import. (Necessary for the sqlalchemy0.3 compat package.) * Tue Aug 28 2007 Toshio Kuratomi - 0.4.0-0.2.beta4 - Modify setuptools to handle the -devel subpackage split in F-8. * Mon Aug 27 2007 Toshio Kuratomi - 0.4.0-0.1.beta4 - Update to 0.4 beta4. * Tue Jul 24 2007 Toshio Kuratomi - 0.3.10-2 - Remove python-abi Requires. This is automatic since FC4+. * Tue Jul 24 2007 Toshio Kuratomi - 0.3.10-1 - Update to new upstream version 0.3.10 * Fri Mar 23 2007 Toshio Kuratomi - 0.3.6-1 - Update to new upstream version 0.3.6 * Sat Mar 10 2007 Toshio Kuratomi - 0.3.5-1 - Update to new upstream version 0.3.5 - Simplify the files listing * Tue Jan 23 2007 Toshio Kuratomi - 0.3.4-2 - Remember to upload the source tarball to the lookaside cache. * Tue Jan 23 2007 Toshio Kuratomi - 0.3.4-1 - Update to new upstream version 0.3.4 * Mon Jan 01 2007 Toshio Kuratomi - 0.3.3-1 - Update to new upstream version 0.3.3 * Sat Dec 09 2006 Toshio Kuratomi - 0.3.1-2 - Bump and rebuild for python 2.5 on devel. - BuildRequire: python-devel as a header is missing otherwise. * Fri Nov 24 2006 Toshio Kuratomi - 0.3.1-1 - Update to new upstream version 0.3.1 * Sat Sep 16 2006 Shahms E. King 0.2.7-2 - Rebuild for FC6 * Thu Aug 17 2006 Shahms E. King 0.2.7-1 - Update to new upstream version * Fri Aug 11 2006 Shahms E. King 0.2.6-2 - Include, don't ghost .pyo files per new guidelines * Tue Aug 08 2006 Shahms E. King 0.2.6-1 - Update to new upstream version * Fri Jul 07 2006 Shahms E. King 0.2.4-1 - Update to new upstream version * Mon Jun 26 2006 Shahms E. King 0.2.3-1 - Update to new upstream version * Wed May 31 2006 Shahms E. King 0.2.1-1 - Update to new upstream version