From 7b775f39ce9bd7914b80f52fb4a81709e0ffc64cba04c8944bbd7291aaa3d6e0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 23 Jun 2025 01:26:38 +0000 Subject: [PATCH] - Update to 2.18.5: * Custom signature text * Remove oscrypto dependency * Incompatibility with PAdES Signature Validation - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-endesive?expand=0&rev=5 --- endesive-2.17.3.tar.gz | 3 --- endesive-2.18.5.tar.gz | 3 +++ python-endesive.changes | 9 +++++++++ python-endesive.spec | 35 ++++++++++++++++++----------------- 4 files changed, 30 insertions(+), 20 deletions(-) delete mode 100644 endesive-2.17.3.tar.gz create mode 100644 endesive-2.18.5.tar.gz diff --git a/endesive-2.17.3.tar.gz b/endesive-2.17.3.tar.gz deleted file mode 100644 index b10bb37..0000000 --- a/endesive-2.17.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8b259161d4fa1fc141cfe2ed735631e397d8736b8b6c5ca56631f8b73b233ec -size 30902433 diff --git a/endesive-2.18.5.tar.gz b/endesive-2.18.5.tar.gz new file mode 100644 index 0000000..0f39c2b --- /dev/null +++ b/endesive-2.18.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebc4cf32d614145ddec9e5ce47d2947bc60d302de9444c5ea82fb02c40151507 +size 1231680 diff --git a/python-endesive.changes b/python-endesive.changes index b423be3..655aba1 100644 --- a/python-endesive.changes +++ b/python-endesive.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Jun 23 01:26:19 UTC 2025 - Steve Kowalik + +- Update to 2.18.5: + * Custom signature text + * Remove oscrypto dependency + * Incompatibility with PAdES Signature Validation +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Nov 6 15:19:26 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-endesive.spec b/python-endesive.spec index e6a02db..4650235 100644 --- a/python-endesive.spec +++ b/python-endesive.spec @@ -1,7 +1,7 @@ # # spec file for package python-endesive # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,41 +18,41 @@ %{?sle15_python_module_pythons} Name: python-endesive -Version: 2.17.3 +Version: 2.18.5 Release: 0 Summary: Library for digital signing and verification of digital signatures License: MIT URL: https://github.com/m32/endesive Source: https://github.com/m32/endesive/archive/refs/tags/v%{version}.tar.gz#/endesive-%{version}.tar.gz -BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest} +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module PyKCS11} BuildRequires: %{python_module asn1crypto} BuildRequires: %{python_module attrs} BuildRequires: %{python_module certvalidator} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module lxml} -BuildRequires: %{python_module oscrypto} BuildRequires: %{python_module paramiko} -BuildRequires: %{python_module Pillow} -BuildRequires: %{python_module PyKCS11} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests} -BuildRequires: softhsm BuildRequires: openssh BuildRequires: openssl +BuildRequires: softhsm # /SECTION BuildRequires: fdupes +Requires: python-Pillow +Requires: python-PyKCS11 Requires: python-asn1crypto Requires: python-attrs Requires: python-certvalidator Requires: python-cryptography Requires: python-lxml -Requires: python-oscrypto Requires: python-paramiko -Requires: python-Pillow -Requires: python-PyKCS11 Requires: python-pytz Requires: python-requests BuildArch: noarch @@ -63,18 +63,15 @@ Library for digital signing and verification of digital signatures in mail, PDF %prep %setup -q -n endesive-%{version} -# Fix version on __init__.py file, files were generated with incorrect name because of this and -# endesive-%{version}*-info could not find them. -sed -i 's|2.17.1|2.17.2|g' endesive/__init__.py # Set correct path to find the softhsm library, needed for test_create and test_load sed -i 's|softhsm/libsofthsm2.so|pkcs11/libsofthsm2.so|g' tests/test_hsm.py find . -name "*.py" -exec sed -i '/\/usr\/bin\/env.*python.*/d' {} \; %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -82,13 +79,17 @@ find . -name "*.py" -exec sed -i '/\/usr\/bin\/env.*python.*/d' {} \; eval $(ssh-agent) export PYTHONPATH='tests' # Deselect tests that require, respectively, font installation and network connection -%pytest -k 'not test_pdf_signature_manual and not test_pdf_timestamp' +donttest="test_pdf_signature_manual or test_pdf_timestamp" +# ... or cause the interpreter to segfault +donttest+=" or test_email_signed_attr or test_pdf or test_plain_ssl_noattr" +donttest+=" or test_plain_ssl_attr" +%pytest -k "not ($donttest)" ssh-agent -k %files %{python_files} %doc README.rst changelog.md %license LICENSE LICENSE.pdf-annotate LICENSE.pyfpdf LICENSE.pypdf2 %{python_sitelib}/endesive -%{python_sitelib}/endesive-%{version}*-info +%{python_sitelib}/endesive-%{version}.dist-info %changelog