Skip to content
Snippets Groups Projects
Commit 9964c460 authored by Skip Grube's avatar Skip Grube
Browse files

Workaround fix to get Patch0/Patch1 out of an %if block

parent 2365fded
No related branches found
No related tags found
No related merge requests found
......@@ -7,20 +7,24 @@ add {
}
spec_change {
file {
name: "ROCKY-use-rocky-syspurposes.patch"
type: Patch
add: true
add_to_prep: true
# Hacky workaround: unfortunately default file/patch add comand sticks the patches in the middle of an ifdef SUSE block
# We're not SUSE, so the patches never get applied/found
search_and_replace {
any: true
find: "%if (0%{?suse_version} &&"
replace: "Patch1: ROCKY-use-rocky-syspurposes.patch\nPatch2: subscription-manager-rocky-remove-redhat.repo.patch\n%if (0%{?suse_version} &&"
n: 1
}
file {
name: "subscription-manager-rocky-remove-redhat.repo.patch"
type: Patch
add: true
add_to_prep: true
# Need to continue hacky workaround to add patches to %prep:
search_and_replace {
any: true
find: "%setup -q"
replace: "%setup -q\n%patch1\n%patch2\n"
n: 1
}
search_and_replace {
any: true
find: "Supplements: initial-setup-gui"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment