public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/generic-release] f45: Ship dnf5 and copr plugin vendor configuration
Date: Fri, 04 Sep 2026 01:23:21 GMT	[thread overview]
Message-ID: <178848500161.1.10145105784524557302.rpms-generic-release-991c3b6269fd@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/generic-release
            Branch : f45
            Commit : 991c3b6269fdb794927258355174f1bf8a7bd1d6
            Author : Neal Gompa <ngompa@fedoraproject.org>
            Date   : 2026-09-03T21:22:41-04:00
            Stats  : +47/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/generic-release/c/991c3b6269fdb794927258355174f1bf8a7bd1d6?branch=f45

            Log:
            Ship dnf5 and copr plugin vendor configuration

This ensures the same base package manager configuration exists
for derivatives by default. It also makes the DNF copr plugin function
properly by default.

This is based on the configuration that was shipped for Fedora Asahi Remix.

(Also fix errors in the changelog entries around package NVRs...)

---
diff --git a/generic-release.spec b/generic-release.spec
index 950adf7..adcc640 100644
--- a/generic-release.spec
+++ b/generic-release.spec
@@ -9,7 +9,7 @@
 Summary:	Generic release files
 Name:		generic-release
 Version:	%{dist_version}
-Release:	0.3
+Release:	0.4
 License:	MIT
 Source0:	LICENSE
 Source1:	README.developers
@@ -137,6 +137,39 @@ cat >> $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.dist << EOF
 %%fc%{dist_version}                1
 EOF
 
+# Set up DNF5 behavioral defaults
+install -d %{buildroot}%{_datadir}/dnf5/libdnf.conf.d
+cat >> %{buildroot}%{_datadir}/dnf5/libdnf.conf.d/20-defaults.conf <<EOF
+[main]
+allow_vendor_change=False
+best=False
+pkg_gpgcheck=True
+skip_if_unavailable=True
+EOF
+
+install -d %{buildroot}%{_datadir}/dnf5/vendors.d
+cat >> %{buildroot}%{_datadir}/dnf5/vendors.d/allow-cmdline.conf <<EOF
+# Allow vendor change for packages specified directly by path or URL (e.g.
+# "dnf install /path/to/package.rpm" or
+# "dnf install https://example.com/package.rpm"). This is an exception to
+# the global allow_vendor_change=False set in 20-defaults.conf.
+
+version = '1.1'
+
+[[incoming_packages]]
+filters = [
+  { filter = 'cmdline_repo', value = 'true' }
+]
+EOF
+
+# Create the copr vendor file
+install -d %{buildroot}%{_datadir}/dnf/plugins
+cat >> %{buildroot}%{_datadir}/dnf/plugins/copr.vendor.conf << EOF
+[main]
+distribution = %[0%{?fedora} >= 41 ? "fedora" : "Fedora"]
+releasever = %{releasever}
+EOF
+
 # Install readme
 mkdir -p readme
 install -pm 0644 %{SOURCE3} readme/README.Generic-Release-Notes
@@ -161,7 +194,13 @@ install -pm 0644 %{SOURCE2} licenses/README.license
 %attr(0644,root,root) %{_prefix}/lib/issue.net
 %config(noreplace) %{_sysconfdir}/issue.net
 %attr(0644,root,root) %{_rpmconfigdir}/macros.d/macros.dist
-
+%dir %{_datadir}/dnf5
+%dir %{_datadir}/dnf5/libdnf.conf.d
+%{_datadir}/dnf5/libdnf.conf.d/20-defaults.conf
+%dir %{_datadir}/dnf5/vendors.d
+%{_datadir}/dnf5/vendors.d/allow-cmdline.conf
+%dir %{_datadir}/dnf/plugins
+%{_datadir}/dnf/plugins/copr.vendor.conf
 
 %files
 %{_prefix}/lib/os-release
@@ -172,14 +211,18 @@ install -pm 0644 %{SOURCE2} licenses/README.license
 
 
 %changelog
-* Thu Apr 02 2026 Neal Gompa <ngompa@fedoraproject.org> - 43-0.3
+* Fri Sep 04 2026 Neal Gompa <ngompa@fedoraproject.org> - 45-0.4
+- Ship dnf5 and copr plugin vendor configuration
+- Fix changelog entries
+
+* Thu Apr 02 2026 Neal Gompa <ngompa@fedoraproject.org> - 45-0.3
 - Replace included system presets with common packaged ones
 
 * Sat Feb 07 2026 Tom Callaway <spot@fedoraproject.org> - 45-0.2
 - holding very very still so i can be invisible
 - bump to 45
 
-* Tue Sep 09 2025 Zbigniew Jędrzejewski-Szmek  <zbyszek@in.waw.pl> - %{fedora}-0.2
+* Tue Sep 09 2025 Zbigniew Jędrzejewski-Szmek  <zbyszek@in.waw.pl> - 44-0.2
 - 44. I don't see anyone here (rhbz#2388040)
 
 * Tue Apr 22 2025 Dan Streetman <ddstreet@ieee.org> - 43-0.2

                 reply	other threads:[~2026-09-04  1:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178848500161.1.10145105784524557302.rpms-generic-release-991c3b6269fd@fedoraproject.org \
    --to=ngompa@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox