From: Harald Hoyer Date: Wed, 20 May 2015 12:55:19 +0000 (+0200) Subject: dracut.spec: use the autosetup macro to apply the patches X-Git-Tag: 042~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=311aee1bffa999dd491df7efa48edb421136d3c0;p=thirdparty%2Fdracut.git dracut.spec: use the autosetup macro to apply the patches --- diff --git a/dracut.spec b/dracut.spec index f4c43774b..6b37dc32d 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}