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