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

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Apr 6 22:21:01 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Unbundle DejaVu font and reuse the one from the system.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 4 09:24:13 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Thu Apr 4 09:24:13 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -32,8 +32,10 @@ BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pathlib} BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: dejavu-fonts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: dejavu-fonts
Provides: python-pyBarcode Provides: python-pyBarcode
Obsoletes: python-pyBarcode Obsoletes: python-pyBarcode
BuildArch: noarch BuildArch: noarch
@@ -44,6 +46,8 @@ Library to create standard barcodes with Python. No external modules needed (opt
%prep %prep
%setup -q -n %{base_name}-%{version} %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 %build
%python_build %python_build
@@ -51,6 +55,9 @@ Library to create standard barcodes with Python. No external modules needed (opt
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %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 %check
%python_exec test.py %python_exec test.py