Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • staging/patch/subscription-manager
1 result
Show changes
Commits on Source (2)
......@@ -7,24 +7,6 @@ add {
}
spec_change {
# srpmproc does weird stuff
# file {
# name: "ROCKY-use-rocky-syspurposes.patch"
# type: Patch
# add: true
# add_to_prep: true
# n_path: 1
# }
# file {
# name: "0001-subscription-manager-rocky-remove-redhat-refs.patch"
# type: Patch
# add: true
# add_to_prep: true
# n_path: 1
# }
append {
field: "Release"
value: ".rocky.0.1"
......@@ -42,79 +24,14 @@ spec_change {
search_and_replace {
any: true
find: "Source0: %{name}-%{version}.tar.gz"
replace: "Source0: %{name}-%{version}.tar.gz\nPatch1: ROCKY-use-rocky-syspurposes.patch\nPatch2: 0001-subscription-manager-rocky-remove-redhat-refs.patch"
replace: "Source0: %{name}-%{version}.tar.gz\nPatch9998: ROCKY-use-rocky-syspurposes.patch\nPatch9999: 0001-subscription-manager-rocky-remove-redhat-refs.patch"
n: 1
}
search_and_replace {
any: true
find: "%setup -q"
replace: "%setup -q\n%patch1 -p1\n%patch2 -p1\n"
n: 1
}
search_and_replace {
any: true
find: "touch %{buildroot}%{_sysconfdir}/yum.repos.d/redhat.repo"
replace: "# redhat repo not required"
n: 1
}
search_and_replace {
any: true
find: "mkdir %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com"
replace: "# remove cdn.redhat.com"
n: 1
}
search_and_replace {
any: true
find: "install -m 644 %{_builddir}/%{buildsubdir}/src/content_plugins/redhat-entitlement-authority.pem %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt"
replace: "# remove redhat entitlement"
n: 1
}
search_and_replace {
any: true
find: "install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
replace: "rm %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
#replace: "# remove redhat entitlement"
n: 1
}
search_and_replace {
any: true
find: "install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-uep.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-uep.pem"
#replace: "rm %{_builddir}/%{buildsubdir}/etc-conf/redhat-uep.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-uep.pem"
replace: "# remove redhat uep"
n: 1
}
search_and_replace {
any: true
find: "%attr(755,root,root) %dir %{_sysconfdir}/docker/certs.d/cdn.redhat.com"
replace: "# remove cdn.redhat.com"
n: 1
}
search_and_replace {
any: true
find: "%attr(644,root,root) %{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt"
replace: "# remove redhat entitlement"
n: 1
}
search_and_replace {
any: true
find: "%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
replace: "# remove redhat entitlement authority"
n: 1
}
search_and_replace {
any: true
find: "%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-uep.pem"
replace: "# remove redhat entitlement authority"
replace: "%setup -q\n%patch9998 -p1\n%patch2 -p9999\n"
n: 1
}
......@@ -135,6 +52,6 @@ spec_change {
changelog {
author_name: "Release Engineering"
author_email: "releng@rockylinux.org"
message: "Remove Red Hat specific references and certificates"
message: "Remove Red Hat specific references"
}
}