#2 Provide redhat-menus in RHEL builds
Merged a year ago by rstrode. Opened a year ago by yselkowitz.
rpms/ yselkowitz/gnome-menus rawhide  into  rawhide

file modified
+14
@@ -19,7 +19,13 @@ 

  BuildRequires: gobject-introspection-devel

  BuildRequires: make

  

+ %if %{defined rhel}

+ Obsoletes: redhat-menus < 12.0.2-24

+ Provides:  redhat-menus = 12.0.2-24

+ Conflicts: redhat-menus < 12.0.2-24

+ %else

  Requires:  redhat-menus

+ %endif

  

  %description

  gnome-menus is an implementation of the draft "Desktop
@@ -54,6 +60,10 @@ 

  %install

  %make_install

  find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

+ %if %{defined rhel}

+ cp $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/{gnome-,}applications.menu

+ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications-merged

+ %endif

  

  %find_lang gnome-menus

  
@@ -63,6 +73,10 @@ 

  %license COPYING.LIB

  %doc AUTHORS NEWS

  %{_sysconfdir}/xdg/menus/gnome-applications.menu

+ %if %{defined rhel}

+ %{_sysconfdir}/xdg/menus/applications.menu

+ %dir %{_sysconfdir}/xdg/menus/applications-merged

+ %endif

  %{_libdir}/lib*.so.*

  %{_datadir}/desktop-directories/*

  %dir %{_libdir}/girepository-1.0

@rstrode this looks like one for you. It seems correct to upstream the changes from c9s, but also pretty weird that we have a redhat-menus package only in Fedora?

in RHEL we use GNOME and GNOME doesn't use redhat-menus. It uses gnome-menus instead (/etc/xdg/menus/gnome-applications.menu et al). We do make gnome-menus provide a small layer of backward compatibility by shipping /etc/xdg/menus/applications.menu too in case there's a third party desktop environment in EPEL or something. We may do future improvements to that compatibility too (see https://bugzilla.redhat.com/show_bug.cgi?id=2125685 )

In Fedora, there are non-GNOME desktop environments that probably rely on redhat-menus to get /etc/xdg/menus/applications.menu et al so redhat-menus remains.

Putting the rhel stuff in fedora will make sure it doesn't fall through the cracks next rhel, so it's probably a good idea.

Do you mind adding a rhel only mkdir -p /etc/xdg/menus/applications-merged to your list of changes ?

rebased onto 4059b25

a year ago

Pull-Request has been merged by rstrode

a year ago
Metadata