public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] rawhide: rpm-cron cleanups
@ 2026-11-23  7:52 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  7:52 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : rawhide
            Commit : 4f48db9761e6af78b1173e738f9e3670d7e1ad4b
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2026-11-19T17:03:59+02:00
            Stats  : +4/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/4f48db9761e6af78b1173e738f9e3670d7e1ad4b?branch=rawhide

            Log:
            rpm-cron cleanups

The logrotate integration is packaged in rpm-cron, drop the redundant
files from /usr/lib/rpm. Package /var/log/ as %ghost to shut up rpmlint
on the directory ownership, and package the resulting /var/log/rpmpkgs
as a ghost as well.

---
diff --git a/rpm.spec b/rpm.spec
index 100673b..aa4bd32 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -256,7 +256,7 @@ This package contains API documentation for developing applications
 that will manipulate RPM packages and databases.
 
 %package cron
-Summary: Create daily logs of installed packages.
+Summary: Create daily logs of installed packages
 BuildArch: noarch
 Requires: crontabs logrotate rpm = %{version}-%{release}
 
@@ -427,6 +427,8 @@ ln -s ../../bin/find-debuginfo $RPM_BUILD_ROOT/usr/lib/rpm/find-debuginfo.sh
 rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
 rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
 rm -rf $RPM_BUILD_ROOT/var/tmp
+# Packaged in rpm-cron
+rm -f $RPM_BUILD_ROOT/%{rpmhome}/{rpm.daily,rpm.log}
 
 %pre
 # Symlink all rpmdb files to the new location if we're still using /var/lib/rpm
@@ -500,8 +502,6 @@ fi
 %{rpmhome}/rpmrc
 
 %{rpmhome}/rpmdb_*
-%{rpmhome}/rpm.daily
-%{rpmhome}/rpm.log
 %{rpmhome}/rpm.supp
 %{rpmhome}/rpm2cpio.sh
 %{rpmhome}/tgpg
@@ -645,6 +645,7 @@ fi
 %files cron
 %{_sysconfdir}/cron.daily/rpm
 %config(noreplace) %{_sysconfdir}/logrotate.d/rpm
+%ghost %attr(0644,root,root) /var/log/rpmpkgs
 
 %files apidocs
 %license COPYING

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  7:52 [rpms/rpm] rawhide: rpm-cron cleanups Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox