From 0fe6dbc3a68cededdb3e08ecfa6f2b44554d211ac905ff1bf2362977f049ed7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 8 Apr 2019 08:33:54 +0000 Subject: [PATCH] Accepting request 692067 from home:jengelh:branches:devel:languages:python - Unbundle DejaVu font and reuse the one from the system. OBS-URL: https://build.opensuse.org/request/show/692067 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=5 --- python-python-barcode.changes | 5 +++++ python-python-barcode.spec | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/python-python-barcode.changes b/python-python-barcode.changes index 49e9ae6..d196595 100644 --- a/python-python-barcode.changes +++ b/python-python-barcode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Apr 6 22:21:01 UTC 2019 - Jan Engelhardt + +- Unbundle DejaVu font and reuse the one from the system. + ------------------------------------------------------------------- Thu Apr 4 09:24:13 UTC 2019 - Tomáš Chvátal diff --git a/python-python-barcode.spec b/python-python-barcode.spec index 0398b04..82b708d 100644 --- a/python-python-barcode.spec +++ b/python-python-barcode.spec @@ -32,8 +32,10 @@ BuildRequires: %{python_module Pillow} BuildRequires: %{python_module pathlib} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: dejavu-fonts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: dejavu-fonts Provides: python-pyBarcode Obsoletes: python-pyBarcode BuildArch: noarch @@ -44,6 +46,8 @@ Library to create standard barcodes with Python. No external modules needed (opt %prep %setup -q -n %{base_name}-%{version} +# Fix rpmlint warning about too many +x perms when these files get installed later. +find . -type f -exec chmod a-x {} + %build %python_build @@ -51,6 +55,9 @@ Library to create standard barcodes with Python. No external modules needed (opt %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +find "%{buildroot}" -type f -name "*.ttf" | while read i; do + ln -fs "%{_datadir}/fonts/truetype/${i##*/}" "$i" +done %check %python_exec test.py