2013-07-30 12:22:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-persistent
|
|
|
|
#
|
2018-07-19 17:34:00 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-30 12:22:37 +02: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.
|
2014-03-24 20:48:00 +01:00
|
|
|
|
2013-07-30 12:22:37 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-03-24 20:48:00 +01:00
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-07-30 12:22:37 +02:00
|
|
|
Name: python-persistent
|
2017-06-29 10:42:25 +02:00
|
|
|
Version: 4.2.4.2
|
2013-07-30 12:22:37 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Translucent persistent objects
|
|
|
|
License: ZPL-2.1
|
|
|
|
Group: Development/Languages/Python
|
2018-07-19 17:34:00 +02:00
|
|
|
URL: https://github.com/zopefoundation/persistent
|
2017-06-29 10:42:25 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz
|
2018-07-19 17:34:00 +02:00
|
|
|
Patch0: persistent-4.2.4.2-switch-off-tests.patch
|
2013-07-30 12:22:37 +02:00
|
|
|
# Documentation requirements:
|
2017-06-29 10:42:25 +02:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module repoze.sphinx.autointerface}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-zope.interface
|
|
|
|
%python_subpackages
|
2013-07-30 12:22:37 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a generic persistence implementation for Python. It forms
|
|
|
|
the core protocol for making objects interact "transparently" with a database
|
|
|
|
such as the ZODB.
|
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%package devel
|
2013-07-30 12:22:37 +02:00
|
|
|
Summary: Translucent persistent objects
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{name} = %{version}
|
2018-07-26 10:35:39 +02:00
|
|
|
Requires: python-base
|
2013-07-30 12:22:37 +02:00
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%description devel
|
2013-07-30 12:22:37 +02:00
|
|
|
This package contains the files needed for binding the %{name} C module.
|
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%package doc
|
2013-07-30 12:22:37 +02:00
|
|
|
Summary: Translucent persistent objects
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%description doc
|
2013-07-30 12:22:37 +02:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n persistent-%{version}
|
2017-06-29 10:42:25 +02:00
|
|
|
rm -rf persistent.egg-info
|
2018-07-19 17:34:00 +02:00
|
|
|
%patch0 -p1
|
2013-07-30 12:22:37 +02:00
|
|
|
|
|
|
|
%build
|
2017-06-29 10:42:25 +02:00
|
|
|
%python_build
|
|
|
|
%{_python_use_flavor python3}
|
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2013-07-30 12:22:37 +02:00
|
|
|
|
|
|
|
%install
|
2017-06-29 10:42:25 +02:00
|
|
|
%python_install
|
2013-07-30 12:22:37 +02:00
|
|
|
# don't bother with development files
|
2017-06-29 10:42:25 +02:00
|
|
|
%{python_expand rm %{buildroot}%{$python_sitearch}/persistent/*.c
|
|
|
|
%fdupes -s %{buildroot}%{$python_sitearch}
|
|
|
|
}
|
2013-07-30 12:22:37 +02:00
|
|
|
|
|
|
|
%check
|
2018-07-19 17:34:00 +02:00
|
|
|
find . -name \*.pyc -delete
|
|
|
|
%python_exec setup.py test -v
|
2013-07-30 12:22:37 +02:00
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%files %{python_files}
|
2018-07-19 17:34:00 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
2017-06-29 10:42:25 +02:00
|
|
|
%exclude %{python_sitearch}/persistent/*.h
|
|
|
|
%{python_sitearch}/*
|
2013-07-30 12:22:37 +02:00
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%files %{python_files devel}
|
|
|
|
%dir %{python_sysconfig_path include}/persistent
|
|
|
|
%{python_sysconfig_path include}/persistent/*.h
|
|
|
|
%{python_sitearch}/persistent/*.h
|
2013-07-30 12:22:37 +02:00
|
|
|
|
2017-06-29 10:42:25 +02:00
|
|
|
%files %{python_files doc}
|
2013-07-30 12:22:37 +02:00
|
|
|
%doc build/sphinx/html/
|
|
|
|
|
|
|
|
%changelog
|