From 0636341dcb151b334e581d14cf9d086d5c1c8b2f Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Wed, 15 Nov 2023 14:18:59 +0100 Subject: [PATCH] Update spec file * Add /etc/lvm/devices entry * Use autorelease macro --- lvm2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lvm2.spec b/lvm2.spec index 77f7155..11c0e32 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -38,6 +38,9 @@ # Do not reset Release to 1 unless both lvm2 and device-mapper # versions are increased together. +# +# NOTE: At the moment it is better to increase DM version together with lvm. +# This siplifies life for other packagers as well. Summary: Userland logical volume management tools Name: lvm2 @@ -45,7 +48,7 @@ Name: lvm2 Epoch: %{rhel} %endif Version: 2.03.22 -Release: 2%{?dist} +Release: %autorelease License: GPLv2 URL: https://sourceware.org/lvm2/ Source0: https://sourceware.org/pub/lvm2/releases/LVM2.%{version}.tgz @@ -360,6 +363,7 @@ systemctl start lvm2-lvmpolld.socket >/dev/null 2>&1 || : %dir %{_sysconfdir}/lvm/backup %dir %{_sysconfdir}/lvm/cache %dir %{_sysconfdir}/lvm/archive +%ghost %{_sysconfdir}/lvm/devices %dir %{_default_locking_dir} %dir %{_default_run_dir} %{_tmpfilesdir}/%{name}.conf