forked from pool/python-ZODB
Accepting request 508894 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/508894 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZODB?expand=0&rev=7
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ee85731439e34994e1471a4f27fc556cc24fff58a1b4664baa9250e8bd0ee85f
|
||||
size 461347
|
||||
3
ZODB-5.2.4.tar.gz
Normal file
3
ZODB-5.2.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ecc1c9c1ef494a70ccfc03184bccb72421d72233e9dc4742ac58f5396d04cadf
|
||||
size 510498
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 8 07:07:44 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Update to 5.2.4 (see CHANGES.rst)
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 15 10:52:45 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ZODB
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,23 +17,31 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-ZODB
|
||||
Version: 4.1.0
|
||||
Version: 5.2.4
|
||||
Release: 0
|
||||
Summary: Zope Object Database: object database and persistence
|
||||
License: ZPL-2.1
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.zodb.org/
|
||||
Source: https://pypi.python.org/packages/source/Z/ZODB/ZODB-%{version}.tar.gz
|
||||
BuildRequires: python-BTrees
|
||||
BuildRequires: python-ZConfig
|
||||
BuildRequires: python-persistent-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-transaction
|
||||
BuildRequires: python-zc.lockfile
|
||||
BuildRequires: python-zdaemon >= 4.0.0
|
||||
BuildRequires: python-zope.interface
|
||||
Source: https://files.pythonhosted.org/packages/source/Z/ZODB/ZODB-%{version}.tar.gz
|
||||
BuildRequires: %{python_module BTrees}
|
||||
BuildRequires: %{python_module ZConfig}
|
||||
BuildRequires: %{python_module persistent-devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module transaction}
|
||||
BuildRequires: %{python_module zc.lockfile}
|
||||
BuildRequires: %{python_module zdaemon >= 4.0.0}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
# SECTION test
|
||||
BuildRequires: %{python_module manuel}
|
||||
BuildRequires: %{python_module zodbpickle >= 0.6.0}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-BTrees
|
||||
Requires: python-ZConfig
|
||||
Requires: python-persistent
|
||||
@@ -42,17 +50,11 @@ Requires: python-transaction
|
||||
Requires: python-zc.lockfile
|
||||
Requires: python-zdaemon >= 4.0.0
|
||||
Requires: python-zope.interface
|
||||
# Testing requirements:
|
||||
BuildRequires: python-manuel
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: python-zope.testing
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
The Zope Object Database provides an object-oriented database for Python that
|
||||
@@ -61,12 +63,13 @@ object database features with few, if any, changes to application logic. ZODB
|
||||
includes features such as a plugable storage interface, rich transaction
|
||||
support, and undo.
|
||||
|
||||
%package doc
|
||||
%package -n %{name}-doc
|
||||
Summary: Zope Object Database: object database and persistence
|
||||
Group: Development/Libraries/Python
|
||||
Provides: %{python_module doc = %{version}}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
%description -n %{name}-doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
@@ -75,27 +78,41 @@ This package contains documentation files for %{name}.
|
||||
find . -name "*~" -print -delete
|
||||
# remove unwanted shebang
|
||||
find src -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
||||
rm -rf src/ZODB.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/fsdump
|
||||
%python_clone -a %{buildroot}%{_bindir}/fsoids
|
||||
%python_clone -a %{buildroot}%{_bindir}/fsrefs
|
||||
%python_clone -a %{buildroot}%{_bindir}/fstail
|
||||
%python_clone -a %{buildroot}%{_bindir}/repozo
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_expand rm -f base.fs* && $python setup.py test
|
||||
|
||||
%files
|
||||
%post
|
||||
%python_install_alternative fsdump fsoids fsrefs fstail repozo
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative fsdump
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc 3.11.txt CHANGES.rst COPYRIGHT.txt HISTORY.txt LICENSE.txt README.rst
|
||||
%doc 3.11.txt CHANGES.rst COPYRIGHT.txt HISTORY.rst LICENSE.txt README.rst
|
||||
%{python_sitelib}/*
|
||||
%{_bindir}/fsdump
|
||||
%{_bindir}/fsoids
|
||||
%{_bindir}/fsrefs
|
||||
%{_bindir}/fstail
|
||||
%{_bindir}/repozo
|
||||
%python_alternative %{_bindir}/fsdump
|
||||
%python_alternative %{_bindir}/fsoids
|
||||
%python_alternative %{_bindir}/fsrefs
|
||||
%python_alternative %{_bindir}/fstail
|
||||
%python_alternative %{_bindir}/repozo
|
||||
|
||||
%files doc
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc doc/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user