diff --git a/_service b/_service
new file mode 100644
index 0000000..a5194f3
--- /dev/null
+++ b/_service
@@ -0,0 +1,15 @@
+
+
+ https://github.com/py-pdf/fpdf2
+ git
+ test/text_shaping/SBL_Hbrw.ttf
+ 2.7.9
+ 2.7.9
+
+
+
+
+ *.tar
+ xz
+
+
diff --git a/fpdf2-2.7.9.obscpio b/fpdf2-2.7.9.obscpio
new file mode 100644
index 0000000..51fd21a
--- /dev/null
+++ b/fpdf2-2.7.9.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:56f8b8b19ee04ae894e8ea5736dcca0210a42fadc88371f05cb18f4ee738ed90
+size 46494733
diff --git a/fpdf2-2.7.9.tar.gz b/fpdf2-2.7.9.tar.gz
deleted file mode 100644
index a9406b1..0000000
--- a/fpdf2-2.7.9.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:dbebeea6fb0043d9b1978cb220b9edd9e2912cb97194997e8303c12ce27bbab6
-size 30461710
diff --git a/fpdf2.obsinfo b/fpdf2.obsinfo
new file mode 100644
index 0000000..8d5fa9b
--- /dev/null
+++ b/fpdf2.obsinfo
@@ -0,0 +1,4 @@
+name: fpdf2
+version: 2.7.9
+mtime: 1715961501
+commit: 1e366a4455a44c806819867ea188859727699cdc
diff --git a/python-fpdf2.changes b/python-fpdf2.changes
index 13b3688..2786312 100644
--- a/python-fpdf2.changes
+++ b/python-fpdf2.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Tue Oct 29 06:47:30 UTC 2024 - Daniel Garcia
+
+- 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
diff --git a/python-fpdf2.spec b/python-fpdf2.spec
index fbdadca..b7eb0e2 100644
--- a/python-fpdf2.spec
+++ b/python-fpdf2.spec
@@ -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