632279
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
632279
632279
%define srcname sqlalchemy-migrate
632279
632279
Name: python-migrate
e84bee
Version: 0.5.3
d44711
Release: 3%{?dist}
632279
Summary: Schema migration tools for SQLAlchemy
632279
632279
Group: Development/Languages
632279
License: MIT
632279
URL: http://code.google.com/p/%{srcname}/
a4c8ee
Source0: http://%{srcname}.googlecode.com/files/%{srcname}-%{version}.tar.gz
34c497
# Local patch to rename /usr/bin/migrate to sqlalchemy-migrate
001c0c
Patch0: python-migrate-sqlalchemy-migrate.patch
526a10
Patch1: python-migrate-py2.4-import.patch
632279
632279
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
632279
632279
BuildArch: noarch
632279
BuildRequires: python-devel
001c0c
BuildRequires: python-sqlalchemy
632279
BuildRequires: python-setuptools-devel
001c0c
BuildRequires: python-nose
136962
BuildRequires: python-sphinx
526a10
001c0c
Requires: python-sqlalchemy >= 0.5
34c497
Requires: python-setuptools
632279
526a10
%if 0%{?fedora} <= 6
526a10
BuildRequires: python-sqlite2
526a10
Requires:      python-sqlite2
526a10
%endif
526a10
526a10
632279
%description
632279
Schema migration tools for SQLAlchemy designed to support an agile approach
632279
to database design and make it easier to keep development and production
632279
databases in sync as schema changes are required.  It allows you to manage 
632279
atabase change sets and database repository versioning.
632279
632279
%prep
a4c8ee
%setup -q -n %{srcname}-%{version}
001c0c
%patch0 -p1 -b .rename
526a10
%patch1 -p0 -b .import
632279
632279
%build
632279
%{__python} setup.py build
632279
632279
%install
632279
%{__rm} -rf %{buildroot}
632279
%{__python} setup.py install --skip-build --root %{buildroot}
632279
632279
%clean
632279
%{__rm} -rf %{buildroot}
632279
001c0c
%check
001c0c
echo 'sqlite:///__tmp__' > test_db.cfg
001c0c
%{__python} setup.py test
632279
632279
%files
632279
%defattr(-,root,root,-)
632279
%doc README CHANGELOG docs/
34c497
%{_bindir}/*
632279
%{python_sitelib}/*
632279
632279
%changelog
d44711
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-3
d44711
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d44711
526a10
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 0.5.3-2
526a10
- Add python-migrate-py2.4-import.patch, which makes the use
526a10
  of __import__ work on Python 2.4
526a10
- Add python-sqlite2 to the build requirements on FC6 and below
526a10
e84bee
* Thu Apr 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.3-1
e84bee
- Update to new bugfix release.
e84bee
780502
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1.2-3
780502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
780502
136962
* Wed Feb 11 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.1.2-2
136962
- Add BR on python-sphinx
136962
a4c8ee
* Wed Feb 11 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.1.2-1
a4c8ee
- Update to 0.5.1.2 release with official support for SA-0.5
a4c8ee
- Remove patches merged upstream
a4c8ee
001c0c
* Mon Jan 26 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.1-0.1.20090122.svn479
001c0c
- Update to snapshot so that it works with sqlalchemy-0.5
001c0c
- Enable test suite
001c0c
447805
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.5-4
447805
- Rebuild for Python 2.6
447805
34c497
* Tue Jul 29 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-3
34c497
- Patch to generate a script for the repository migrate script.
34c497
- Move the script rename into a patch to setup.py.
34c497
e0589b
* Thu Jul 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-2
e0589b
- Remove patches that are merged upstream.
e0589b
eb45d1
* Thu Jul 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-1
eb45d1
- New upstream
eb45d1
964a52
* Thu Jul 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.4-4
964a52
- Disable py.test so we don't try to download it during build.
964a52
632279
* Tue Jul 15 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.4-3
632279
- Rename binary to sqlalchemy-migrate to avoid potential filename clashes.
632279
  (Queried upstream but the change is only in Fedora).  Noted that
632279
  openmosix defintely has a /usr/bin/migrate already.
632279
632279
* Sat Jul 06 2008 Ricky Zhou <ricky@fedoraproject.org> 0.4.4-2
632279
- Add BuildRequires on python-setuptools-devel.
632279
- Add Requires on SQLAlchemy.
632279
632279
* Sat Jun 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.4-1
632279
- Initial Fedora Build.