2010-02-02 20:33:42 +00:00
|
|
|
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
2010-03-07 19:37:05 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2010-02-02 20:33:42 +00:00
|
|
|
%endif
|
2006-05-23 14:57:51 +00:00
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2009-06-12 13:59:50 +00:00
|
|
|
%global srcname SQLAlchemy
|
2006-05-23 14:57:51 +00:00
|
|
|
|
|
|
|
Name: python-sqlalchemy
|
2011-08-01 14:49:59 +00:00
|
|
|
Version: 0.7.2
|
2011-06-06 15:24:13 +00:00
|
|
|
Release: 1%{?dist}
|
2006-05-23 14:57:51 +00:00
|
|
|
Summary: Modular and flexible ORM library for python
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.sqlalchemy.org/
|
2010-06-24 14:32:29 +00:00
|
|
|
Source0: http://pypi.python.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz
|
2006-05-23 14:57:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
BuildRequires: python2-devel
|
2010-08-24 05:51:24 +00:00
|
|
|
%if 0%{?fedora} && 0%{?fedora} < 13
|
2007-09-01 04:55:09 +00:00
|
|
|
BuildRequires: python-setuptools-devel >= 0.6c3
|
2010-08-24 05:51:24 +00:00
|
|
|
%else
|
2011-06-06 16:06:41 +00:00
|
|
|
BuildRequires: python-setuptools
|
2010-02-02 23:11:00 +00:00
|
|
|
%endif
|
2011-06-06 16:06:41 +00:00
|
|
|
BuildRequires: python-nose
|
2006-05-23 14:57:51 +00:00
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
2011-06-06 16:06:41 +00:00
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-nose
|
2010-03-07 19:37:05 +00:00
|
|
|
%endif
|
|
|
|
|
2006-05-23 14:57:51 +00:00
|
|
|
%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.
|
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
This package includes the python 2 version of the module.
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-sqlalchemy
|
|
|
|
Summary: Modular and flexible ORM library for python
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description -n python3-sqlalchemy
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package includes the python 3 version of the module.
|
|
|
|
%endif # with_python3
|
|
|
|
|
2010-09-29 18:21:06 +00:00
|
|
|
# Filter unnecessary dependencies
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}.*\.so$
|
|
|
|
%filter_provides_in %{python3_sitearch}.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
}
|
|
|
|
|
2006-05-23 14:57:51 +00:00
|
|
|
%prep
|
2010-06-24 14:32:29 +00:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2006-05-23 14:57:51 +00:00
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
%build
|
2010-04-14 01:18:32 +00:00
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py --with-cextensions build
|
2010-03-07 19:37:05 +00:00
|
|
|
|
2010-08-24 05:51:24 +00:00
|
|
|
%if 0%{?with_python3}
|
2010-03-07 19:37:05 +00:00
|
|
|
pushd %{py3dir}
|
|
|
|
# Convert tests, examples, source to python3
|
|
|
|
%{__python3} sa2to3.py --no-diffs -w lib test examples
|
2010-04-14 01:18:32 +00:00
|
|
|
# Currently the cextension doesn't work with py3
|
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
2010-03-07 19:37:05 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2006-05-23 14:57:51 +00:00
|
|
|
%install
|
2010-03-07 19:37:05 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{python_sitelib}
|
2010-04-14 01:18:32 +00:00
|
|
|
%{__python} setup.py --with-cextensions install --skip-build --root %{buildroot}
|
2010-03-07 19:37:05 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
mkdir -p %{buildroot}%{python3_sitelib}
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
%endif
|
2007-09-01 04:55:09 +00:00
|
|
|
|
2006-05-23 14:57:51 +00:00
|
|
|
# remove unnecessary scripts for building documentation
|
|
|
|
rm -rf doc/build
|
|
|
|
|
|
|
|
%clean
|
2010-03-07 19:37:05 +00:00
|
|
|
rm -rf %{buildroot}
|
2006-05-23 14:57:51 +00:00
|
|
|
|
2007-10-19 04:22:29 +00:00
|
|
|
%check
|
2011-06-06 16:33:05 +00:00
|
|
|
%{__python} ./sqla_nose.py
|
2006-05-23 14:57:51 +00:00
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2011-06-06 16:33:05 +00:00
|
|
|
%{__python3} ./sqla_nose.py
|
2010-03-07 19:37:05 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2006-05-23 14:57:51 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2006-05-31 19:33:19 +00:00
|
|
|
%doc README LICENSE PKG-INFO CHANGES doc examples
|
2010-04-14 01:18:32 +00:00
|
|
|
%{python_sitearch}/*
|
2006-05-23 14:57:51 +00:00
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-sqlalchemy
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE PKG-INFO doc examples
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%endif # with_python3
|
|
|
|
|
2006-05-23 14:57:51 +00:00
|
|
|
%changelog
|
2011-08-01 14:49:59 +00:00
|
|
|
* Mon Aug 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.2-1
|
|
|
|
- Upstream bugfix release
|
|
|
|
|
2011-06-06 15:24:13 +00:00
|
|
|
* Mon Jun 06 2011 Nils Philippsen <nils@redhat.com> - 0.7.1-1
|
|
|
|
- 0.7.1 Upstream release
|
2011-06-06 15:27:41 +00:00
|
|
|
- no need to fix examples/dynamic_dict/dynamic_dict.py anymore
|
2011-06-06 16:06:41 +00:00
|
|
|
- use sqla_nose.py to fix %check
|
2011-06-06 15:24:13 +00:00
|
|
|
|
2011-02-09 06:34:07 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-18 05:51:01 +00:00
|
|
|
* Mon Jan 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.6-1
|
|
|
|
- 0.6.6 Upstream release
|
|
|
|
|
2010-12-04 04:09:17 +00:00
|
|
|
* Fri Dec 3 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-1
|
|
|
|
- 0.6.5 Upstream release
|
|
|
|
|
2010-09-29 18:28:16 +00:00
|
|
|
* Wed Sep 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-2
|
2010-09-29 18:21:06 +00:00
|
|
|
- Filter out the C extensions from provides
|
|
|
|
|
2010-09-07 19:16:28 +00:00
|
|
|
* Tue Sep 07 2010 Luke Macken <lmacken@redhat.com> - 0.6.4-1
|
|
|
|
- 0.6.4 upstream release
|
|
|
|
|
2010-08-24 05:51:24 +00:00
|
|
|
* Mon Aug 23 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.3-1
|
|
|
|
- 0.6.3 upstream release
|
|
|
|
|
2010-07-22 05:26:47 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com>
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-06-24 14:32:29 +00:00
|
|
|
* Thu Jun 24 2010 Nils Philippsen <nils@redhat.com> - 0.6.1-1
|
|
|
|
- 0.6.1 upstream release
|
|
|
|
|
2010-04-14 01:18:32 +00:00
|
|
|
* Tue Apr 13 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-0.4.beta3
|
|
|
|
- Build beta3
|
|
|
|
|
|
|
|
* Fri Mar 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-0.3.beta2
|
|
|
|
- Build beta2 with cextension
|
|
|
|
|
2010-03-07 19:37:05 +00:00
|
|
|
* Sun Mar 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-0.2.beta1
|
|
|
|
- Build python3 package
|
|
|
|
|
2010-03-03 00:47:00 +00:00
|
|
|
* Tue Mar 2 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-0.1.beta1
|
|
|
|
- 0.6 beta1 upstream release
|
|
|
|
|
2010-02-02 23:11:00 +00:00
|
|
|
* Tue Feb 2 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.8-3
|
|
|
|
- One last cleanup
|
|
|
|
|
2010-02-02 20:33:42 +00:00
|
|
|
* Tue Feb 2 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.8-2
|
|
|
|
- just some cleanups to older styles of building packages.
|
|
|
|
|
|
|
|
* Mon Feb 1 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.8-1
|
|
|
|
- Upstream bugfix release 0.5.8
|
|
|
|
|
2009-08-14 17:47:35 +00:00
|
|
|
* Fri Aug 14 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.5-2
|
2009-08-14 17:46:15 +00:00
|
|
|
- Upstream bugfix release 0.5.5
|
|
|
|
|
2009-07-26 23:08:25 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2.p2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-12 13:59:50 +00:00
|
|
|
* Fri Jun 12 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.4-1.p2
|
|
|
|
- Upstream bugfix release 0.5.4p2.
|
|
|
|
|
2009-04-16 18:06:47 +00:00
|
|
|
* Thu Apr 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.3-1
|
2009-04-16 18:04:47 +00:00
|
|
|
- Upstream bugfix release.
|
|
|
|
|
2009-02-26 23:33:59 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-11 16:44:37 +00:00
|
|
|
* Wed Feb 11 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.2-1
|
|
|
|
- Update to 0.5.2
|
|
|
|
|
2009-01-22 06:36:09 +00:00
|
|
|
* Wed Jan 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.1-1
|
|
|
|
- Update to 0.5.1.
|
|
|
|
|
2008-12-01 20:42:20 +00:00
|
|
|
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5-0.1.rc4
|
2008-12-01 22:08:11 +00:00
|
|
|
- Update to 0.5.0rc4 which works with the new pysqlite
|
|
|
|
- And update test cases to work with the new pysqlite
|
2008-12-01 20:42:20 +00:00
|
|
|
|
2008-11-29 15:52:26 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.7-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-07-27 22:42:17 +00:00
|
|
|
* Sun Jul 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.7-1
|
|
|
|
- Update to 0.4.7.
|
|
|
|
|
2008-06-01 20:33:59 +00:00
|
|
|
* Sun Jun 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.6-1
|
|
|
|
- Update to 0.4.6.
|
|
|
|
|
2008-04-08 07:27:16 +00:00
|
|
|
* Tue Apr 8 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-1
|
|
|
|
- Update to 0.4.5.
|
|
|
|
|
|
|
|
* Fri Feb 22 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.3-1
|
2008-02-25 22:04:09 +00:00
|
|
|
- Update to 0.4.3.
|
|
|
|
|
2008-02-10 20:17:00 +00:00
|
|
|
* Tue Dec 11 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4.2-1.p3
|
|
|
|
- Update to 0.4.2p3.
|
|
|
|
|
2007-12-11 22:30:55 +00:00
|
|
|
* Tue Dec 11 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4.1-1
|
|
|
|
- Update to 0.4.1.
|
|
|
|
|
2007-10-18 21:22:25 +00:00
|
|
|
* Wed Oct 17 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4.0-1
|
|
|
|
- SQLAlchemy-0.4.0 final
|
|
|
|
- Run the testsuite
|
|
|
|
|
2007-10-03 14:52:05 +00:00
|
|
|
* Wed Oct 3 2007 Luke Macken <lmacken@redhat.com> 0.4.0-0.4.beta6
|
|
|
|
- SQLAlchemy-0.4.0beta6
|
|
|
|
|
2007-09-14 00:53:48 +00:00
|
|
|
* Tue Sep 11 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.4.0-0.4.beta5
|
|
|
|
- Update to 0.4beta5.
|
|
|
|
|
|
|
|
* Fri Sep 06 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.4.0-0.4.beta4
|
|
|
|
- setuptools has been fixed.
|
|
|
|
|
2007-09-01 04:55:09 +00:00
|
|
|
* Fri Aug 31 2007 Toshio Kuratomi <a.badger@gmail.com> - 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 <a.badger@gmail.com> - 0.4.0-0.2.beta4
|
|
|
|
- Modify setuptools to handle the -devel subpackage split in F-8.
|
|
|
|
|
2007-08-27 21:52:02 +00:00
|
|
|
* Mon Aug 27 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.4.0-0.1.beta4
|
|
|
|
- Update to 0.4 beta4.
|
|
|
|
|
2007-07-25 02:06:54 +00:00
|
|
|
* Tue Jul 24 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.10-2
|
|
|
|
- Remove python-abi Requires. This is automatic since FC4+.
|
|
|
|
|
2007-07-24 23:42:27 +00:00
|
|
|
* Tue Jul 24 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.10-1
|
|
|
|
- Update to new upstream version 0.3.10
|
|
|
|
|
2007-03-24 01:36:14 +00:00
|
|
|
* Fri Mar 23 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.6-1
|
|
|
|
- Update to new upstream version 0.3.6
|
|
|
|
|
2007-03-11 05:35:23 +00:00
|
|
|
* Sat Mar 10 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.5-1
|
|
|
|
- Update to new upstream version 0.3.5
|
|
|
|
- Simplify the files listing
|
|
|
|
|
2007-01-24 03:19:11 +00:00
|
|
|
* Tue Jan 23 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.4-2
|
|
|
|
- Remember to upload the source tarball to the lookaside cache.
|
|
|
|
|
2007-01-24 03:11:26 +00:00
|
|
|
* Tue Jan 23 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.4-1
|
2007-01-24 03:19:11 +00:00
|
|
|
- Update to new upstream version 0.3.4
|
2007-01-24 03:11:26 +00:00
|
|
|
|
2007-01-02 03:24:20 +00:00
|
|
|
* Mon Jan 01 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.3-1
|
2007-01-24 03:19:11 +00:00
|
|
|
- Update to new upstream version 0.3.3
|
2007-01-02 03:24:20 +00:00
|
|
|
|
|
|
|
* Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.1-2
|
2006-12-10 04:39:02 +00:00
|
|
|
- Bump and rebuild for python 2.5 on devel.
|
2006-12-10 05:17:02 +00:00
|
|
|
- BuildRequire: python-devel as a header is missing otherwise.
|
2006-12-10 04:39:02 +00:00
|
|
|
|
2006-12-07 22:12:34 +00:00
|
|
|
* Fri Nov 24 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.3.1-1
|
|
|
|
- Update to new upstream version 0.3.1
|
|
|
|
|
2006-09-16 18:50:06 +00:00
|
|
|
* Sat Sep 16 2006 Shahms E. King <shahms@shahms.com> 0.2.7-2
|
|
|
|
- Rebuild for FC6
|
|
|
|
|
2006-08-17 17:16:40 +00:00
|
|
|
* Thu Aug 17 2006 Shahms E. King <shahms@shahms.com> 0.2.7-1
|
|
|
|
- Update to new upstream version
|
|
|
|
|
2006-08-11 15:21:27 +00:00
|
|
|
* Fri Aug 11 2006 Shahms E. King <shahms@shahms.com> 0.2.6-2
|
|
|
|
- Include, don't ghost .pyo files per new guidelines
|
|
|
|
|
2006-08-08 15:52:39 +00:00
|
|
|
* Tue Aug 08 2006 Shahms E. King <shahms@shahms.com> 0.2.6-1
|
|
|
|
- Update to new upstream version
|
|
|
|
|
2006-07-07 18:26:07 +00:00
|
|
|
* Fri Jul 07 2006 Shahms E. King <shahms@shahms.com> 0.2.4-1
|
|
|
|
- Update to new upstream version
|
|
|
|
|
2006-06-26 17:26:01 +00:00
|
|
|
* Mon Jun 26 2006 Shahms E. King <shahms@shahms.com> 0.2.3-1
|
|
|
|
- Update to new upstream version
|
|
|
|
|
2006-05-31 19:33:19 +00:00
|
|
|
* Wed May 31 2006 Shahms E. King <shahms@shahms.com> 0.2.1-1
|
|
|
|
- Update to new upstream version
|