29 lines
782 B
Diff
29 lines
782 B
Diff
|
From ee6ce3100312ed1505ccb6d5b60bf075ea2b1712 Mon Sep 17 00:00:00 2001
|
||
|
From: Harald Hoyer <harald@redhat.com>
|
||
|
Date: Fri, 2 Oct 2020 13:50:40 +0200
|
||
|
Subject: [PATCH] dracut.spec: Use make macros
|
||
|
|
||
|
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||
|
---
|
||
|
dracut.spec | 5 ++---
|
||
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/dracut.spec b/dracut.spec
|
||
|
index fded5f17..e20aaa67 100644
|
||
|
--- a/dracut.spec
|
||
|
+++ b/dracut.spec
|
||
|
@@ -203,11 +203,10 @@ cp %{SOURCE1} .
|
||
|
%endif
|
||
|
${NULL}
|
||
|
|
||
|
-make %{?_smp_mflags}
|
||
|
+%make_build
|
||
|
|
||
|
%install
|
||
|
-make %{?_smp_mflags} install \
|
||
|
- DESTDIR=$RPM_BUILD_ROOT \
|
||
|
+%make_install %{?_smp_mflags} \
|
||
|
libdir=%{_prefix}/lib
|
||
|
|
||
|
echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
|