Name: steamdeck-kde-presets-desktop Version: 0.0.git.3955.c3b7f1a5 Release: 1%{?dist} Summary: KDE Presets from Valve's SteamOS 3.0 for desktops License: GPLv2 URL: https://github.com/ublue-os/bazzite Source0: https://gitlab.com/evlaV/steamdeck-kde-presets/-/archive/master/steamdeck-kde-presets-master.tar.gz Source1: kdeglobals-desktop Source2: steamdeck-le.svg Source3: bazzite_logo.svgz Source4: metadata_vapor.json Source5: metadata_vgui2.json Source6: plasmarc Patch0: multiuser.patch Patch1: lockscreen.patch Patch2: bazzite_logo.patch Patch3: ublue.patch Patch4: splash.patch BuildArch: noarch Requires: kde-filesystem Conflicts: steamdeck-kde-presets Conflicts: steamdeck-backgrounds Conflicts: steameck-gnome-presets %description KDE Presets from Valve's SteamOS 3.0 for desktops # Disable debug packages %define debug_package %{nil} %prep %autosetup -p1 -n steamdeck-kde-presets-master %build %install mkdir -p %{buildroot}%{_datadir}/ mkdir -p %{buildroot}%{_sysconfdir}/ mkdir -p %{buildroot}%{_bindir}/ cp -rv usr/share/* %{buildroot}%{_datadir} cp -rv etc/* %{buildroot}%{_sysconfdir} cp usr/bin/steamos-add-to-steam %{buildroot}%{_bindir}/steamos-add-to-steam mv %{buildroot}%{_datadir}/icons/hicolor/scalable/places/distributor-logo-steamdeck.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/places/steamdeck.svg cp %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/scalable/places/steamdeck-le.svg cp %{SOURCE6} %{buildroot}%{_datadir}/plasma/desktoptheme/Vapor/plasmarc # Remove unneeded files rm -rf %{buildroot}%{_datadir}/applications/steam/steamos-nested-desktop rm %{buildroot}%{_datadir}/applications/org.mozilla.firefox.desktop rm %{buildroot}%{_datadir}/kservices5/ServiceMenus/steam.desktop rm %{buildroot}%{_datadir}/X11/xorg.conf.d/99-pointer.conf rm %{buildroot}%{_datadir}/icons/hicolor/scalable/places/distributor-logo.svg rm %{buildroot}%{_sysconfdir}/profile.d/kde.sh rm %{buildroot}%{_sysconfdir}/sddm.conf.d/steamdeck.conf rm %{buildroot}%{_sysconfdir}/skel/Desktop/Return.desktop rm %{buildroot}%{_sysconfdir}/X11/Xsession.d/50rotate-screen rm %{buildroot}%{_sysconfdir}/xdg/autostart/ibus.desktop rm %{buildroot}%{_sysconfdir}/xdg/autostart/jupiter-plasma-bootstrap.desktop rm %{buildroot}%{_sysconfdir}/xdg/autostart/steam.desktop rm %{buildroot}%{_sysconfdir}/xdg/kcminputrc rm %{buildroot}%{_sysconfdir}/xdg/kwinrc rm %{buildroot}%{_sysconfdir}/xdg/kwinrulesrc rm %{buildroot}%{_sysconfdir}/xdg/plasma-nm rm %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/ibus.sh rm %{buildroot}%{_sysconfdir}/xdg/powermanagementprofilesrc rm %{buildroot}%{_sysconfdir}/xdg/kscreenlockerrc rm %{buildroot}%{_sysconfdir}/xdg/baloofilerc rm %{buildroot}%{_sysconfdir}/xdg/kdeglobals rm %{buildroot}%{_sysconfdir}/xdg/kcm-about-distrorc cp %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/kdeglobals rm %{buildroot}%{_datadir}/plasma/look-and-feel/com.valve.vapor.desktop/contents/splash/images/deck_logo.svgz rm %{buildroot}%{_datadir}/plasma/look-and-feel/com.valve.vgui.desktop/contents/splash/images/deck_logo.svgz cp %{SOURCE3} %{buildroot}%{_datadir}/plasma/look-and-feel/com.valve.vapor.desktop/contents/splash/images/bazzite_logo.svgz cp %{SOURCE3} %{buildroot}%{_datadir}/plasma/look-and-feel/com.valve.vgui.desktop/contents/splash/images/bazzite_logo.svgz cp %{SOURCE4} %{buildroot}%{_datadir}/plasma/look-and-feel/com.valve.vapor.desktop/metadata.json cp %{SOURCE5} %{buildroot}%{_datadir}/plasma/look-and-feel/com.valve.vgui.desktop/metadata.json # Do post-installation %post # Do before uninstallation %preun # Do after uninstallation %postun # This lists all the files that are included in the rpm package and that # are going to be installed into target system where the rpm is installed. %files %{_bindir}/steamos-add-to-steam %{_datadir}/color-schemes/Vapor.colors %{_datadir}/color-schemes/VGUI.colors %{_datadir}/icons/* %{_datadir}/konsole/* %{_datadir}/plasma/avatars/* %{_datadir}/plasma/desktoptheme/* %{_datadir}/plasma/kickeractions/steam.desktop %{_datadir}/plasma/look-and-feel/com.valve.vapor.desktop/* %{_datadir}/plasma/look-and-feel/com.valve.vgui.desktop/* %{_datadir}/themes/* %{_datadir}/wallpapers/* %{_sysconfdir}/xdg/gtk-2.0/gtkrc %{_sysconfdir}/xdg/gtk-3.0/settings.ini %{_sysconfdir}/xdg/kdeglobals %{_sysconfdir}/xdg/ktrashrc # Finally, changes from the latest release of your application are generated from # your project's Git history. It will be empty until you make first annotated Git tag. %changelog