add dnf stream var

This commit is contained in:
Louis Abel 2022-08-30 02:02:05 -07:00
commit bc75fff734
Signed by: label
GPG Key ID: B37E62D143879B36

View File

@ -10,7 +10,7 @@
%define distro_code Green Obsidian
%define major 8
%define minor 7
%define rocky_rel 1
%define rocky_rel 2
%define upstream_rel %{major}.%{minor}
%define upstream_long %{major}.%{minor}-0.1
%define rpm_license BSD-3-Clause
@ -190,6 +190,7 @@ install -m 0644 %{SOURCE302} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
install -d -m 0755 %{buildroot}%{_sysconfdir}/dnf/vars
echo "pub/rocky" > %{buildroot}%{_sysconfdir}/dnf/vars/contentdir
echo "pub/sig" > %{buildroot}%{_sysconfdir}/dnf/vars/sigcontentdir
echo "%{major}-stream" > %{buildroot}%{_sysconfdir}/dnf/vars/stream
# Copy out GPG keys
install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/rpm-gpg
@ -236,11 +237,15 @@ install -p -m 0644 %{SOURCE1226} %{buildroot}%{_sysconfdir}/yum.repos.d/
%config(noreplace) %{_sysconfdir}/yum.repos.d/Rocky-*.repo
%config(noreplace) %{_sysconfdir}/dnf/vars/contentdir
%config(noreplace) %{_sysconfdir}/dnf/vars/sigcontentdir
%config(noreplace) %{_sysconfdir}/dnf/vars/stream
%files -n rocky-gpg-keys
%{_sysconfdir}/pki/rpm-gpg/
%changelog
* Tue Aug 30 2022 Louis Abel <label@rockylinux.org> - 8.7-2
- Add stream dnf var
* Thu Jul 07 2022 Louis Abel <label@rockylinux.org> - 8.7-1
- Branch off and make system-release provide match
upstream long form