use %{__python3} as the python interpreter

This commit is contained in:
Kamil Dudka 2018-07-04 15:03:45 +02:00
parent 510f0d885b
commit e186563567

View File

@ -1,7 +1,7 @@
Summary: A utility for converting amounts from one unit to another Summary: A utility for converting amounts from one unit to another
Name: units Name: units
Version: 2.17 Version: 2.17
Release: 2%{?dist} Release: 3%{?dist}
Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
URL: https://www.gnu.org/software/units/units.html URL: https://www.gnu.org/software/units/units.html
License: GPLv3+ License: GPLv3+
@ -11,7 +11,7 @@ BuildRequires: automake
BuildRequires: bison BuildRequires: bison
BuildRequires: gcc BuildRequires: gcc
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: python3 BuildRequires: python3-devel
BuildRequires: readline-devel BuildRequires: readline-devel
%description %description
@ -24,7 +24,8 @@ well as conversions such as Fahrenheit to Celsius.
%autosetup -p1 %autosetup -p1
# make units_cur use Python 3 # make units_cur use Python 3
sed -e 's|^AC_PATH_PROG(PYTHON, python|&3|' -i configure.ac sed -e 's|^AC_PATH_PROG(PYTHON, .*$|PYTHON=%{__python3}\nAC_SUBST(PYTHON)|' \
-i configure.ac
autoreconf -fiv autoreconf -fiv
%build %build
@ -62,6 +63,9 @@ fi
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Wed Jul 04 2018 Kamil Dudka <kdudka@redhat.com> - 2.17-3
- use %%{__python3} as the python interpreter
* Wed Jun 27 2018 Kamil Dudka <kdudka@redhat.com> - 2.17-2 * Wed Jun 27 2018 Kamil Dudka <kdudka@redhat.com> - 2.17-2
- drop the dependency on python3-unidecode no longer used by units_cur - drop the dependency on python3-unidecode no longer used by units_cur