From 3f1b8772060bd452db1bd8d18b35925a43cd7a318d79f871a066adbf03a78b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 7 Nov 2024 10:45:46 +0000 Subject: [PATCH] - Update to 4.3 * Sub-class containers from abstract base types. * Use updated trashcan macros. - Add fdupes to BuildRequires - Adjust upstream source name in spec file - Limit Python files matched in %files section - Run %fdupes to eliminate duplicates from Python directory - Switch package to modern Python Stack on SLE-15 * Use Python 3.11 on SLE-15 by default * Add Obsoletes for old python3 package on SLE-15 * Drop support for older Python versions - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install * Update name for dist directory in %files section OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Durus?expand=0&rev=17 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + Durus-4.2.tar.gz | 3 ++ durus-4.3.tar.gz | 3 ++ python-Durus.changes | 74 ++++++++++++++++++++++++++++++++++++++++++++ python-Durus.spec | 72 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Durus-4.2.tar.gz create mode 100644 durus-4.3.tar.gz create mode 100644 python-Durus.changes create mode 100644 python-Durus.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Durus-4.2.tar.gz b/Durus-4.2.tar.gz new file mode 100644 index 0000000..139eb41 --- /dev/null +++ b/Durus-4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c440f0a3ed3b9427506e19c957a0c6bc6cb69cc6cf7e8b2c48f73f50779fdbf +size 82456 diff --git a/durus-4.3.tar.gz b/durus-4.3.tar.gz new file mode 100644 index 0000000..4d04942 --- /dev/null +++ b/durus-4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:690334236ea3ba8d966e3aecce025477909d6b240d0b3203d3327f6243726007 +size 82767 diff --git a/python-Durus.changes b/python-Durus.changes new file mode 100644 index 0000000..c40f08b --- /dev/null +++ b/python-Durus.changes @@ -0,0 +1,74 @@ +------------------------------------------------------------------- +Thu Nov 7 08:51:48 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 4.3 + * Sub-class containers from abstract base types. + * Use updated trashcan macros. +- Add fdupes to BuildRequires +- Adjust upstream source name in spec file +- Limit Python files matched in %files section +- Run %fdupes to eliminate duplicates from Python directory +- Switch package to modern Python Stack on SLE-15 + * Use Python 3.11 on SLE-15 by default + * Add Obsoletes for old python3 package on SLE-15 + * Drop support for older Python versions +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install + * Update name for dist directory in %files section + +------------------------------------------------------------------- +Thu Oct 28 03:37:51 UTC 2021 - Steve Kowalik + +- Update to 4.2: + * Use setuptools. + * Set zip_safe to False. + * Remove reference to DurusWorks. + * Use python3 for scripts. + * Small optimization for setting _p_* attributes. + * Pickler.clear_memo() can get slow. Work-around that issue. + * When finishing FileStorage commit, log file size. + * Order pack todo queue by file offset. + * Add support for an inherited server socket. + * Improve db_to_py3k.py script. + * Move scripts to 'bin' directory. + * Define separate methods for PersistentSet. + * Add --storage-class option to 'durus' command line tool. + * Fix suble bug in FileStorage2 packer. + * Add create_from_records() method. + * Restore DFS20 file storage format. +- Remove nose from BuildRequires. + +------------------------------------------------------------------- +Thu Sep 10 15:31:40 UTC 2020 - pgajdos@suse.com + +- note this package does not use nose for testing at all + +------------------------------------------------------------------- +Tue Nov 5 09:52:43 UTC 2019 - Tomáš Chvátal + +- Format with spec-cleaner + +------------------------------------------------------------------- +Thu Aug 24 13:37:52 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- +Sun Apr 14 14:00:06 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Fri Mar 23 14:36:27 UTC 2012 - cfarrell@suse.com + +- license update: CNRI-Python + SPDX + +------------------------------------------------------------------- +Wed Sep 22 09:41:26 UTC 2011 - saschpe@suse.de + +- Initial version + + diff --git a/python-Durus.spec b/python-Durus.spec new file mode 100644 index 0000000..befca1c --- /dev/null +++ b/python-Durus.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-Durus +# +# Copyright (c) 2021 SUSE LLC +# +# 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/ +# + +%{?sle15_python_module_pythons} +Name: python-Durus +Version: 4.3 +Release: 0 +Summary: A Python Object Database +License: CNRI-Python +URL: https://www.mems-exchange.org/software/durus/ +Source: https://files.pythonhosted.org/packages/source/d/durus/durus-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives +%python_subpackages + +%description +Serves and manages changes to persistent objects being used in +multiple client processes. + +%prep +%setup -q -n durus-%{version} +# Fix non-executable scripts +sed -i "1d" bin/db_renumber.py +sed -i "1d" durus/__main__.py + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/durus +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%post +%python_install_alternative durus + +%postun +%python_uninstall_alternative durus + +%check +# TODO, uses sancho's utest format from 2005 on +# see CHANGES.txt + +%files %{python_files} +%license LICENSE.txt +%doc ACKS.txt CHANGES.txt README.md doc/FAQ.txt +%python_alternative %{_bindir}/durus +%{python_sitearch}/durus +%{python_sitearch}/Durus-%{version}.dist-info + +%changelog