%global hash efba411 %global date 20241101 %define debug_package %{nil} %define __os_install_post %{nil} Name: WhiteSur-kde-theme Summary: WhiteSur KDE Theme Version: %{date} License: GPLv3 Release: %{?hash:0.1.git%{hash}}%{!?hash:1}%{?dist} URL: https://github.com/vinceliuice/WhiteSur-kde Source0: %{name}-%{date}%{?hash:.git%{hash}}.tar.%{?hash:xz}%{!?hash:gz} BuildArch: noarch BuildRequires: coreutils Requires: kvantum %description WhiteSur KDE theme %prep %autosetup -n %{name}-%{date}%{?hash:.git%{hash}} %install AURORAE_DIR=%{buildroot}%{_datadir}/aurorae/themes SCHEMES_DIR=%{buildroot}%{_datadir}/color-schemes PLASMA_DIR=%{buildroot}%{_datadir}/plasma/desktoptheme LOOKFEEL_DIR=%{buildroot}%{_datadir}/plasma/look-and-feel LAYOUT_TEMPLATE_DIR=%{buildroot}%{_datadir}/plasma/layout-templates PLASMOID_DIR=%{buildroot}%{_datadir}/plasma/plasmoids KVANTUM_DIR=%{buildroot}%{_datadir}/Kvantum WALLPAPER_DIR=%{buildroot}%{_datadir}/wallpapers LATTE_DIR=%{buildroot}%{_datadir}/latte/config SDDM_DIR=%{buildroot}%{_datadir}/sddm/themes mkdir -p ${AURORAE_DIR} mkdir -p ${SCHEMES_DIR} mkdir -p ${PLASMA_DIR} mkdir -p ${LOOKFEEL_DIR} mkdir -p ${LAYOUT_TEMPLATE_DIR} mkdir -p ${PLASMOID_DIR} mkdir -p ${KVANTUM_DIR} mkdir -p ${WALLPAPER_DIR} mkdir -p ${LATTE_DIR} mkdir -p ${SDDM_DIR} cp -r aurorae/* ${AURORAE_DIR} cp -r Kvantum/* ${KVANTUM_DIR} cp -r color-schemes/* ${SCHEMES_DIR} cp -r plasma/desktoptheme/WhiteSur* ${PLASMA_DIR} cp -r plasma/desktoptheme/icons ${PLASMA_DIR}/WhiteSur cp -r plasma/desktoptheme/icons ${PLASMA_DIR}/WhiteSur-alt cp -r plasma/desktoptheme/icons ${PLASMA_DIR}/WhiteSur-dark cp -r plasma/look-and-feel/* ${LOOKFEEL_DIR} cp -r plasma/layout-templates/* ${LAYOUT_TEMPLATE_DIR} cp -r plasma/plasmoids/* ${PLASMOID_DIR} cp -r wallpaper/WhiteSur ${WALLPAPER_DIR} cp -r latte-dock/* ${LATTE_DIR} %if %{fedora} <= 39 DESK_VERSION=5.0 %else DESK_VERSION=6.2 %endif for color in light dark do cp -r "sddm/WhiteSur-${DESK_VERSION}" "${SDDM_DIR}/WhiteSur-${color}" cp -r "sddm/images/background-${color}.jpeg" "${SDDM_DIR}/WhiteSur-${color}/background.jpeg" cp -r "sddm/images/preview-${color}.jpeg" "${SDDM_DIR}/WhiteSur-${color}/preview.jpeg" sed -i "/\Name=/s/WhiteSur/WhiteSur-${color}/" "${SDDM_DIR}/WhiteSur-${color}/metadata.desktop" sed -i "/\Theme-Id=/s/WhiteSur/WhiteSur-${color}/" "${SDDM_DIR}/WhiteSur-${color}/metadata.desktop" sed -i "s/WhiteSur/WhiteSur-${color}/g" "${SDDM_DIR}/WhiteSur-${color}/Main.qml" done %files %{_datadir}/aurorae/themes %{_datadir}/color-schemes %{_datadir}/plasma/desktoptheme %{_datadir}/plasma/look-and-feel %{_datadir}/plasma/layout-templates %{_datadir}/plasma/plasmoids %{_datadir}/Kvantum %{_datadir}/wallpapers %{_datadir}/latte/config %{_datadir}/sddm/themes/WhiteSur-{light,dark} %changelog * Tue Nov 05 2024 Tomas Chang - 20241101-0.1.gitefba411 - Update to latest git on 20241101 * Thu Jul 13 2023 Tomas Chang - 20230622-0.1.git248d4c0 - Update to latest git on 20230622 * Thu Nov 17 2022 Tomas Chang - 20221029-0.2.git91ad563 - Add SDDM theme - Add layout-templates - Add plasmoids * Thu Nov 17 2022 Tomas Chang - 20221029-0.1.git91ad563 - Update to latest git * Sat Oct 08 2022 Tomas Chang - 20220929-0.1.gitd002bf27 - Initial build