From 4059b25d171bba74af5f5e1d41a9cc76a98897fd Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 14 Apr 2023 15:10:41 -0400 Subject: [PATCH] Provide redhat-menus in RHEL builds --- gnome-menus.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnome-menus.spec b/gnome-menus.spec index fa11b28..94be1d7 100644 --- a/gnome-menus.spec +++ b/gnome-menus.spec @@ -19,7 +19,13 @@ BuildRequires: pkgconfig 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 @@ writing applications that use the GNOME menu system. %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 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %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