]>
Commit | Line | Data |
---|---|---|
1cb78bbf MK |
1 | %define module migrate |
2 | Summary: Schema migration tools for SQLAlchemy | |
3 | Summary(pl.UTF-8): Narzędzia do migracji struktury bazy dla SQLAlchemy | |
4 | Name: python-sqlalchemy-%{module} | |
5 | Version: 0.5.4 | |
7a4ec346 | 6 | Release: 5 |
1cb78bbf MK |
7 | License: MIT |
8 | Group: Development/Languages/Python | |
1cb78bbf MK |
9 | Source0: http://sqlalchemy-migrate.googlecode.com/files/sqlalchemy-%{module}-%{version}.tar.gz |
10 | # Source0-md5: 7ad9e6d6dd6df701fc596bcb87380271 | |
11 | URL: http://code.google.com/p/sqlalchemy-migrate/ | |
12 | BuildRequires: python-devel | |
987ea57c | 13 | BuildRequires: python-setuptools |
1cb78bbf MK |
14 | BuildRequires: rpm-pythonprov |
15 | # if py_postclean is used | |
f9682ecf | 16 | BuildRequires: rpmbuild(macros) >= 1.710 |
1cb78bbf | 17 | Requires: python-SQLAlchemy >= 0.5.1 |
69a17265 | 18 | Requires: python-decorator >= 3.0.0 |
1cb78bbf MK |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
69a17265 | 23 | Schema migration tools for SQLAlchemy, designed to support an agile approach to database design, and make it easier to keep development and production databases in sync, as schema changes are required. |
1cb78bbf MK |
24 | |
25 | %description -l pl.UTF-8 | |
69a17265 | 26 | Narzędzia migracji struktury bazy danych dla SQLAlchemy, zaprojektowane aby wspierać sprawne projektowanie i ułatwiać utrzymanie wersji rozwojowych i produkcyjnych baz danych w synchornizacji w miare zmian ich struktury. |
1cb78bbf MK |
27 | |
28 | %prep | |
29 | %setup -q -n sqlalchemy-%{module}-%{version} | |
30 | ||
31 | %build | |
8f393b01 | 32 | %py_build |
1cb78bbf MK |
33 | |
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
8f393b01 | 36 | %py_install |
1cb78bbf MK |
37 | |
38 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
39 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
40 | %py_postclean | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %attr(755,root,root) %{_bindir}/migrate | |
48 | %attr(755,root,root) %{_bindir}/migrate-repository | |
49 | ||
50 | ## %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
51 | ##%{py_sitedir}/*.py[co] | |
52 | ## %attr(755,root,root) %{py_sitedir}/*.so | |
53 | %{py_sitescriptdir}/%{module} | |
54 | ##%if "%{py_ver}" > "2.4" | |
55 | %{py_sitescriptdir}/sqlalchemy_migrate-*.egg-info | |
56 | ##%endif |