2013-08-12 08:38:52 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-ZODB
|
|
|
|
|
#
|
2015-05-16 15:34:18 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-08-12 08:38:52 +00:00
|
|
|
# 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-ZODB
|
2015-05-16 15:34:18 +00:00
|
|
|
Version: 4.1.0
|
2013-08-12 08:38:52 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Zope Object Database: object database and persistence
|
|
|
|
|
License: ZPL-2.1
|
|
|
|
|
Group: Development/Libraries/Python
|
2014-02-01 23:57:35 +00:00
|
|
|
Url: http://www.zodb.org/
|
2013-08-12 08:38:52 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/Z/ZODB/ZODB-%{version}.tar.gz
|
|
|
|
|
BuildRequires: python-BTrees
|
|
|
|
|
BuildRequires: python-ZConfig
|
2014-02-01 23:57:35 +00:00
|
|
|
BuildRequires: python-persistent-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
2013-08-12 08:38:52 +00:00
|
|
|
BuildRequires: python-six
|
2014-02-01 23:57:35 +00:00
|
|
|
BuildRequires: python-transaction
|
2013-08-12 08:38:52 +00:00
|
|
|
BuildRequires: python-zc.lockfile
|
|
|
|
|
BuildRequires: python-zdaemon >= 4.0.0
|
|
|
|
|
BuildRequires: python-zope.interface
|
2014-02-01 23:57:35 +00:00
|
|
|
Requires: python-BTrees
|
|
|
|
|
Requires: python-ZConfig
|
2013-08-12 08:38:52 +00:00
|
|
|
Requires: python-persistent
|
2014-02-01 23:57:35 +00:00
|
|
|
Requires: python-six
|
|
|
|
|
Requires: python-transaction
|
|
|
|
|
Requires: python-zc.lockfile
|
|
|
|
|
Requires: python-zdaemon >= 4.0.0
|
2013-08-12 08:38:52 +00:00
|
|
|
Requires: python-zope.interface
|
|
|
|
|
# Testing requirements:
|
|
|
|
|
BuildRequires: python-manuel
|
|
|
|
|
BuildRequires: python-xml
|
|
|
|
|
BuildRequires: python-zope.testing
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Zope Object Database provides an object-oriented database for Python that
|
|
|
|
|
provides a high-degree of transparency. Applications can take advantage of
|
|
|
|
|
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
|
|
|
|
|
Summary: Zope Object Database: object database and persistence
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n ZODB-%{version}
|
2015-05-16 15:34:18 +00:00
|
|
|
# delete backup files
|
|
|
|
|
find . -name "*~" -print -delete
|
|
|
|
|
# remove unwanted shebang
|
|
|
|
|
find src -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
2013-08-12 08:38:52 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
2015-05-16 15:34:18 +00:00
|
|
|
python setup.py -q test
|
2013-08-12 08:38:52 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc 3.11.txt CHANGES.rst COPYRIGHT.txt HISTORY.txt LICENSE.txt README.rst
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%{_bindir}/fsdump
|
|
|
|
|
%{_bindir}/fsoids
|
|
|
|
|
%{_bindir}/fsrefs
|
|
|
|
|
%{_bindir}/fstail
|
|
|
|
|
%{_bindir}/repozo
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc doc/
|
|
|
|
|
|
|
|
|
|
%changelog
|