Package caffeine-ng: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | %define oname caffeine Name: %oname-ng Version: 4.2.0 Release: alt1 Summary: Prevent screensaving and powersaving Group: Graphical desktop/Other License: GPLv3 and LGPLv3 Url: https://codeberg.org/WhyNotHugo/caffeine-ng Source: %name-%version.tar Patch: %name-%version-%release.patch BuildArch: noarch BuildRequires(pre): rpm-macros-python3 rpm-build-gir BuildRequires: rpm-build-python3 BuildRequires: meson BuildRequires: python3-devel BuildRequires: scdoc BuildRequires: git-core Obsoletes: %oname =< %EVR Provides: %oname %add_python3_req_skip gi.repository.Notify %description Caffeine is a little daemon that sits in you systray, and prevents the screensaver from showing up, or the systems from going to sleep. It does so when an application is fullscreened (eg: youtube), or when you click on the systray icon (which you can do, when, eg: reading). This is a fork of Caffeine 2.4, since later versions dropped support for the systray icon in favour of only automatic detection of fullscreen apps only, which resulted rather controversial. The intention of this fork is to also evolve on its own, not only fixing issues, but also implemented missing features, when relevant. %description -l ru_RU.UTF-8 Caffeine - маленькая служба, которая блокирует активацию скринсейвера и переход компьютера в ждущий режим, когда активное окно находится в полноэкранном режиме (например: просматриваете YouTube), или при нажатии на значок в системном лотке. Это форк Caffeine 2.4, так как в более поздних версиях прекращена поддержка значка в системном лотке в пользу только автоматического обнаружения полноэкранных приложений. Цель этого форка самостоятельное развитие, а не только устранение проблем, реализация недостающих функций, когда это уместно. %prep %setup %autopatch -p1 %build git config --global user.email "user at altlinux.org" git config --global user.name "user" git init-db git add . -A git commit -a -m "%version" git tag -m "%version" %version %meson %meson_build %install %meson_install #mv %buildroot%python3_sitelibdir%prefix/* %buildroot%prefix/ #mv %buildroot%python3_sitelibdir%_sysconfdir %buildroot/ %find_lang %name # remove unused icons rm -r %buildroot%_iconsdir/ubuntu-mono-dark %files -f %name.lang %doc *.rst %_sysconfdir/xdg/autostart/%oname.desktop %_bindir/* %_man1dir/*.1.* %_desktopdir/*.desktop %_datadir/%oname %_iconsdir/hicolor/*/*/* %_pixmapsdir/* %python3_sitelibdir/* #_datadir/%oname %_datadir/glib-2.0/schemas/* %changelog * Mon Jan 08 2024 Anton Midyukov <antohami@altlinux.org> 4.2.0-alt1 - new version 4.2.0 * Thu Mar 09 2023 Anton Midyukov <antohami@altlinux.org> 4.0.2-alt2 - switch to use AyatanaAppindicator * Mon Feb 13 2023 Anton Midyukov <antohami@altlinux.org> 4.0.2-alt1 - new version 4.0.2 - Update Url * Thu Jun 23 2022 Anton Midyukov <antohami@altlinux.org> 3.5.1-alt1 - new version 3.5.1 - cleeanup spec * Tue Mar 19 2019 Anton Midyukov <antohami@altlinux.org> 3.4.2-alt2 - fix freezing on exit (Closes: 36003) - Update Url * Sun Feb 03 2019 Anton Midyukov <antohami@altlinux.org> 3.4.2-alt1 - new version 3.4.2 * Fri Jul 28 2017 Anton Midyukov <antohami@altlinux.org> 3.4.0-alt3 - Added missing requires. * Sun Mar 12 2017 Anton Midyukov <antohami@altlinux.org> 3.4.0-alt2 - Added buildrequires rpm-build-gir. * Tue Jan 31 2017 Anton Midyukov <antohami@altlinux.org> 3.4.0-alt1 - new version 3.4.0 * Tue Jan 03 2017 Anton Midyukov <antohami@altlinux.org> 3.3.8-alt1 - Initial build for ALT Linux Sisyphus. |