units.spec: use %make_build and %make_install RPM macros

No change in behavior expected with this commit.
This commit is contained in:
Kamil Dudka 2022-09-06 09:03:02 +02:00
parent 494095d7c0
commit 6869b51de8
1 changed files with 6 additions and 3 deletions

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.22 Version: 2.22
Release: 1%{?dist} Release: 2%{?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+
@ -32,10 +32,10 @@ autoreconf -fiv
%build %build
%configure %configure
make %{?_smp_mflags} %make_build
%install %install
make install DESTDIR=%{buildroot} %make_install
# remove %%{buildroot} from the target of an absolute symlink # remove %%{buildroot} from the target of an absolute symlink
ln -fsv %{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units ln -fsv %{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units
@ -58,6 +58,9 @@ make check
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-2
- use %%make_build and %%make_install RPM macros
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-1 * Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-1
- new upstream release - new upstream release