From 330938afcca9d010ae6ffbea77ea571c9563fd15 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:36:50 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.15.0-1mamba;Sat Oct 03 2020] --- README.md | 2 ++ lxqt-powermanagement.spec | 64 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 lxqt-powermanagement.spec diff --git a/README.md b/README.md index 1d0ef40..a78abee 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lxqt-powermanagement +Tools to monitor power management events and optionally trigger actions like e. g. shut down a system when laptop batteries are low on power. + diff --git a/lxqt-powermanagement.spec b/lxqt-powermanagement.spec new file mode 100644 index 0000000..cfdaa38 --- /dev/null +++ b/lxqt-powermanagement.spec @@ -0,0 +1,64 @@ +Name: lxqt-powermanagement +Version: 0.15.0 +Release: 1mamba +Summary: Tools to monitor power management events and optionally trigger actions +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/lxqt/lxqt-powermanagement +Source: https://github.com/lxqt/lxqt-powermanagement.git/%{version}/lxqt-powermanagement-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libkidletime-devel +BuildRequires: libkwindowsystem-devel +BuildRequires: liblxqt-devel +BuildRequires: libqt5-devel +BuildRequires: libqtxdg-devel +BuildRequires: libsolid-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Tools to monitor power management events and optionally trigger actions like e. g. shut down a system when laptop batteries are low on power. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +find %{buildroot}%{_datadir}/*/translations/ -name *.qm | \ +while read line; do + bn=`echo ${line}|cut -d_ -f2-3` + echo "%lang(${bn/.*}) ${line/*-root}" >> %{name}.lang +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_sysconfdir}/xdg/autostart/lxqt-powermanagement.desktop +%{_bindir}/lxqt-config-powermanagement +%{_bindir}/lxqt-powermanagement +%{_datadir}/applications/lxqt-config-powermanagement.desktop +%{_datadir}/icons/hicolor/scalable/devices/laptop-lid.svg +%doc AUTHORS LICENSE + +%changelog +* Sat Oct 03 2020 Silvan Calarco 0.15.0-1mamba +- package created using the webbuild interface