Summary: Database Abstraction Library
+Summary(pl.UTF-8): Biblioteka abstrakcji baz danych
Name: python-SQLAlchemy
-Version: 0.1.7
+Version: 0.5.2
Release: 1
-Group: Development/Languages/Python
License: MIT
-Source0: http://cheeseshop.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
-# Source0-md5: 1c9c0124ad057c9fbcf8c4e16ecae960
+Group: Libraries/Python
+Source0: http://dl.sourceforge.net/sqlalchemy/SQLAlchemy-%{version}.tar.gz
+# Source0-md5: d2b041f5877bf108b8ecf7a624e1bec0
URL: http://www.sqlalchemy.org/
BuildRequires: python-devel
BuildRequires: python-setuptools >= 0.6-0.a9.1
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
%pyrequires_eq python-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The Python SQL toolkit and Object Relational Mapper that gives application
-developers the full power and flexibility of SQL. SQLAlchemy provides a
-full suite of well known enterprise-level persistence patterns, designed for
-efficient and high-performing database access, adapted into a simple and
-Pythonic domain languag.
+The Python SQL toolkit and Object Relational Mapper that gives
+application developers the full power and flexibility of SQL.
+SQLAlchemy provides a full suite of well known enterprise-level
+persistence patterns, designed for efficient and high-performing
+database access, adapted into a simple and Pythonic domain language.
+
+%description -l pl.UTF-8
+Zestaw narzędzi SQL dla Pythona oraz odwzorowań
+obiektowo-relacyjnych dających programistom całą potęgę i
+elastyczność SQL-a. SQLAlchemy udostępnia pełny zbiór dobrze
+znanych wzorców trwałości, zaprojektowanych do wydajnego dostępu
+do baz danych, zaadoptowanych do prostej, pythonowej domeny
+językowej.
%prep
%setup -q -n SQLAlchemy-%{version}
%build
-python setup.py build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install \
+%{__python} setup.py install \
--single-version-externally-managed \
--optimize=2 \
--root=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm -f \{\} \;
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README CHANGES doc/*html examples/
+%doc CHANGES README* doc/*.html
%{py_sitescriptdir}/SQLAlchemy*
%{py_sitescriptdir}/sqlalchemy*
+%{_examplesdir}/%{name}-%{version}/