dracut/0156.patch
Petr Šabata 77c9114cb0 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/dracut#99c74373eee952f26c7d256f12c024fe29397ae6
2020-10-14 23:52:06 +02:00

30 lines
783 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