From b36512ad8f06270739f85371d03f61bbf8e6fe2a Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sep 27 2020 12:01:34 +0000 Subject: Make main package Conflicts+Obsoletes with -standalone- subpackages I'm not entirely sure if this is the right form... Is Conflicts? useful when we have Obsoletes? Seem to work OK. I tested: dnf --installroot=... install x86_64/systemd-standalone-sysusers-246.6-2.fc34.x86_64.rpm x86_64/systemd-standalone-tmpfiles-246.6-2.fc34.x86_64.rpm → succeeds with a new installation → fails if the installroot already had systemd installed dnf --installroot=... install x86_64/systemd{,-libs,-pam}-246.6-2.fc34.x86_64.rpm noarch/systemd-noarch-246.6-2.fc34.noarch.rpm → uninstalls the two standalone packages --- diff --git a/systemd.spec b/systemd.spec index 1ac69f5..aeccbc9 100644 --- a/systemd.spec +++ b/systemd.spec @@ -175,6 +175,10 @@ Conflicts: fedora-release < 23-0.12 %endif Obsoletes: timedatex < 0.6-3 Provides: timedatex = 0.6-3 +Conflicts: %{name}-standalone-tmpfiles < %{version}-%{release}^ +Obsoletes: %{name}-standalone-tmpfiles < %{version}-%{release}^ +Conflicts: %{name}-standalone-sysusers < %{version}-%{release}^ +Obsoletes: %{name}-standalone-sysusers < %{version}-%{release}^ %description systemd is a system and service manager that runs as PID 1 and starts