1
0

Accepting request 692224 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/692224
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=2
This commit is contained in:
2019-05-06 11:21:15 +00:00
committed by Git OBS Bridge
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>

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