]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: use the autosetup macro to apply the patches
authorHarald Hoyer <harald@redhat.com>
Wed, 20 May 2015 12:55:19 +0000 (14:55 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 28 May 2015 17:49:08 +0000 (19:49 +0200)
dracut.spec

index f4c43774b5e9cd2c162773d4ab8c6096a0a56ac5..6b37dc32d9d12aface4f17f59009f1e422ea4b0f 100644 (file)
@@ -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}