14
0

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
This commit is contained in:
Tomáš Chvátal
2019-04-08 08:33:54 +00:00
committed by Git OBS Bridge
parent 9024b7b245
commit 0fe6dbc3a6
2 changed files with 12 additions and 0 deletions

View File

@@ -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