remove a build system tweak related to Python 3

... no longer needed
This commit is contained in:
Kamil Dudka 2022-09-06 09:13:34 +02:00
parent d4c3be7140
commit 022c2b229c

View File

@ -1,11 +1,10 @@
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.22 Version: 2.22
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+
BuildRequires: automake
BuildRequires: bison BuildRequires: bison
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
@ -25,11 +24,6 @@ well as conversions such as Fahrenheit to Celsius.
%prep %prep
%autosetup -p1 %autosetup -p1
# make units_cur use Python 3
sed -e 's|^AC_PATH_PROG(PYTHON, .*$|PYTHON=%{__python3}\nAC_SUBST(PYTHON)|' \
-i configure.ac
autoreconf -fiv
%build %build
%configure %configure
%make_build %make_build
@ -58,6 +52,9 @@ make check
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-3
- remove a build system tweak related to Python 3 no longer needed
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-2 * Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-2
- replace an absolute symlink by a relative symlink - replace an absolute symlink by a relative symlink
- use %%make_build and %%make_install RPM macros - use %%make_build and %%make_install RPM macros