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