[python-zope-sqlalchemy] Update to 0.7.2 (#760950) and build a Python3 subpackage
Luke Macken
lmacken at fedoraproject.org
Thu Apr 11 16:04:53 UTC 2013
commit ee7c76c951edf2970ecb149c6b22fcf6b81ba9c4
Author: Luke Macken <lmacken at redhat.com>
Date: Thu Apr 11 12:04:39 2013 -0400
Update to 0.7.2 (#760950) and build a Python3 subpackage
.gitignore | 1 +
python-zope-sqlalchemy.spec | 69 +++++++++++++++++++++++++++++++++++++++---
sources | 2 +-
3 files changed, 66 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c55d13b..30437fc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
zope.sqlalchemy-0.4.tar.gz
/zope.sqlalchemy-0.6.tar.gz
/zope.sqlalchemy-0.6.1.tar.gz
+/zope.sqlalchemy-0.7.2.zip
diff --git a/python-zope-sqlalchemy.spec b/python-zope-sqlalchemy.spec
index 60007dc..5957e3c 100644
--- a/python-zope-sqlalchemy.spec
+++ b/python-zope-sqlalchemy.spec
@@ -1,36 +1,82 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%endif
+
Name: python-zope-sqlalchemy
-Version: 0.6.1
-Release: 5%{?dist}
+Version: 0.7.2
+Release: 1%{?dist}
Summary: Minimal Zope/SQLAlchemy transaction integration
Group: Development/Languages
License: ZPLv2.1
URL: http://pypi.python.org/pypi/zope.sqlalchemy
-Source0: http://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalchemy-%{version}.tar.gz
+Source0: http://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalchemy-%{version}.zip
BuildArch: noarch
-BuildRequires: python-devel python-setuptools-devel
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-zope-testing
+
Requires: python-transaction
Requires: python-sqlalchemy >= 0.5.1
Requires: python-zope-interface
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-zope-testing
+
+Requires: python3-transaction
+Requires: python3-sqlalchemy >= 0.5.1
+Requires: python3-zope-interface
+%endif
+
+
%description
The aim of this package is to unify the plethora of existing packages
integrating SQLAlchemy with Zope's transaction management. As such it seeks
only to provide a data manager and makes no attempt to define a zopeish way to
configure engines.
+%if 0%{?with_python3}
+%package -n python3-zope-sqlalchemy
+Summary: Minimal Zope/SQLAlchemy transaction integration with Python 3 support
+Group: Development/Languages
+
+%description -n python3-zope-sqlalchemy
+The aim of this package is to unify the plethora of existing packages
+integrating SQLAlchemy with Zope's transaction management. As such it seeks
+only to provide a data manager and makes no attempt to define a zopeish way to
+configure engines.
+%endif
%prep
%setup -q -n zope.sqlalchemy-%{version}
+# Remove bundled egg-info in case it exists
+rm -rf %{modname}.egg-info
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
%build
%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
%install
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
%files
@@ -40,9 +86,22 @@ configure engines.
%{python_sitelib}/*
%exclude %{python_sitelib}/zope/sqlalchemy/*.txt
+%if 0%{?with_python3}
+%files -n python3-zope-sqlalchemy
+%doc src/zope/sqlalchemy/README.txt
+%doc CHANGES.txt COPYRIGHT.txt CREDITS.txt LICENSE.txt
+# Co-own %%{python_sitelib}/zope/
+%{python3_sitelib}/*
+%exclude %{python3_sitelib}/zope/sqlalchemy/*.txt
+%endif
%changelog
+* Thu Apr 11 2013 Luke Macken <lmacken at redhat.com> - 0.7.2-1
+- Update to 0.7.2 (#760950)
+- Build a python3 subpackage
+- Modernize spec
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
diff --git a/sources b/sources
index 47a24c9..c8381b0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-581205d24a7c87d1e8fa627a32a49bad zope.sqlalchemy-0.6.1.tar.gz
+b654e5d144ed141e13b42591a21a4868 zope.sqlalchemy-0.7.2.zip
More information about the scm-commits
mailing list