commit 2d29aa14c96fb3479c6dffddee365e8125c067d83c89fa1e9d0588a36d811057 Author: Todd R Date: Tue Sep 10 11:11:04 2013 +0000 Accepting request 198178 from home:frispete:python Here's the requested package with Saschas issues addressed. OBS-URL: https://build.opensuse.org/request/show/198178 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZEO?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ZEO-4.0.0b1.tar.gz b/ZEO-4.0.0b1.tar.gz new file mode 100644 index 0000000..706c2f4 --- /dev/null +++ b/ZEO-4.0.0b1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6f8eaf2fac57f7b5ba16dac5c1a0d43d06683b1b5ba2e2906cb6bdfff883b2f +size 205692 diff --git a/python-ZEO.changes b/python-ZEO.changes new file mode 100644 index 0000000..31a61fb --- /dev/null +++ b/python-ZEO.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 10 08:24:46 UTC 2013 - hpj@urpla.net + +- package supports update-alternatives now + +------------------------------------------------------------------- +Tue Aug 6 23:38:03 UTC 2013 - hpj@urpla.net + +- version 4.0.0b1: initial build + diff --git a/python-ZEO.spec b/python-ZEO.spec new file mode 100644 index 0000000..f1f751c --- /dev/null +++ b/python-ZEO.spec @@ -0,0 +1,132 @@ +# +# spec file for package python-ZEO +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 LISA GmbH, Bingen, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: python-ZEO +Version: 4.0.0b1 +Release: 0 +Url: http://docs.pylonsproject.org +Summary: Client-Server storage implementation for ZODB +License: ZPL-2.1 +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/Z/ZEO/ZEO-%{version}.tar.gz +Requires: python-ZODB >= 4.0.0 +Requires: python-transaction +Requires: python-persistent +Requires: python-zc.lockfile +Requires: python-ZConfig +Requires: python-zdaemon +Requires: python-zope.interface +BuildRequires: python-ZODB >= 4.0.0 +BuildRequires: python-transaction +BuildRequires: python-persistent +BuildRequires: python-zc.lockfile +BuildRequires: python-ZConfig +BuildRequires: python-zdaemon +BuildRequires: python-zope.interface + +BuildRequires: python-six +# Documentation requirements: +BuildRequires: python-Sphinx +# Testing requirements: +BuildRequires: python-zope.testing +BuildRequires: python-manuel +BuildRequires: python-random2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +BuildRequires: python-ordereddict +BuildRequires: python-unittest2 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +ZEO provides a client-server storage implementation for ZODB. + + +%package doc +Summary: Client-Server storage implementation for ZODB +Group: Development/Languages/Python +Requires: %{name} = %{version} + +%description doc +This package contains documentation files for %{name}. + +%prep +%setup -q -n ZEO-%{version} + +%build +python setup.py build +python setup.py build_sphinx && rm build/sphinx/html/.buildinfo + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +chmod 755 %{buildroot}%{python_sitelib}/ZEO/scripts/{parsezeolog,timeout,zeoqueue,cache_simul}.py +chmod 755 %{buildroot}%{python_sitelib}/ZEO/scripts/{zeoserverlog,zeoreplay,zeopack,zeoup}.py +chmod 755 %{buildroot}%{python_sitelib}/ZEO/zeoctl.py +for fn in runzeo zeoctl zeopack zeopasswd; do + mv %{buildroot}%{_bindir}/$fn %{buildroot}%{_bindir}/$fn-%{py_ver} + ln -s %{_bindir}/$fn-%{py_ver} %{buildroot}%{_bindir}/$fn +done + +%check +python setup.py test + +%pre +# Since binaries in /usr/bin became ghosted to be used with update-alternatives, we have +# to get rid of the old binaries resulting from the non-update-alternativies-ified package: +[[ ! -L %{_bindir}/runzeo ]] && rm -f %{_bindir}/runzeo +[[ ! -L %{_bindir}/zeoctl ]] && rm -f %{_bindir}/zeoctl +[[ ! -L %{_bindir}/zeopack ]] && rm -f %{_bindir}/zeopack +[[ ! -L %{_bindir}/zeopasswd ]] && rm -f %{_bindir}/zeopasswd +exit 0 + +%post +update-alternatives \ + --install %{_bindir}/runzeo runzeo %{_bindir}/runzeo-%{py_ver} 20 \ + --slave %{_bindir}/zeoctl zeoctl %{_bindir}/zeoctl-%{py_ver} \ + --slave %{_bindir}/zeopack zeopack %{_bindir}/zeopack-%{py_ver} \ + --slave %{_bindir}/zeopasswd zeopasswd %{_bindir}/zeopasswd-%{py_ver} \ + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove runzeo %{_bindir}/runzeo-%{py_ver} +fi + +%files +%defattr(-,root,root,-) +%doc CHANGES.txt COPYING COPYRIGHT.txt LICENSE.txt README.txt +%ghost %attr(0755,root,root) %{_bindir}/runzeo +%{_bindir}/runzeo-%{py_ver} +%ghost %attr(0755,root,root) %{_bindir}/zeoctl +%{_bindir}/zeoctl-%{py_ver} +%ghost %attr(0755,root,root) %{_bindir}/zeopack +%{_bindir}/zeopack-%{py_ver} +%ghost %attr(0755,root,root) %{_bindir}/zeopasswd +%{_bindir}/zeopasswd-%{py_ver} +%{python_sitelib}/ZEO +%{python_sitelib}/ZEO-%{version}-py%{py_ver}.egg-info + +%files doc +%defattr(-,root,root,-) +%doc build/sphinx/html + +%changelog