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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
endesive-2.17.2.tar.gz
Normal file
3
endesive-2.17.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d05bd9d3160a05d46b5113b395dec4ff650833694ab58386240f2b486bd69e3
|
||||
size 30902446
|
||||
9
python-endesive.changes
Normal file
9
python-endesive.changes
Normal file
@@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 22 20:51:33 UTC 2024 - Aline Werner <aline.werner@suse.com>
|
||||
|
||||
- Add extra dependency and fix info files not found issue.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 20 20:45:52 UTC 2024 - Aline Werner <aline.werner@suse.com>
|
||||
|
||||
- Initial specfile for package python-endesive version 2.17.2.
|
||||
93
python-endesive.spec
Normal file
93
python-endesive.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user