]>
Commit | Line | Data |
---|---|---|
1 | Summary: Database Abstraction Library | |
2 | Name: python-SQLAlchemy | |
3 | Version: 0.1.7 | |
4 | Release: 1 | |
5 | Group: Development/Languages/Python | |
6 | License: MIT | |
7 | Source0: http://cheeseshop.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz | |
8 | # Source0-md5: 1c9c0124ad057c9fbcf8c4e16ecae960 | |
9 | URL: http://www.sqlalchemy.org/ | |
10 | BuildRequires: python-devel | |
11 | BuildRequires: python-setuptools >= 0.6-0.a9.1 | |
12 | %pyrequires_eq python-modules | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | The Python SQL toolkit and Object Relational Mapper that gives application | |
18 | developers the full power and flexibility of SQL. SQLAlchemy provides a | |
19 | full suite of well known enterprise-level persistence patterns, designed for | |
20 | efficient and high-performing database access, adapted into a simple and | |
21 | Pythonic domain languag. | |
22 | ||
23 | %prep | |
24 | %setup -q -n SQLAlchemy-%{version} | |
25 | ||
26 | %build | |
27 | python setup.py build | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | python setup.py install \ | |
32 | --single-version-externally-managed \ | |
33 | --optimize=2 \ | |
34 | --root=$RPM_BUILD_ROOT | |
35 | ||
36 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm -f \{\} \; | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc README CHANGES doc/*html examples/ | |
44 | %{py_sitescriptdir}/SQLAlchemy* | |
45 | %{py_sitescriptdir}/sqlalchemy* |