2013-07-30 12:22:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-persistent
|
|
|
|
#
|
2019-03-04 15:22:55 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-03-05 13:45:30 +01:00
|
|
|
# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
|
2013-07-30 12:22:37 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2019-03-04 15:22:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-30 12:22:37 +02:00
|
|
|
#
|
|
|
|
|
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
|
2019-03-04 15:22:55 +01:00
|
|
|
Version: 4.4.3
|
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-08-14 17:03:45 +02:00
|
|
|
# Blocking https://github.com/zopefoundation/persistent/issues/86
|
2018-08-14 16:59:11 +02:00
|
|
|
Patch: persistent-4.2.4.2-switch-off-tests.patch
|
2019-03-04 15:22:55 +01:00
|
|
|
BuildRequires: %{python_module cffi}
|
2017-06-29 10:42:25 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2019-03-04 15:22:55 +01:00
|
|
|
Requires: python-cffi
|
|
|
|
BuildRequires: %{python_module manuel}
|
2017-06-29 10:42:25 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
2019-03-04 15:22:55 +01:00
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
2017-06-29 10:42:25 +02:00
|
|
|
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}
|
2019-03-04 15:23:32 +01:00
|
|
|
Requires: python-devel
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n persistent-%{version}
|
2017-06-29 10:42:25 +02:00
|
|
|
rm -rf persistent.egg-info
|
2019-03-05 13:45:30 +01:00
|
|
|
%autopatch -p1
|
2013-07-30 12:22:37 +02:00
|
|
|
|
|
|
|
%build
|
2017-06-29 10:42:25 +02:00
|
|
|
%python_build
|
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
|
2019-03-04 15:22:55 +01:00
|
|
|
%fdupes %{buildroot}%{$python_sitearch}
|
2017-06-29 10:42:25 +02:00
|
|
|
}
|
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
|
|
|
|
|
|
|
%changelog
|