[packages/gnome-shell-extension-caffeine] - new

baggins baggins at pld-linux.org
Sun Jun 22 22:42:53 CEST 2025


commit ca1406bdf2e479d7e6395ee4453c66c30e3ee3b7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jun 23 00:42:29 2025 +0200

    - new

 gnome-shell-extension-caffeine.spec | 48 +++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/gnome-shell-extension-caffeine.spec b/gnome-shell-extension-caffeine.spec
new file mode 100644
index 0000000..e472af9
--- /dev/null
+++ b/gnome-shell-extension-caffeine.spec
@@ -0,0 +1,48 @@
+Summary:	Disable the screen saver and auto suspend in gnome shell
+Name:		gnome-shell-extension-caffeine
+Version:	57
+Release:	1
+License:	GPL-2.0-only
+Source0:	https://github.com/eonpatapon/gnome-shell-extension-caffeine/archive/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5:	f1b8b8688641eb1324f02249b33f9259
+URL:		https://github.com/eonpatapon/gnome-shell-extension-caffeine
+BuildRequires:	%{_bindir}/glib-compile-schemas
+BuildRequires:	gettext
+BuildArch:	noarch
+
+%define		extdir	caffeine at patapon.info
+
+%description
+This extension allows the user to easily disable the screen saver and
+auto suspend in gnome shell via an icon in the top bar. By default,
+this function is also enabled if a full screen application is running,
+and can be configured to disable gnome shell's night light as well.
+
+%prep
+%setup -q
+
+%build
+./update-locale.sh
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/{gnome-shell/extensions,glib-2.0/schemas/}
+
+cp -a %{extdir} $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/%{extdir}
+cp -a %{extdir}/schemas/*.gschema.xml $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/%{extdir}/schemas
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%glib_compile_schemas
+
+%postun
+%glib_compile_schemas
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{_datadir}/gnome-shell/extensions/%{extdir}
+%{_datadir}/glib-2.0/schemas/*.gschema.xml
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnome-shell-extension-caffeine.git/commitdiff/ca1406bdf2e479d7e6395ee4453c66c30e3ee3b7



More information about the pld-cvs-commit mailing list