From 311aee1bffa999dd491df7efa48edb421136d3c0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 20 May 2015 14:55:19 +0200 Subject: [PATCH] dracut.spec: use the autosetup macro to apply the patches --- dracut.spec | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/dracut.spec b/dracut.spec index f4c43774..6b37dc32 100644 --- a/dracut.spec +++ b/dracut.spec @@ -195,20 +195,9 @@ Requires: %{name} = %{version}-%{release} This package contains tools to assemble the local initrd and host configuration. %prep -%setup -q -n %{name}-%{version} +%autosetup -n %{name}-%{version} -S git_am cp %{SOURCE1} . -%if %{defined PATCH1} -git init -git config user.email "dracut-maint@redhat.com" -git config user.name "Fedora dracut team" -git add . -git commit -a -q -m "%{version} baseline." - -# Apply all the patches. -git am -p1 %{patches} -%endif - %build %configure --systemdsystemunitdir=%{_unitdir} --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) --libdir=%{_prefix}/lib \ %if %{without doc} -- 2.11.4.GIT