From 14e7c82d66104daf867747dda3e9f243e83f142d Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 5 Feb 2018 08:52:22 +0100 Subject: [PATCH] make units_cur use Python 3 Closes #1 --- units.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/units.spec b/units.spec index b574a2a..dcaa391 100644 --- a/units.spec +++ b/units.spec @@ -1,19 +1,20 @@ Summary: A utility for converting amounts from one unit to another Name: units Version: 2.16 -Release: 1%{?dist} +Release: 2%{?dist} Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz URL: https://www.gnu.org/software/units/units.html License: GPLv3+ Requires(post): /sbin/install-info Requires(preun): /sbin/install-info +BuildRequires: automake BuildRequires: bison BuildRequires: ncurses-devel -BuildRequires: python +BuildRequires: python3 BuildRequires: readline-devel # used by the units_cur script -Requires: python-unidecode +Requires: python3-unidecode %description Units converts an amount from one unit to another, or tells you what @@ -24,6 +25,10 @@ well as conversions such as Fahrenheit to Celsius. %prep %setup -q +# make units_cur use Python 3 +sed -e 's|^AC_PATH_PROG(PYTHON, python|&3|' -i configure.ac +autoreconf -fiv + %build %configure make %{?_smp_mflags} @@ -58,6 +63,9 @@ fi %{_mandir}/man1/* %changelog +* Mon Feb 05 2018 Kamil Dudka - 2.16-2 +- make units_cur use Python 3 + * Wed Nov 01 2017 Kamil Dudka - 2.16-1 - new upstream release