python-persistent/python-persistent.spec
Tomáš Chvátal 824630027e Accepting request 784299 from home:mcalabkova:branches:devel:languages:python
- update to 4.6.1
  * Stop installing C header files on PyPy
  * Fix slicing of PersistentList to always return instances of the same class.
  * Fix copying of PersistentList and PersistentMapping using copy.copy 
    to also copy the underlying data object.
  * Update the handling of the PURE_PYTHON environment variable.
  * Add preliminary support for Python 3.9a3+.
  * Fix the Python implementation of the PickleCache to be able to 
    store objects that cannot be weakly referenced. 
  * Add support for Python 3.8.

OBS-URL: https://build.opensuse.org/request/show/784299
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=22
2020-03-12 13:48:17 +00:00

85 lines
2.6 KiB
RPMSpec

#
# spec file for package python-persistent
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2013-2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-persistent
Version: 4.6.1
Release: 0
Summary: Translucent persistent objects
License: ZPL-2.1
Group: Development/Languages/Python
URL: https://github.com/zopefoundation/persistent
Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel}
Requires: python-cffi
BuildRequires: %{python_module manuel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zope.interface}
BuildRequires: %{python_module zope.testrunner}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-zope.interface
%python_subpackages
%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.
%package devel
Summary: Translucent persistent objects
Group: Development/Languages/Python
Requires: %{name} = %{version}
Requires: python-devel
%description devel
This package contains the files needed for binding the %{name} C module.
%prep
%setup -q -n persistent-%{version}
rm -rf persistent.egg-info
%build
%python_build
%install
%python_install
# don't bother with development files
%{python_expand rm %{buildroot}%{$python_sitearch}/persistent/*.c
%fdupes %{buildroot}%{$python_sitearch}
}
%check
find . -name \*.pyc -delete
%python_exec setup.py test -v
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst COPYRIGHT.txt README.rst
%exclude %{python_sitearch}/persistent/*.h
%{python_sitearch}/*
%files %{python_files devel}
%dir %{python_sysconfig_path include}/persistent
%{python_sysconfig_path include}/persistent/*.h
%{python_sitearch}/persistent/*.h
%changelog