dracut.spec: only apply patches, if there are any
parent
45abddb069
commit
76bba2a1fc
|
|
@ -161,6 +161,8 @@ This package contains tools to assemble the local initrd and host configuration.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
|
%if %{defined PATCH1}
|
||||||
git init
|
git init
|
||||||
git config user.email "dracut-maint@redhat.com"
|
git config user.email "dracut-maint@redhat.com"
|
||||||
git config user.name "Fedora dracut team"
|
git config user.name "Fedora dracut team"
|
||||||
|
|
@ -169,6 +171,7 @@ git commit -a -q -m "%{version} baseline."
|
||||||
|
|
||||||
# Apply all the patches.
|
# Apply all the patches.
|
||||||
git am -p1 %{patches}
|
git am -p1 %{patches}
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue