make units_cur use Python 3

Closes #1
This commit is contained in:
Kamil Dudka 2018-02-05 08:52:22 +01:00
parent 971d7417fe
commit 14e7c82d66
1 changed files with 11 additions and 3 deletions

View File

@ -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 <kdudka@redhat.com> - 2.16-2
- make units_cur use Python 3
* Wed Nov 01 2017 Kamil Dudka <kdudka@redhat.com> - 2.16-1
- new upstream release