From 87d81c741525d8f7a212201164541e62a209120175dae2704f3484b9fd677531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 1 Apr 2019 08:43:34 +0000 Subject: [PATCH] - Sort out with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=6 --- python-PyQRCode.changes | 5 +++++ python-PyQRCode.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-PyQRCode.changes b/python-PyQRCode.changes index 73929c0..9d63826 100644 --- a/python-PyQRCode.changes +++ b/python-PyQRCode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 1 08:43:21 UTC 2019 - Tomáš Chvátal + +- Sort out with spec-cleaner + ------------------------------------------------------------------- Mon Mar 25 17:35:15 CET 2019 - Matej Cepl diff --git a/python-PyQRCode.spec b/python-PyQRCode.spec index 8270f32..b6372dd 100644 --- a/python-PyQRCode.spec +++ b/python-PyQRCode.spec @@ -28,16 +28,15 @@ URL: https://github.com/mnooner256/pyqrcode # This is unofficial fork with some additional fixes, the canonical # upstream repository is dead. Source: https://github.com/heuer/pyqrcode/archive/%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pypng} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module pypng} -BuildRequires: %{python_module Sphinx} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -45,8 +44,7 @@ The PyQRCode module is a QR code generator that is simple to use and written in %prep %setup -q -n pyqrcode-%{version} -sed -i -e '1{\@^#!/usr/bin/env python@d}' pyqrcode/{cli,qrspecial}.py - +sed -i -e '1{\@^#!%{_bindir}/env python@d}' pyqrcode/{cli,qrspecial}.py %build %python_build