From d6d65a724bee5f285493653258623d91567a2a0c5765fb9169b0739cd70eec4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 Aug 2024 12:03:40 +0000 Subject: [PATCH] Accepting request 1195607 from home:yeey:OpenWebUI python-endesive, needed for python-fpdf2 OBS-URL: https://build.opensuse.org/request/show/1195607 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-endesive?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + endesive-2.17.2.tar.gz | 3 ++ python-endesive.changes | 9 ++++ python-endesive.spec | 93 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 endesive-2.17.2.tar.gz create mode 100644 python-endesive.changes create mode 100644 python-endesive.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/endesive-2.17.2.tar.gz b/endesive-2.17.2.tar.gz new file mode 100644 index 0000000..1e85f27 --- /dev/null +++ b/endesive-2.17.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d05bd9d3160a05d46b5113b395dec4ff650833694ab58386240f2b486bd69e3 +size 30902446 diff --git a/python-endesive.changes b/python-endesive.changes new file mode 100644 index 0000000..2747ebc --- /dev/null +++ b/python-endesive.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 22 20:51:33 UTC 2024 - Aline Werner + +- Add extra dependency and fix info files not found issue. + +------------------------------------------------------------------- +Tue Aug 20 20:45:52 UTC 2024 - Aline Werner + +- Initial specfile for package python-endesive version 2.17.2. diff --git a/python-endesive.spec b/python-endesive.spec new file mode 100644 index 0000000..221736e --- /dev/null +++ b/python-endesive.spec @@ -0,0 +1,93 @@ +# +# spec file for package python-endesive +# +# Copyright (c) 2024 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-endesive +Version: 2.17.2 +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 setuptools} +# SECTION test requirements +BuildRequires: %{python_module pytest} +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 +# /SECTION +BuildRequires: fdupes +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 +%python_subpackages + +%description +Library for digital signing and verification of digital signatures in mail, PDF and XML documents. + +%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 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Manually start ssh agent, needed to run test_ssh_sign and test_ssh_verify +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' +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 + +%changelog