https://bugzilla.redhat.com/show_bug.cgi?id=2584553
--- Comment #3 from Shawn W Dunn <[email protected]> --- SRPM: https://sfaulken.fedorapeople.org/mddm-config-0.2.1-1.fc46.src.rpm SPEC: https://sfaulken.fedorapeople.org/mddm-config.spec > > %if %{without kcm} > > %global debug_package %{nil} > > %endif > This seems to be related to the mess around whether it is archful or not... > > I'm not sure the way this package is structured is a good idea. > Unfortunately, we can't declare the binary package with the same name as the > source package to fix this. > >Is there a way to make the source package and binary package names different? >Then we can drop this weird handling for noarch/archful primary package. Done, and dropped, subpackages are now mddm-conf and kcm-mddm > > %if %{with kcm} > > Requires: (%{name}-kcm if plasma-systemsettings) > > %endif > Does the KCM use the main package stuff? Or could it be split so that there's > a -common that the tool and the kcm use? > That would allow this to move to the kcm subpackage and become a > "Supplements:" instead. > Either way, since you have a "BuildArch: noarch" conditionally used, you > don't need the "%debug_package %nil" stanza at all, since the former implies > the latter anyway. Done. There's no shared code, so a -common subpackage isn't needed > > %cmake -DWITH_KCM:STRING=%{?with_kcm:ON}%{!?with_kcm:OFF} > Shouldn't this be "BOOL" instead of "STRING"? Nope. WITH_KCM is a tri-state option (AUTO/ON/OFF), The spec always forces ON or OFF so that a missing dep can't silently drop the subpackage. I can remove the explicit type and just make it %cmake -DWITH_KCM=%{?with_kcm:ON}%{!?with_kcm:OFF} if that reads better -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2584553 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202584553%23c3 -- _______________________________________________ package-review mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
