%global uuid com.github.Latesil.%{name} Name: theme-switcher Version: 2.0.4 Release: 10%{?dist} Summary: Switch dark/light GTK theme automatically during day/night License: GPLv3+ URL: https://github.com/Latesil/theme-switcher Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # Default systemd user unit preset for < F32 # * https://fedoraproject.org/wiki/Changes/Systemd_presets_for_user_units Source1: 99-default.preset BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: intltool %if 0%{?fedora} BuildRequires: libappstream-glib %endif BuildRequires: meson >= 0.50.0 BuildRequires: glib2-devel BuildRequires: python3-devel BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(glib-2.0) Requires: gnome-terminal Requires: gtk3 Requires: hicolor-icon-theme Requires: python3-gobject %{?systemd_requires} %description A global automated switcher for dark/light GTK theme during day/night and more. Theme-switcher automatically can switch your: - GTK theme - GNOME Terminal profiles - Wallpapers - More will come... To read docs run: xdg-open %{_docdir}/%{name}/README.md %prep %autosetup -p1 %build %meson %meson_build %install %meson_install %find_lang %{uuid} %if 0%{?fedora} < 32 install -Dpm0644 %{SOURCE1} -t %{buildroot}%{_prefix}/lib/systemd/user-preset/ %endif %check %if 0%{?fedora} appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml %endif desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %post %systemd_user_post %{name}-auto.service %preun %systemd_user_preun %{name}-auto.service %files -f %{uuid}.lang %license LICENSE %doc README.md CREDITS %{_bindir}/%{name}-auto.py %{_bindir}/%{name}-gui %{_bindir}/%{name}-manual.py %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/icons/hicolor/symbolic/*/*.svg %{_metainfodir}/*.xml %{_userunitdir}/%{name}-auto.* %{python3_sitelib}/Themeswitcher/ %if 0%{?fedora} < 32 %{_prefix}/lib/systemd/user-preset/99-default.preset %endif %changelog * Sun May 01 2022 Artem Polishchuk - 2.0.4-10 - build: Add dep gnome-terminal | GH#13 * Sat Jan 22 2022 Fedora Release Engineering - 2.0.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.0.4-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Artem Polishchuk - 2.0.4-4 - Add systemd user unit preset which required for < F32 * Fri May 15 2020 Artem Polishchuk - 2.0.4-3 - Update to 2.0.4 * Fri May 15 2020 Artem Polishchuk - 2.0.3-1 - Update to 2.0.3 * Thu May 07 2020 Artem Polishchuk - 2.0.0-1 - Update to 2.0.0 * Fri Nov 08 2019 Artem Polishchuk - 1.0.0-1.20191109git9f0fdab - Update to 1.0.0 * Mon Nov 04 2019 Artem Polishchuk - 0.9.1-1.20191104git7ec63be - Update to latest git snapshot * Sat Nov 02 2019 Artem Polishchuk - 0.9.1-1.20191102git0e9c4e0 - Update to latest git snapshot * Wed Jul 31 2019 Artem Polishchuk - 0.9.1-1.20190801git570f378 - Update to latest git snapshot * Sun Jul 28 2019 Artem Polishchuk - 0.9-8.20190728gitb1a6284 - Update to latest git snapshot * Sun Jul 14 2019 Artem Polishchuk - 0.9-1.20190714git284cadb - Update to latest git snapshot * Wed Jun 12 2019 Artem Polishchuk - 0-1.20190612gitceb42e5 - Initial package