15
0
forked from pool/python-fpdf2

Accepting request 1218949 from home:dgarcia:branches:devel:languages:python

- Using obs_scm service to download from repository
  without some files to do not distribute CC-noncomercial licensed
  ttf. boo#1232452

OBS-URL: https://build.opensuse.org/request/show/1218949
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fpdf2?expand=0&rev=3
This commit is contained in:
Jeremy Moffitt
2024-10-29 14:32:39 +00:00
committed by Git OBS Bridge
parent 911bd187dc
commit 31777e3eb1
6 changed files with 50 additions and 19 deletions

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/py-pdf/fpdf2</param>
<param name="scm">git</param>
<param name="exclude">test/text_shaping/SBL_Hbrw.ttf</param>
<param name="version">2.7.9</param>
<param name="revision">2.7.9</param>
</service>
<service mode="manual" name="set_version" />
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

3
fpdf2-2.7.9.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56f8b8b19ee04ae894e8ea5736dcca0210a42fadc88371f05cb18f4ee738ed90
size 46494733

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dbebeea6fb0043d9b1978cb220b9edd9e2912cb97194997e8303c12ce27bbab6
size 30461710

4
fpdf2.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: fpdf2
version: 2.7.9
mtime: 1715961501
commit: 1e366a4455a44c806819867ea188859727699cdc

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 29 06:47:30 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Using obs_scm service to download from repository
without some files to do not distribute CC-noncomercial licensed
ttf. boo#1232452
-------------------------------------------------------------------
Fri Sep 6 14:26:52 UTC 2024 - Aline Werner <aline.werner@suse.com>

View File

@@ -23,32 +23,34 @@ Release: 0
Summary: Simple & fast PDF generation for Python
License: LGPL-3.0-or-later
URL: https://py-pdf.github.io/fpdf2/
Source: https://github.com/py-pdf/fpdf2/archive/refs/tags/%{version}.tar.gz#/fpdf2-%{version}.tar.gz
BuildRequires: python-rpm-macros
# The _service download the source and repack without some ttf files
# that has non-commercial license. boo#1232452
Source: fpdf2-%{version}.tar.xz
BuildRequires: %{python_module Pillow >= 6.2.2}
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module fonttools >= 4.34.0}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module Pillow >= 6.2.2}
BuildRequires: %{python_module fonttools >= 4.34.0}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest >= 4.0}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module camelot-py}
BuildRequires: %{python_module tabula-py}
BuildRequires: %{python_module opencv}
BuildRequires: %{python_module qrcode}
BuildRequires: %{python_module ghostscript}
BuildRequires: %{python_module camelot-py}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module uharfbuzz}
BuildRequires: %{python_module endesive}
BuildRequires: %{python_module ghostscript}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module opencv}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module qrcode}
BuildRequires: %{python_module tabula-py}
BuildRequires: %{python_module uharfbuzz}
BuildRequires: java
# /SECTION
BuildRequires: fdupes
Requires: python-defusedxml
Requires: python-Pillow >= 6.2.2
Requires: python-defusedxml
Requires: python-fonttools >= 4.34.0
BuildArch: noarch
%python_subpackages
@@ -67,7 +69,10 @@ Simple & fast PDF generation for Python.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -s -k 'not (test_png_url or test_bidi_conformance or test_bidi_character or test_page_background or test_insert_jpg_jpxdecode)'
donttest="test_png_url or test_bidi_conformance or test_bidi_character or test_page_background or test_insert_jpg_jpxdecode"
# Requires non-commercial licensed file SBL_Hbrw.ttf
donttest+=" or test_bidi_paragraph_direction or test_hebrew_diacritics or test_text_with_parentheses"
%pytest -s -k "not ($donttest)"
%files %{python_files}
%doc README.md