[packages/laptop-mode-tools] - rel 2, disable suppotr for pm-utils (dropped package)

baggins baggins at pld-linux.org
Sun Aug 31 00:33:24 CEST 2025


commit dbbdc5d78ca9ef2fca9e810743d80c1040855321
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Aug 31 02:32:58 2025 +0200

    - rel 2, disable suppotr for pm-utils (dropped package)

 laptop-mode-tools.spec | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/laptop-mode-tools.spec b/laptop-mode-tools.spec
index 9696f2f..a3ede71 100644
--- a/laptop-mode-tools.spec
+++ b/laptop-mode-tools.spec
@@ -7,8 +7,9 @@
 # - /etc/apm not owned, should it be /etc/pm?
 #
 # Conditional build:
-%bcond_with	apm	# build apm package
-%bcond_without	acpi	# build acpi package
+%bcond_with	apm		# build apm package
+%bcond_without	acpi		# build acpi package
+%bcond_with	pm_utils	# build pm-utils package
 
 %ifnarch %{ix86} %{x8664} ia64
 %undefine		with_acpi
@@ -20,7 +21,7 @@ Summary:	Laptop Mode Tools
 Summary(pl.UTF-8):	Narzędzia do trybu laptopowego
 Name:		laptop-mode-tools
 Version:	1.74
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Applications/System
 #Source0Download: https://github.com/rickysarraf/laptop-mode-tools/releases
@@ -135,6 +136,7 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
 	TMPFILES_D=%{systemdtmpfilesdir} \
 	%{!?with_acpi:ACPI=disabled} \
 	%{!?with_apm:APM=disabled} \
+	%{!?with_pm_utils:PMU=disabled} \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/laptop-mode
@@ -203,9 +205,11 @@ fi
 %attr(755,root,root) %{_sysconfdir}/apm/event.d/laptop-mode
 %endif
 
+%if %{with pm_utils}
 %files -n pm-utils-lmt
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/01laptop-mode
+%endif
 
 %files gui
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/laptop-mode-tools.git/commitdiff/dbbdc5d78ca9ef2fca9e810743d80c1040855321



More information about the pld-cvs-commit mailing list