757b8b
%global srcname sqlalchemy-migrate
632279
632279
Name: python-migrate
Alan Pevec ceaa57
Version: 0.9.5
3766fc
Release: 1%{?dist}
632279
Summary: Schema migration tools for SQLAlchemy
632279
632279
Group: Development/Languages
632279
License: MIT
ea6012
URL: https://github.com/stackforge/%{srcname}
ea6012
Source0: http://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
34c497
# Local patch to rename /usr/bin/migrate to sqlalchemy-migrate
731cb6
Patch100: python-migrate-sqlalchemy-migrate.patch
632279
632279
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
632279
632279
BuildArch: noarch
d1ce8b
BuildRequires: python2-devel
001c0c
BuildRequires: python-sqlalchemy
d1ce8b
BuildRequires: python-setuptools
001c0c
BuildRequires: python-nose
136962
BuildRequires: python-sphinx
757b8b
BuildRequires: python-decorator
d1ce8b
BuildRequires: python-tempita
a65a4f
BuildRequires: python-pbr
a8e437
BuildRequires: python-six
bdcda4
BuildRequires: python-sqlparse
526a10
bfd9e8
# for testsuite
bfd9e8
BuildRequires: python-scripttest
89a3d8
BuildRequires: python-testtools
bfd9e8
e3d184
Requires: python-sqlalchemy
34c497
Requires: python-setuptools
757b8b
Requires: python-decorator
d1ce8b
Requires: python-tempita
a8e437
Requires: python-six
bdcda4
Requires: python-sqlparse
632279
757b8b
%if 0%{?rhel} && 0%{?rhel} < 6
526a10
BuildRequires: python-sqlite2
526a10
Requires:      python-sqlite2
526a10
%endif
526a10
77fd49
%if 0%{?rhel} && 0%{?rhel} < 7
d1ce8b
BuildRequires: python-unittest2
d1ce8b
%endif
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
d60315
databases in sync as schema changes are required.  It allows you to manage
d60315
database change sets and database repository versioning.
632279
632279
%prep
a4c8ee
%setup -q -n %{srcname}-%{version}
edccf8
%patch100 -p1 -b .rename
bfd9e8
bfd9e8
# use real unittest in python 2.7 and up
d1ce8b
%if 0%{?fedora} || 0%{?rhel} > 6
bfd9e8
sed -i "s/import unittest2/import unittest as unittest2/g" \
bfd9e8
    migrate/tests/fixture/__init__.py \
bfd9e8
    migrate/tests/fixture/base.py
d1ce8b
%endif
632279
632279
%build
4a794b
%{__python2} setup.py build
632279
632279
%install
4a794b
%{__python2} setup.py install --skip-build --root %{buildroot}
632279
001c0c
%check
5613a6
# Need to set PATH for two reasons:
5613a6
# 1) Path isn't being cleared by mock so we have /root/bin/ in the PATH
5613a6
# 2) Need to be able to find the newly installed migrate binaries
5613a6
PATH=/bin:/usr/bin:%{buildroot}%{_bindir}
5613a6
export PATH
5613a6
5613a6
PYTHONPATH=`pwd`
5613a6
export PYTHONPATH
001c0c
echo 'sqlite:///__tmp__' > test_db.cfg
89a3d8
89a3d8
# Disable temporarily until tests are adjusted to support testtools >= 0.9.36
89a3d8
#nosetests
632279
632279
%files
ea6012
%doc README.rst doc/
34c497
%{_bindir}/*
4a794b
%{python2_sitelib}/*
632279
632279
%changelog
3766fc
* Tue Feb 10 2015 Pádraig Brady <pbrady@redhat.com> - 0.9.4-1
3766fc
- Latest upstream
3766fc
89a3d8
* Wed Nov 19 2014 Pádraig Brady <pbrady@redhat.com> - 0.9.2-2
89a3d8
- build: remove cap on testtools for the moment
89a3d8
e92f2a
* Thu Sep 18 2014 Pádraig Brady <pbrady@redhat.com> - 0.9.2-1
e92f2a
- Latest upstream
e92f2a
a8e437
* Fri Jun 13 2014 Pádraig Brady <pbrady@redhat.com> - 0.9.1-1
a8e437
- Latest upstream
a8e437
536ff3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
536ff3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
536ff3
e93948
* Sat Mar 08 2014 Pádraig Brady <pbrady@redhat.com> - 0.9-1
e93948
- Latest upstream
e93948
4cb187
* Tue Mar 04 2014 Pádraig Brady <pbrady@redhat.com> - 0.8.5.1
4cb187
- Latest upstream
4cb187
ea6012
* Mon Dec 16 2013 Pádraig Brady <pbrady@redhat.com> - 0.8.2-1
ea6012
- Latest upstream
ea6012
3062cc
* Mon Sep 23 2013 Pádraig Brady <pbrady@redhat.com> - 0.7.2-9
3062cc
- improve sqlalchemy 0.8 compatibility
3062cc
f3f3a1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
f3f3a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f3f3a1
603ed1
* Mon Mar 11 2013 Pádraig Brady <P@draigBrady.com> - 0.7.2-7
603ed1
- Add compatability for sqlalchemy >= 0.8
603ed1
267341
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-6
267341
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
267341
aefd67
* Thu Dec 20 2012 Pádraig Brady <P@draigBrady.com> - 0.7.2-5
aefd67
- Fix build on RHEL 7
aefd67
61f338
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-4
61f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61f338
8016a4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
8016a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8016a4
d1ce8b
* Wed Nov 16 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.2-2
d1ce8b
- Require python-tempita
d1ce8b
edccf8
* Tue Nov 08 2011 Martin Bacovsky <mbacovsk@redhat.com> - 0.7.2-1
edccf8
- Updated to new version
edccf8
2edd58
* Sat Jun 25 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-1
2edd58
- Update to new version compatible with SQLAlchemy 0.7.x.
2edd58
a16524
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
a16524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a16524
e3d184
* Thu Jan 13 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-3
e3d184
- Fix SQLAlchemy Requires -- need >= 0.5, not 0.6
2edd58
5613a6
* Sun Aug 1 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-2
5613a6
- Update to unittests to work with newer scripttest API
5613a6
bfd9e8
* Sat Jul 31 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6-1
bfd9e8
- update to new version
bfd9e8
- testsuite doesn't work right now
bfd9e8
1fe884
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.4-2
1fe884
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1fe884
757b8b
* Tue Apr 20 2010 Martin Bacovsky <mbacovsk@redhat.com> - 0.5.4-1
757b8b
- Update to new bugfix release 
757b8b
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
89a3d8
* Sun 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.