File xfce4-branding-felis.spec of Package xfce4-branding-felis

#
# spec file for package xfce4-branding-felis
#
# Copyright (c) 2024 Maurizio Galli
# Copyright (c) 2024 Project Felis

#
# 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.

# Please submit bugfixes or comments via https://github.com/m4u9/ProjectFelis
#y are the patchinfo for Server, Proxy and Client Tools provided by the SUMA team

%define _name ProjectFelis
%define libxfce4ui_gtk3_libname libxfce4ui-2-0
%define libexo_libname          libexo-1-0
%define xfce4_panel_version     %(rpm -q --queryformat '%%{VERSION}' xfce4-panel)
%define xfce4_session_version   %(rpm -q --queryformat '%%{VERSION}' xfce4-session)
%define xfce4_settings_version  %(rpm -q --queryformat '%%{VERSION}' xfce4-settings)
%define xfdesktop_version       %(rpm -q --queryformat '%%{VERSION}' xfdesktop)
%define libgarcon_version       %(rpm -q --queryformat '%%{VERSION}' libgarcon-data)
%define libxfce4ui_version      %(rpm -q --queryformat '%%{VERSION}' %{libxfce4ui_gtk3_libname})
%define xfce4_notifyd_version   %(rpm -q --queryformat '%%{VERSION}' xfce4-notifyd)
%define exo_version             %(rpm -q --queryformat '%%{VERSION}' %{libexo_libname})
%define xfwm4_version           %(rpm -q --queryformat '%%{VERSION}' xfwm4)
%define xfce4_power_manager_version %(rpm -q --queryformat '%%{VERSION}' xfce4-power-manager)
%define thunar_volman_version   %(rpm -q --queryformat '%%{VERSION}' thunar-volman)

Name:           xfce4-branding-felis
Version:        20240413+git.e75c40f
Release:        0
Summary:        Felis Brand File
License:        BSD-3-Clause AND CC-BY-SA-3.0
URL:            https://github.com/m4u9/ProjectFelis
Source0:        %{_name}-%{version}.tar.xz
Conflicts:      branding
Provides:       branding
Conflicts:      branding-openSUSE
Provides:       branding-openSUSE
Conflicts:      grub2-branding
Provides:       grub2-branding
Conflicts:      grub2-branding-openSUSE
Provides:       grub2-branding-openSUSE
Conflicts:      distribution-logos
Provides:       distribution-logos
BuildRequires:  transactional-update
Requires:       transactional-update
BuildRequires:  flatpak
Requires:       flatpak
BuildRequires:  newt
Requires:       newt
BuildRequires:  %{libxfce4ui_gtk3_libname}
BuildRequires:  fdupes
BuildRequires:  libgarcon-data
BuildRequires:  wallpaper-branding
# owns %%{_datadir}/applications/xfce-mimeapps.list symlink target
Requires:       libgio-2_0-0
# for regenerating xfce-mimeapps.list
BuildRequires:  desktop-file-utils
BuildRequires:  adwaita-xfce-icon-theme
BuildRequires:  gtk2-metatheme-greybird-geeko
BuildRequires:  gtk3-metatheme-greybird-geeko
BuildRequires:  hack-fonts
BuildRequires:  metatheme-greybird-geeko-common
BuildRequires:  noto-coloremoji-fonts
BuildRequires:  noto-sans-fonts
BuildRequires:  thunar-volman
BuildRequires:  xfce4-notifyd
BuildRequires:  xfce4-panel
BuildRequires:  xfce4-power-manager
BuildRequires:  xfce4-session
BuildRequires:  xfce4-settings
BuildRequires:  xfdesktop
BuildRequires:  xfwm4
BuildArch:      noarch

%description
This package provides the brand identity for Felis

%package -n xfce4-panel-branding-felis
Summary:        Felis Branding of xfce4-panel
# uses xfce4-panel-plugin-mixer
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Recommends:     pavucontrol
Recommends:     xfce4-panel-plugin-power-manager
Recommends:     xfce4-panel-plugin-pulseaudio
# require. Because without this, many things (package-update-indicator...) will not work well, it's not really optional.
Requires:       xfce4-panel-plugin-whiskermenu
Conflicts:      otherproviders(xfce4-panel-branding)
Provides:       xfce4-panel-branding = %{xfce4_panel_version}

%description -n xfce4-panel-branding-felis
This package provides the felis look and feel for the Xfce Panel.

%package -n xfce4-session-branding-felis
Summary:        Felis Branding of xfce4-session
# owns %%{_datadir}/applications/xfce-mimeapps.list symlink target
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Requires:       libgio-2_0-0
# for regenerating xfce-mimeapps.list
Requires:       desktop-file-utils
Requires:       adwaita-xfce-icon-theme
Requires:       gtk2-metatheme-greybird-geeko
Requires:       gtk3-metatheme-greybird-geeko
Requires:       metatheme-greybird-geeko-common
Requires:       thunar-volman
Conflicts:      otherproviders(xfce4-session-branding)
Provides:       xfce4-session-branding = %{xfce4_session_version}

%description -n xfce4-session-branding-felis
This package provides the Felis look and feel for the Xfce Session Manager.

%package -n xfce4-settings-branding-felis
Summary:        Felis Branding of xfce4-settings
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Requires:       adwaita-xfce-icon-theme
Requires:       adwaita-xfce-icon-theme
Requires:       desktop-data-openSUSE
Requires:       gtk2-metatheme-adwaita
Requires:       gtk2-metatheme-greybird
Requires:       gtk3-metatheme-adwaita
Requires:       gtk3-metatheme-greybird
Requires:       hack-fonts
Requires:       metatheme-greybird-common
Requires:       noto-coloremoji-fonts
Requires:       noto-sans-fonts
Conflicts:      otherproviders(xfce4-settings-branding)
Provides:       xfce4-settings-branding = %{xfce4_settings_version}

%description -n xfce4-settings-branding-felis
This package provides the Felis look and feel for Xfce.

%package -n xfdesktop-branding-felis
Summary:        Felis Branding of xfdesktop
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Requires:       desktop-data-openSUSE
Conflicts:      otherproviders(xfdesktop-branding)
Provides:       xfdesktop-branding = %{xfdesktop_version}

%description -n xfdesktop-branding-felis
This package provides the Felis look and feel for the Xfce Desktop Manager.

%package -n libgarcon-branding-felis
Summary:        Felis Branding of libgarcon
License:        CC-BY-SA-3.0 AND GPL-2.0-only
Group:          System/GUI/XFCE
Requires:       desktop-data-openSUSE
# xfce-applications.menu requires xfce-settings-manager.menu
Requires:       xfce4-settings-branding = %{xfce4_settings_version}
# the menu references xfce4-about.desktop
Requires:       libxfce4ui-tools
Conflicts:      otherproviders(libgarcon-branding)
Provides:       libgarcon-branding = %{libgarcon_version}

%description -n libgarcon-branding-felis
This package provides the Felis look and feel for Garcon.

%package -n libxfce4ui-branding-felis
Summary:        Felis Branding of libxfce4ui
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Conflicts:      otherproviders(libxfce4ui-branding)
Provides:       libxfce4ui-branding = %{libxfce4ui_version}

%description -n libxfce4ui-branding-felis
This package provides the Felis look and feel for the libxfce4ui library.

%package -n xfwm4-branding-felis
Summary:        Felis Branding of xfwm4
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Requires:       noto-sans-fonts
Conflicts:      otherproviders(xfwm4-branding)
Provides:       xfwm4-branding = %{xfwm4_version}

%description -n xfwm4-branding-felis
This package provides the Felis look and feel for the xfwm4 window manager.

%package -n xfce4-power-manager-branding-felis
Summary:        Felis Branding of xfce4-power-manager
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Conflicts:      otherproviders(xfce4-power-manager-branding)
Provides:       xfce4-power-manager-branding = %{xfce4_power_manager_version}

%description -n xfce4-power-manager-branding-felis
This package provides the Felis look and feel for the Xfce Power Manager.

%package -n thunar-volman-branding-felis
Summary:        Felis Branding of thunar-volman
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Conflicts:      otherproviders(thunar-volman-branding)
Provides:       thunar-volman-branding = %{thunar_volman_version}

%description -n thunar-volman-branding-felis
This package provides the Felis look and feel for the Thunar Volume Manager.

%package -n xfce4-notifyd-branding-felis
Summary:        openSUSE Branding of xfce4-notifyd
License:        CC-BY-SA-3.0 AND GPL-2.0-or-later
Group:          System/GUI/XFCE
Conflicts:      otherproviders(xfce4-notifyd-branding)
Provides:       xfce4-notifyd-branding = %{xfce4_notifyd_version}

%description -n xfce4-notifyd-branding-felis
This package provides the Felis look and feel for the Xfce Notification Daemon.

%prep
%setup -q -n %{_name}-%{version}

%build

%install

# Install firstboot wizards scripts and configs
install -D -p -m 0644 ./branding/config/firstboot/flathub.flatpakrepo %{buildroot}%{_datadir}/felis-desktop/flathub.flatpakrepo
install -D -p -m 0755 ./branding/config/firstboot/felis-firstboot %{buildroot}%{_bindir}/felis-firstboot
install -D -p -m 0755 ./branding/config/autostart/felis-fist-boot.desktop %{buildroot}%{_sysconfdir}/skel/.config/autostart/felis-fist-boot.desktop

# Install Felis config files
install -D -p -m 0644 ./branding/etc/xfce_defaults.conf %{buildroot}%{_sysconfdir}/xfce_defaults.conf
install -D -p -m 0644 ./branding/etc/xdg/menus/xfce-applications.menu %{buildroot}%{_sysconfdir}/xdg/menus/xfce-applications.menu
install -D -p -m 0644 ./branding/etc/xdg/menus/xfce-settings-manager.menu %{buildroot}%{_sysconfdir}/xdg/menus/xfce-settings-manager.menu
install -D -p -m 0644 ./branding/etc/xdg/xfce4/helpers.rc %{buildroot}%{_sysconfdir}/xdg/xfce4/helpers.rc
install -D -p -m 0644 ./branding/etc/xdg/xfce4/whiskermenu/defaults.rc %{buildroot}%{_sysconfdir}/xdg/xfce4/whiskermenu/defaults.rc
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
install -D -p -m 0644 ./branding/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
install -D -p -m 0644 ./branding/usr/share/applications/xfce-mimeapps.list %{buildroot}%{_datadir}/applications/xfce-mimeapps.list

%files
%dir %{_sysconfdir}/skel/.config
%dir %{_sysconfdir}/skel/.config/autostart
%config %{_sysconfdir}/skel/.config/autostart/felis-fist-boot.desktop
%{_bindir}/felis-firstboot
%dir %{_datadir}/felis-desktop
%{_datadir}/felis-desktop/flathub.flatpakrepo

%files -n xfce4-panel-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/whiskermenu
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/whiskermenu/defaults.rc
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

%files -n xfce4-session-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
%config %{_sysconfdir}/xfce_defaults.conf
%dir %{_datadir}/applications
%{_datadir}/applications/xfce-mimeapps.list

%files -n xfce4-settings-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/xfce-settings-manager.menu
%config %{_sysconfdir}/xdg/xfce4/helpers.rc

%files -n xfdesktop-branding-felis
%dir %{_sysconfdir}/xdg/xfce4/xfconf/
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

%files -n libgarcon-branding-felis
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/xfce-applications.menu

%files -n libxfce4ui-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

%files -n xfwm4-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml

%files -n xfce4-power-manager-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml

%files -n thunar-volman-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml

%files -n xfce4-notifyd-branding-felis
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml

%changelog

openSUSE Build Service is sponsored by