Accepting request 1287765 from devel:languages:python
- 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/request/show/1287765 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-endesive?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e8b259161d4fa1fc141cfe2ed735631e397d8736b8b6c5ca56631f8b73b233ec
|
||||
size 30902433
|
||||
3
endesive-2.18.5.tar.gz
Normal file
3
endesive-2.18.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ebc4cf32d614145ddec9e5ce47d2947bc60d302de9444c5ea82fb02c40151507
|
||||
size 1231680
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 23 01:26:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user