public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond
@ 2026-11-23  9:33 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:33 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 52a9ca7aad3e0fa1f68db15543978f217d3be03d
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2020-04-01T14:10:37+03:00
Stats  : +10/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/52a9ca7aad3e0fa1f68db15543978f217d3be03d?branch=pmatilai-v6

Log:
Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond

---
diff --git a/rpm.spec b/rpm.spec
index 3143f94..1252867 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -25,17 +25,17 @@
 
 %global rpmver 4.15.90
 %global snapver git14971
-%global rel 1
+%global rel 2
 
 %global srcver %{version}%{?snapver:-%{snapver}}
 %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
 
 %if %{with bdb}
 %define bdbver 5.3.15
-%endif
 
 # Build-dependency on systemd for the sake of one macro would be a bit much...
 %{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d}
+%endif
 
 Summary: The RPM package management system
 Name: rpm
@@ -359,8 +359,10 @@ install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
 install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm
 
+%if %{with bdb}
 mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir}
 echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}%{_tmpfilesdir}/rpm.conf
+%endif
 
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
 mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d
@@ -389,7 +391,10 @@ make check || (cat tests/rpmtests.log; exit 1)
 %license COPYING
 %doc CREDITS doc/manual/[a-z]*
 
+%if %{with bdb}
 %{_tmpfilesdir}/rpm.conf
+%endif
+
 %dir %{_sysconfdir}/rpm
 
 %attr(0755, root, root) %dir /var/lib/rpm
@@ -518,6 +523,9 @@ make check || (cat tests/rpmtests.log; exit 1)
 %doc doc/librpm/html/*
 
 %changelog
+* Tue Mar 31 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.2
+- Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond
+
 * Tue Mar 31 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.1
 - Rebase to rpm 4.16 alpha (https://rpm.org/wiki/Releases/4.16.0)
 - Add bconds for and enable sqlite, ndb and bdb_ro database backends

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:33 [rpms/rpm] pmatilai-v6: Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond Panu Matilainen

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