X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=python-SQLAlchemy.spec;h=5f2f0ede33c1842f84e537074c07cded4131013d;hb=refs%2Ftags%2Fauto%2Fth%2Fpython-SQLAlchemy-0.6.9-1;hp=61723f779487428ce5625751831f0eca1c317d38;hpb=0f2669474fd140a583dd4f5404fd197485ae9245;p=packages%2Fpython-sqlalchemy.git diff --git a/python-SQLAlchemy.spec b/python-SQLAlchemy.spec index 61723f7..5f2f0ed 100644 --- a/python-SQLAlchemy.spec +++ b/python-SQLAlchemy.spec @@ -1,27 +1,30 @@ # TODO: # - examples and docs for python3 +# - builds, but got syntax errors when buildings # -%bcond_without python3 -%bcond_without python2 +%bcond_without python2 # CPython 2.x module +%bcond_without python3 # CPython 3.x module + %define module SQLAlchemy -# Summary: Database Abstraction Library Summary(pl.UTF-8): Biblioteka abstrakcji baz danych -Name: python-SQLAlchemy -Version: 0.6.0 +Name: python-%{module} +Version: 0.6.9 Release: 1 License: MIT Group: Libraries/Python Source0: http://downloads.sourceforge.net/sqlalchemy/%{module}-%{version}.tar.gz -# Source0-md5: 575c2ca742e9ab3c08c384dbc4861f86 +# Source0-md5: 518c5eeca5623bb1fbac74f6917f922a URL: http://www.sqlalchemy.org/ %if %{with python2} BuildRequires: python-devel >= 1:2.4 +BuildRequires: python-distribute BuildRequires: python-setuptools >= 0.6-0.a9.1 %endif %if %{with python3} +BuildRequires: python3-2to3 BuildRequires: python3-devel -BuildRequires: python3-distribute +BuildRequires: python3-modules %endif BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.219 @@ -63,7 +66,7 @@ database access, adapted into a simple and Pythonic domain language. Python 3.x version. -%description -l pl.UTF-8 -n python3-%{module} +%description -n python3-%{module} -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, @@ -98,11 +101,8 @@ rm -rf $RPM_BUILD_ROOT %if %{with python3} %{__python3} setup.py build -b build-3 \ install \ - --single-version-externally-managed \ --root=$RPM_BUILD_ROOT \ --optimize=2 - -%py3_postclean %endif install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} @@ -118,7 +118,9 @@ rm -rf $RPM_BUILD_ROOT %{py_sitescriptdir}/sqlalchemy* %{_examplesdir}/%{name}-%{version} +%if %{with python3} %files -n python3-%{module} %defattr(644,root,root,755) %{py3_sitescriptdir}/SQLAlchemy* %{py3_sitescriptdir}/sqlalchemy* +%endif