2 # - examples and docs for python3
3 # builds, but got syntax errors when buildings
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 %define module sqlalchemy
9 Summary: Database Abstraction Library
10 Summary(pl.UTF-8): Biblioteka abstrakcji baz danych
11 Name: python-%{module}
15 Group: Libraries/Python
16 Source0: https://pypi.python.org/packages/be/d1/0008f4ee8d8eaae328efbf9cc513c1bee6f6793de11ab82cb31b3045ee06/SQLAlchemy-%{version}.tar.gz
17 # Source0-md5: 25c02c5715f681f10decad0ef07e3afc
18 URL: http://www.sqlalchemy.org/
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.710
22 BuildRequires: python-devel >= 1:2.4
23 BuildRequires: python-distribute
24 BuildRequires: python-setuptools >= 0.6-0.a9.1
27 BuildRequires: python3-2to3
28 BuildRequires: python3-devel
29 BuildRequires: python3-modules
32 Requires: python-modules
34 Provides: python-SQLAlchemy = %{version}-%{release}
35 Obsoletes: python-SQLAlchemy < 0.9.8
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 The Python SQL toolkit and Object Relational Mapper that gives
40 application developers the full power and flexibility of SQL.
41 SQLAlchemy provides a full suite of well known enterprise-level
42 persistence patterns, designed for efficient and high-performing
43 database access, adapted into a simple and Pythonic domain language.
47 %description -l pl.UTF-8
48 Zestaw narzędzi SQL dla Pythona oraz odwzorowań obiektowo-relacyjnych
49 dających programistom całą potęgę i elastyczność SQL-a. SQLAlchemy
50 udostępnia pełny zbiór dobrze znanych wzorców trwałości,
51 zaprojektowanych do wydajnego dostępu do baz danych, zaadoptowanych do
52 prostej, pythonowej domeny językowej.
54 Wersja dla pythona 2.x.
56 %package -n python3-%{module}
57 Summary: Database Abstraction Library
58 Summary(pl.UTF-8): Biblioteka abstrakcji baz danych
59 Group: Libraries/Python
60 Provides: python3-SQLAlchemy = %{version}-%{release}
61 Obsoletes: python3-SQLAlchemy < 0.9.8
63 %description -n python3-%{module}
64 The Python SQL toolkit and Object Relational Mapper that gives
65 application developers the full power and flexibility of SQL.
66 SQLAlchemy provides a full suite of well known enterprise-level
67 persistence patterns, designed for efficient and high-performing
68 database access, adapted into a simple and Pythonic domain language.
72 %description -n python3-%{module} -l pl.UTF-8
73 Zestaw narzędzi SQL dla Pythona oraz odwzorowań obiektowo-relacyjnych
74 dających programistom całą potęgę i elastyczność SQL-a. SQLAlchemy
75 udostępnia pełny zbiór dobrze znanych wzorców trwałości,
76 zaprojektowanych do wydajnego dostępu do baz danych, zaadoptowanych do
77 prostej, pythonowej domeny językowej.
79 Wersja dla Pythona 3.x.
82 %setup -q -n SQLAlchemy-%{version}
87 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
92 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
97 rm -rf $RPM_BUILD_ROOT
100 --single-version-externally-managed \
102 --root=$RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
112 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
115 rm -rf $RPM_BUILD_ROOT
118 %defattr(644,root,root,755)
119 %doc CHANGES README* doc/*.html
120 %{py_sitedir}/sqlalchemy
121 %{py_sitedir}/SQLAlchemy-%{version}-py*.egg-info
122 %{_examplesdir}/%{name}-%{version}
125 %files -n python3-%{module}
126 %defattr(644,root,root,755)
127 %{py3_sitedir}/sqlalchemy
128 %{py3_sitedir}/SQLAlchemy-%{version}-py*.egg-info