public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Move scriptlets to a more logical space in the spec
Date: Mon, 23 Nov 2026 09:33:23 GMT	[thread overview]
Message-ID: <179542640353.1.5866417350193240599.rpms-rpm-03c8fed85d62@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 03c8fed85d6220752f3fbaf963ee3dfd2c327cc1
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2020-06-01T09:50:30+03:00
            Stats  : +12/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/03c8fed85d6220752f3fbaf963ee3dfd2c327cc1?branch=pmatilai-v6

            Log:
            Move scriptlets to a more logical space in the spec

Accidentally slopped into middle of %files sections by yours truly.

---
diff --git a/rpm.spec b/rpm.spec
index db456af..5acc210 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -402,6 +402,18 @@ rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
 make check || (cat tests/rpmtests.log; exit 1)
 %endif
 
+# Handle rpmdb rebuild service on erasure of old to avoid ordering issues
+# https://pagure.io/fesco/issue/2382
+%triggerun -- rpm < 4.15.90-0.git14971.10
+if [ -x /usr/bin/systemctl ]; then
+    systemctl --no-reload preset rpmdb-rebuild ||:
+fi
+
+%posttrans
+if [ -f /var/lib/rpm/Packages ]; then
+    touch /var/lib/rpm/.rebuilddb
+fi
+
 %files -f rpm.lang
 %license COPYING
 %doc CREDITS doc/manual/[a-z]*
@@ -458,18 +470,6 @@ make check || (cat tests/rpmtests.log; exit 1)
 
 %dir %{rpmhome}/fileattrs
 
-# Handle rpmdb rebuild service on erasure of old to avoid ordering issues
-# https://pagure.io/fesco/issue/2382
-%triggerun -- rpm < 4.15.90-0.git14971.10
-if [ -x /usr/bin/systemctl ]; then
-    systemctl --no-reload preset rpmdb-rebuild ||:
-fi
-
-%posttrans
-if [ -f /var/lib/rpm/Packages ]; then
-    touch /var/lib/rpm/.rebuilddb
-fi
-
 %files libs
 %{_libdir}/librpmio.so.*
 %{_libdir}/librpm.so.*

                 reply	other threads:[~2026-11-23  9:33 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=179542640353.1.5866417350193240599.rpms-rpm-03c8fed85d62@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --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