2019-12-19 19:34:27 +00:00
#
2023-11-28 13:14:42 +00:00
# spec file
2019-12-19 19:34:27 +00:00
#
2023-11-28 13:14:42 +00:00
# Copyright (c) 2023 SUSE LLC
2019-12-19 19:34:27 +00:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2023-11-28 13:14:42 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2019-12-19 19:34:27 +00:00
#
%define flavor @BUILD_FLAVOR@%nil
%if "%{flavor}" == ""
%define branding_name %{nil}
ExclusiveArch : do-not-build
%else
%define branding_name %{flavor}
%define dash -
%if "%{flavor}" == "SLED"
%define build_SLED 1
%else
%define build_openSUSE 1
%endif
%if (0%{?build_SLED} && 0%{?is_opensuse}) || (0%{?build_openSUSE} && ! 0%{?is_opensuse})
# Don't build SLE branding on openSUSE and vice-versa
ExclusiveArch : do-not-build
%endif
%endif
%define gnome_menus_version %(rpm -q --qf '%%{version}' gnome-menus)
Name : gnome-menus-branding%{?dash} %{branding_name}
Version : 42.1
Release : 0
Summary : The GNOME Desktop Menu -- %{branding_name} Menus Definitions
License : LGPL-2.1-or-later
Group : System/GUI/GNOME
URL : http://www.gnome.org
Source : gnome-menus-branding-COPYING
# PATCH-FIX-OPENSUSE gnome-menus-branding-remove-X-SuSE-ControlCenter.patch vuntz@opensuse.org -- Remove the desktop files with X-SuSE-YaST category from the Applications menu and explicitly add YaST launcher
Patch0 : gnome-menus-branding-remove-X-SuSE-ControlCenter.patch
BuildRequires : gnome-menus
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with gnome-menus-branding-%{branding_name}, you cannot
# reuse build root. You have to build in a clean build root every time!
BuildRequires : gnome-menus-branding-upstream
Requires : gnome-menus = %{gnome_menus_version}
Supplements: packageand(gnome-menus:branding-%{branding_name} )
Conflicts : gnome-menus-branding
Provides : gnome-menus-branding = %{gnome_menus_version}
BuildArch : noarch
%description
The package contains an implementation of the draft " D e s k t o p M e n u
Specification" f r o m f r e e d e s k t o p . o r g :
http://www.freedesktop.org/Standards/menu-spec
This package provides the %{branding_name} definitions for menus.
%prep
%setup -q -T -c %{name} -%{version}
cp -a %{SOURCE0} COPYING
# We will base menus on upstream menus:
cp -a %{_sysconfdir} /xdg/menus/*.menu .
2023-11-28 13:14:42 +00:00
%patch -P 0
2019-12-19 19:34:27 +00:00
%build
%install
install -d %{buildroot} %{_sysconfdir} /xdg/menus
install -m0644 *.menu %{buildroot} %{_sysconfdir} /xdg/menus/
%files
%license COPYING
%{_sysconfdir} /xdg/menus/gnome-applications.menu
%changelog