openSUSE:DisplayManagerRework:Packaging
Information for packagers regarding Display Manager Rework

RPM Macros for systemd Presets
%display_manager_preset_provides
Adds the needed provides to systemd based preset packages
Options
-p NAME: Adds 'systemd-presets-desktop-NAME' (used if package doesn't have that as its name)
%display_manager_branding_requires
Adds preset package requirement to main branding packages
Arguments
Name: Subname of the preset package - either the end of the full name or the argument given to -p of %display_manager_preset_provides
%display_manager_package_requires
This may never get used at all if all branding packages are updated before full rollout
Adds the systemd/xdm-integration requires to display manager packages
Options
-p: Prevents automatic NAME-xdm-integration requires for display-manager-legacy usage
%display_manager_check_postun
Adds a postun section to validate that there is some provider of display-manager.service by presetting all the ones we expect
RPM Macros for display-manager-legacy
%display_manager_legacy_package_requires
Adds the update-alternatives post/postun requires and the display-manager-legacy requires
%display_manager_legacy_post
Adds the necessary post section for xdm/display-manager-legacy packages
Arguments
NAME: Name of file under %{_prefix}/lib/X11/displaymanagers
Priority: update-alternatives priority
%display_manager_legacy_postun
Adds the necessary postun section for xdm/display-manager-legacy packages
Arguments
NAME: Name of file under %{_prefix}/lib/X11/displaymanagers
RPM Macros for Migration
%display_manager_migration_posttrans
Adds a posttrans section to check if the default update-alternatives display manager is one that can be converted to systemd and forcefully switches the user to the systemd service
Arguments
NAME: Name of file under %{_prefix}/lib/X11/displaymanagers / Name of systemd service