openSUSE:DisplayManagerRework:Packaging
Information for packagers regarding Display Manager Rework
RPM Macros for systemd Preset packages
These are for the packages which contain the actual systemd preset file for choosing which Display Manager (e.g. budgie-desktop-preset)
%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)
RPM Macros for Desktop Branding packages
These are for Desktop Environment branding packages (e.g. budgie-desktop-branding-openSUSE)
%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
RPM Macros for Display Manager packages
These are for Display Manager packages (e.g lightdm)
%display_manager_package_requires
This may never get used at all if all branding packages are updated before full rollout
Or we remove all display-manager-legacy usage
Adds the systemd preset / dml-integration requires to display manager packages
Options
-p: Prevents automatic NAME-dml-integration requires for display-manager-legacy usage
%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
RPM Macros for display-manager-legacy users
These macros are used by packages which are used for display-manager-legacy integration
This is probably a subpackage of a display manager called NAME-dml-integration (e.g lightdm-dml-integration) or NAME-xdm-integration (e.g lightdm-xdm-integration)
%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 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 display-manager-legacy packages
Arguments
NAME: Name of file under %{_prefix}/lib/X11/displaymanagers
Internal RPM Macros for display-manager-setup
These are only used internally by the display-manager-setup package
These can be updated within the display-manager-macros source package
%display_manager_check_triggers
This should be updated by packagers in the case of a new display manager
Checks that there is some provider of display-manager.service by presetting all the ones we expect using RPM triggers so that it happens automatically