]>
Commit | Line | Data |
---|---|---|
1 | %define module SQLAlchemy | |
2 | Summary: Database Abstraction Library | |
3 | Summary(pl.UTF-8): Biblioteka abstrakcji baz danych | |
4 | Name: python-SQLAlchemy | |
5 | Version: 0.5.3 | |
6 | Release: 1 | |
7 | License: MIT | |
8 | Group: Libraries/Python | |
9 | Source0: http://dl.sourceforge.net/sqlalchemy/%{module}-%{version}.tar.gz | |
10 | # Source0-md5: 8a03ac93aa28a9f4ea5ecc0557e90954 | |
11 | URL: http://www.sqlalchemy.org/ | |
12 | BuildRequires: python-devel >= 1:2.5 | |
13 | BuildRequires: python-setuptools >= 0.6-0.a9.1 | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | %pyrequires_eq python-modules | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | The Python SQL toolkit and Object Relational Mapper that gives | |
22 | application developers the full power and flexibility of SQL. | |
23 | SQLAlchemy provides a full suite of well known enterprise-level | |
24 | persistence patterns, designed for efficient and high-performing | |
25 | database access, adapted into a simple and Pythonic domain language. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Zestaw narzędzi SQL dla Pythona oraz odwzorowań obiektowo-relacyjnych | |
29 | dających programistom całą potęgę i elastyczność SQL-a. SQLAlchemy | |
30 | udostępnia pełny zbiór dobrze znanych wzorców trwałości, | |
31 | zaprojektowanych do wydajnego dostępu do baz danych, zaadoptowanych do | |
32 | prostej, pythonowej domeny językowej. | |
33 | ||
34 | %prep | |
35 | %setup -q -n %{module}-%{version} | |
36 | ||
37 | %build | |
38 | %{__python} setup.py build | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | %{__python} setup.py install \ | |
43 | --single-version-externally-managed \ | |
44 | --optimize=2 \ | |
45 | --root=$RPM_BUILD_ROOT | |
46 | ||
47 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
48 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
49 | ||
50 | %py_postclean | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc CHANGES README* doc/*.html | |
58 | %{py_sitescriptdir}/SQLAlchemy* | |
59 | %{py_sitescriptdir}/sqlalchemy* | |
60 | %{_examplesdir}/%{name}-%{version} |