forked from pool/python-persistent
Accepting request 506524 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/506524 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-persistent
|
||||
#
|
||||
# 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,79 +17,80 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-persistent
|
||||
Version: 4.0.9
|
||||
Version: 4.2.4.2
|
||||
Release: 0
|
||||
Url: https://github.com/zopefoundation/persistent
|
||||
Summary: Translucent persistent objects
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/p/persistent/persistent-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix_32-bit_timestamp_hashcode.patch -- fix timestamp hash computation on 32-bit platform
|
||||
Patch: fix_32-bit_timestamp_hashcode.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-zope.interface
|
||||
Requires: python-zope.interface
|
||||
Url: https://github.com/zopefoundation/persistent
|
||||
Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-repoze.sphinx.autointerface
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%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
|
||||
%package devel
|
||||
Summary: Translucent persistent objects
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
%description devel
|
||||
This package contains the files needed for binding the %{name} C module.
|
||||
|
||||
%package doc
|
||||
%package doc
|
||||
Summary: Translucent persistent objects
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n persistent-%{version}
|
||||
%patch -p1
|
||||
rm -rf persistent.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
%{_python_use_flavor python3}
|
||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
# don't bother with development files
|
||||
rm %{buildroot}%python_sitearch/persistent/*.c
|
||||
%{python_expand rm %{buildroot}%{$python_sitearch}/persistent/*.c
|
||||
%fdupes -s %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec setup.py -q test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||
%exclude %python_sitearch/persistent/*.h
|
||||
%python_sitearch/*
|
||||
%exclude %{python_sitearch}/persistent/*.h
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files devel
|
||||
%files %{python_files devel}
|
||||
%defattr(-,root,root,-)
|
||||
%dir %py_incdir/persistent
|
||||
%py_incdir/persistent/*.h
|
||||
%python_sitearch/persistent/*.h
|
||||
%dir %{python_sysconfig_path include}/persistent
|
||||
%{python_sysconfig_path include}/persistent/*.h
|
||||
%{python_sitearch}/persistent/*.h
|
||||
|
||||
%files doc
|
||||
%files %{python_files doc}
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user