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