]> git.pld-linux.org Git - packages/laptop-mode-tools.git/blobdiff - laptop-mode-tools.spec
- rel 1.53; disable apm subpackage (we use acpi in th)
[packages/laptop-mode-tools.git] / laptop-mode-tools.spec
index 0707646fcf486eb05e5bd4aff0f283b0e2a1df0d..254cdae1ad461918e6961db194386fef4e0c5ed9 100644 (file)
@@ -1,18 +1,25 @@
+#
+# TODO:
+# - subpackage with files for pbbuttonsd and pmud
+# - fix *.conf manuals (should be .5 and referenced as such)
+#
 Summary:       Laptop Mode Tools
-Summary(pl.UTF-8):   Narzędzia do trybu laptopowego
+Summary(pl.UTF-8):     Narzędzia do trybu laptopowego
 Name:          laptop-mode-tools
-Version:       1.32
+Version:       1.53
 Release:       1
 License:       GPL
 Group:         Applications/System
-Source0:       http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/%{name}_%{version}.tar.gz
-# Source0-md5: 120723749b1a067fa6dec1c767ad2786
+Source0:       http://samwel.tk/laptop_mode/tools/downloads/%{name}_%{version}.tar.gz
+# Source0-md5: 38c2bc57ca58055c3f42318dbaa9a3f6
 Source1:       %{name}.init
 URL:           http://www.samwel.tk/laptop_mode/
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+%ifarch %{ix86} %{x8664} arm ia64 mips ppc sh
 Requires:      %{name}-scripts = %{epoch}:%{version}-%{release}
-BuildArch:     noarch
+%endif
+Suggests:      hdparm
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -32,7 +39,7 @@ poprawę czasu życia baterii.
 
 %package acpi
 Summary:       ACPI scripts for laptop mode tools
-Summary(pl.UTF-8):   Skrypty ACPI dla narzędzi do trybu laptopowego
+Summary(pl.UTF-8):     Skrypty ACPI dla narzędzi do trybu laptopowego
 Group:         Applications/System
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      acpid
@@ -46,7 +53,7 @@ Skrypty ACPI dla narzędzi do trybu laptopowego.
 
 %package apm
 Summary:       APM scripts for laptop mode tools
-Summary(pl.UTF-8):   Skrypty APM dla narzędzi do trybu laptopowego
+Summary(pl.UTF-8):     Skrypty APM dla narzędzi do trybu laptopowego
 Group:         Applications/System
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      apmd
@@ -59,22 +66,30 @@ APM scripts for laptop mode tools.
 Skrypty APM dla narzędzi do trybu laptopowego.
 
 %prep
-%setup -q
+%setup -q -n %{name}_%{version}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,laptop-mode,apm/event.d,acpi/{actions,events}} \
-       $RPM_BUILD_ROOT{%{_mandir}/man8,%{_sbindir}}
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,apm/event.d,acpi/{actions,events}} \
+       $RPM_BUILD_ROOT{%{_mandir}/man8,%{_datadir}/%{name}/modules,%{_sbindir}} \
+       $RPM_BUILD_ROOT/etc/laptop-mode/{{batt,lm-ac,nolm-ac}-{start,stop},conf.d} \
+       $RPM_BUILD_ROOT%{_varrun}/%{name}
 
 install man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
-install etc/laptop-mode/laptop-mode.conf $RPM_BUILD_ROOT%{_sysconfdir}/laptop-mode
-install usr/sbin/laptop_mode usr/sbin/lm-syslog-setup $RPM_BUILD_ROOT%{_sbindir}
+install etc/laptop-mode/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/laptop-mode
+install etc/laptop-mode/conf.d/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/laptop-mode/conf.d
+install usr/share/laptop-mode-tools/modules/* $RPM_BUILD_ROOT%{_datadir}/%{name}/modules
+install usr/sbin/{laptop_mode,lm-syslog-setup,lm-profiler} $RPM_BUILD_ROOT%{_sbindir}
 
+%ifarch %{ix86} %{x8664} ia64
 install etc/acpi/actions/* $RPM_BUILD_ROOT%{_sysconfdir}/acpi/actions
 install etc/acpi/events/* $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
+%endif
 
+%ifarch %{ix86} arm mips ppc sh
 install etc/apm/event.d/* $RPM_BUILD_ROOT%{_sysconfdir}/apm/event.d
+%endif
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/laptop-mode
 
@@ -94,16 +109,43 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc README Documentation/*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/laptop-mode/*.*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/laptop-mode/*.conf
 %dir %{_sysconfdir}/laptop-mode
+%dir %{_sysconfdir}/laptop-mode/batt-start
+%dir %{_sysconfdir}/laptop-mode/batt-stop
+%dir %{_sysconfdir}/laptop-mode/conf.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/laptop-mode/conf.d/*.conf
+%dir %{_sysconfdir}/laptop-mode/lm-ac-start
+%dir %{_sysconfdir}/laptop-mode/lm-ac-stop
+%dir %{_sysconfdir}/laptop-mode/nolm-ac-start
+%dir %{_sysconfdir}/laptop-mode/nolm-ac-stop
 %attr(754,root,root) /etc/rc.d/init.d/laptop-mode
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man8/*.8*
-
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/modules
+%dir %{_varrun}/%{name}
+%attr(755,root,root) %{_datadir}/%{name}/modules/*
+%attr(755,root,root) %{_sbindir}/laptop_mode
+%attr(755,root,root) %{_sbindir}/lm-profiler
+%attr(755,root,root) %{_sbindir}/lm-syslog-setup
+%{_mandir}/man8/laptop_mode.8*
+%{_mandir}/man8/lm-profiler.8*
+%{_mandir}/man8/lm-syslog-setup.8*
+# should be man5
+%{_mandir}/man8/laptop-mode.conf.8*
+%{_mandir}/man8/lm-profiler.conf.8*
+
+%ifarch %{ix86} %{x8664} ia64
 %files acpi
 %defattr(644,root,root,755)
-%attr(750,root,root) %{_sysconfdir}/acpi/*/*
+%attr(755,root,root) %{_sysconfdir}/acpi/actions/lm_*.sh
+%{_sysconfdir}/acpi/events/lm_*
+%endif
 
+%if 0
+%ifarch %{ix86} arm mips ppc sh
 %files apm
 %defattr(644,root,root,755)
-%attr(750,root,root) %{_sysconfdir}/apm/event.d/*
+# dir not owned
+%attr(755,root,root) %{_sysconfdir}/apm/event.d/laptop-mode
+%endif
+%endif
This page took 0.035245 seconds and 4 git commands to generate.