source: projects/specs/trunk/p/pm-utils/pm-utils-vl.spec @ 2978

Revision 2978, 17.7 KB checked in by daisuke, 13 years ago (diff)

pm-utils: update to 1.4.1

Line 
1%global quirkdbver 20100619
2
3Summary: Power management utilities and scripts
4Summary(ja): 電源管理ユーティリティおよびスクリプト
5Name: pm-utils
6License: GPLv2
7Version: 1.4.1
8Release: 1%{?_dist_release}
9Group: System Environment/Base
10URL: http://pm-utils.freedesktop.org
11
12Source0: http://pm-utils.freedesktop.org/releases/pm-utils-%{version}.tar.gz
13Source1: http://pm-utils.freedesktop.org/releases/pm-quirks-%{quirkdbver}.tar.gz
14
15Source23: pm-utils-bugreport-info.sh
16
17Source100: 00tuxonice
18Source101: tuxonice.sysconfig
19
20# Use append instead of write for init_logfile (#660329)
21Patch0: pm-utils-1.4.1-init-logfile-append.patch
22
23
24BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
25BuildRequires: xmlto
26# for chvt
27Requires: kbd
28#Requires: radeontool
29# for hd apm settings
30Requires: hdparm
31%ifarch %{ix86} x86_64
32Requires: vbetool
33%endif
34Conflicts: apmd < 3.2.2
35
36
37%description
38The pm-utils package contains utilities and scripts useful for tasks related
39to power management.
40
41%package devel
42Summary: Files for development using %{name}
43Summary(ja): Files for development using %{name}
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46# for /usr/share/pkgconfig
47Requires:       pkgconfig
48
49%description devel
50This package contains the pkg-config files for development
51when building programs that use %{name}.
52
53
54%prep
55%setup -q
56tar -xzf %{SOURCE1}
57%patch0 -p1
58
59%build
60%configure
61make
62
63
64%install
65rm -rf %{buildroot}
66make install DESTDIR=$RPM_BUILD_ROOT
67
68install -D -m 0600 /dev/null $RPM_BUILD_ROOT%{_localstatedir}/log/pm-suspend.log
69mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pm-utils/{locks,pm-suspend,pm-powersave}
70touch $RPM_BUILD_ROOT%{_localstatedir}/run/pm-utils/locks/{pm-suspend.lock,pm-powersave.lock}
71mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pm-utils/{pm-suspend,pm-powersave}/storage
72install -D -m 0755 %{SOURCE23} $RPM_BUILD_ROOT%{_sbindir}/pm-utils-bugreport-info.sh
73
74# Install tuxonice staff
75install -D -m 0755 %{SOURCE100} %{buildroot}%{_libdir}/pm-utils/sleep.d/00tuxonice
76install -D -m 0644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/tuxonice
77
78# Install quirks
79cp -r video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils
80
81# These break more than they helps, so drop them for now
82rm $RPM_BUILD_ROOT%{_libdir}/pm-utils/power.d/*
83
84# VINE: documents handled directly with %%doc directive in the %%files section
85rm -rf %{buildroot}%{_datadir}/doc/pm-utils
86
87%preun
88# Clean storage to prevent left-behind files. These files are dynamically
89# created in runtime (also with dynamic names), thus it is hard to track
90# them individually.
91rm -rf %{_localstatedir}/run/pm-utils/{pm-suspend,pm-powersave}/storage/*
92
93%clean
94rm -rf %{buildroot}
95
96
97%files
98%defattr(-,root,root,-)
99%doc AUTHORS COPYING ChangeLog NEWS README* TODO pm/HOWTO*
100%config(noreplace) %{_sysconfdir}/sysconfig/tuxonice
101%{_sysconfdir}/pm/
102%dir %{_libdir}/pm-utils/
103%{_libdir}/pm-utils/bin/
104%{_libdir}/pm-utils/defaults
105%{_libdir}/pm-utils/functions
106%{_libdir}/pm-utils/pm-functions
107%{_libdir}/pm-utils/module.d/*
108%{_libdir}/pm-utils/sleep.d/*
109%{_bindir}/on_ac_power
110%{_bindir}/pm-is-supported
111%{_sbindir}/pm-utils-bugreport-info.sh
112%{_sbindir}/pm-hibernate
113%{_sbindir}/pm-powersave
114%{_sbindir}/pm-suspend
115%{_sbindir}/pm-suspend-hybrid
116%{_mandir}/man1/*.1.gz
117%{_mandir}/man8/*.8.gz
118%{_localstatedir}/run/pm-utils/
119%{_libdir}/pm-utils/video-quirks
120
121
122# no logrotate needed, because only one run of pm-utils is stored
123# in the logfile
124%ghost %verify(not md5 size mtime) %{_localstatedir}/log/pm-suspend.log
125
126
127%files devel
128%defattr(-,root,root,-)
129%{_libdir}/pkgconfig/pm-utils.pc
130
131
132%changelog
133* Wed Mar 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.1-1
134- new upstream release
135
136* Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.6.1-2
137- rebuilt with rpm-4.8.1 for pkg-config
138
139* Sun Jan 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6.1-1
140- new upstream release
141
142* Sat May  9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.5-2
143- don't own /usr/share/doc/pm-utils: use %%doc directive to handle documents
144- use %%{buildroot} instead of $RPM_BUILD_ROOT
145
146* Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.5-1
147- new upstream release
148
149* Sat Apr 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-5
150- add 00tuxonice to setup image_size_limit and enable_escape
151- add /etc/sysconfig/tuxonice
152
153* Fri Apr 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-4
154- remove 00tuxonice
155
156* Thu Mar 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-1
157- new upstream release
158
159* Wed Oct 15 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2.1-3
160- add 00tuxonice to set tuxonice-userui on hibernate
161
162* Mon Oct 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2.1-2
163- add Requires: vbetool
164
165* Sun Oct 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2.1-1
166- initial build for Vine Linux
167
168* Thu Sep 11 2008 Richard Hughes <rhughes@redhat.com> - 1.2.0-1
169- Update to 1.2.0
170- The core hook-running machinery will now abort running hooks of one fails,
171  and the front-end scripts will return a failure error code if hook-running
172  was aborted.
173
174* Mon Jun 22 2008 Richard Hughes <rhughes@redhat.com> - 1.1.2.3-1
175- Update to 1.1.2.3
176
177* Fri Jun 20 2008 Till Maas <opensource@till.name> - 1.1.2.2-2
178- %%pre and %%post scriptlets should not be needed anymore, old
179  config files should be already moved in every supported release
180  and the selinux context for the logfile should be restored by
181  rpm
182- remove pcitulils BR, it was needed for vbetool, which is in a
183  separate package now
184- substitute %%{__rm} macros for uniform macro usage
185
186* Mon May 29 2008 Richard Hughes <rhughes@redhat.com> - 1.1.2.2-1
187- Update to 1.1.2.2
188
189* Mon May 28 2008 Richard Hughes <rhughes@redhat.com> - 1.1.2.1-2
190- Change BR from docbook-utils to xmlto
191
192* Mon May 28 2008 Richard Hughes <rhughes@redhat.com> - 1.1.2.1-1
193- Update to 1.1.2.1
194
195* Mon May 12 2008 Richard Hughes <rhughes@redhat.com> - 1.1.1-2
196- Add missing BR for docbook-utils
197
198* Mon May 12 2008 Richard Hughes <rhughes@redhat.com> - 1.1.1-1
199- Update to 1.1.1, and drop patches that no longer apply.
200
201* Wed Apr 30 2008 Richard Hughes <rhughes@redhat.com> - 1.1.0-9
202- Remove the usermode dep on the advice of Till Maas.
203
204* Wed Apr 30 2008 Richard Hughes <rhughes@redhat.com> - 1.1.0-8
205- Rip out all the consolehelper and PAM stuff - users are not meant to be
206  running these tools directly and it's a massive change from upstream.
207
208* Fri Apr 18 2008 Peter Jones <pjones@redhat.com> - 1.1.0-7
209- Default to "shutdown" for hibernate unless it's unavailable.
210
211* Tue Apr 15 2008 Jesse Keating <jkeating@redhat.com> - 1.1.0-6
212- Don't error on post restorecon call (which can fail if selinux is disabled)
213
214* Mon Apr 14 2008 Till Maas <opensource till name> - 1.1.0-5
215- remove double %%dir %%{_libdir}/pm-utils
216- update pm-utils-99hd-apm-restore to work with current pm-utils release
217  Red Hat Bugzilla: #442294
218- move config file for hd apm restore away from config.d, which is only used
219  for pm-utils internal config anymore
220- own /var/run/pm-utils/ and create storage/locks subdirs (may be
221  needed for selinux)
222- make sure an empty logfile is created after install (touch -a ...)
223- sort %%files
224- make Source0: an URL
225- remove Conflicts: bluez utils, all supported Fedora releases ship
226  already a newer version
227- remove unused BR: hal-devel, dbus-devel, pkgconfig, docbook-utils
228
229* Mon Apr  8 2008 Richard Hughes <rhughes@redhat.com> - 1.1.0-4
230- Fix build on 64 bit machines - harder.
231
232* Mon Apr  8 2008 Richard Hughes <rhughes@redhat.com> - 1.1.0-3
233- Fix build on 64 bit machines.
234
235* Mon Apr  8 2008 Richard Hughes <rhughes@redhat.com> - 1.1.0-2
236- Actually do the build.
237
238* Mon Apr  7 2008 Matthias Clasen <mclasen@redhat.com> - 1.1.0-1
239- Update to 1.1.0
240- Add devel subpackage for the pc file
241
242* Thu Apr 03 2008 Adam Jackson <ajax@redhat.com> 0.99.4-16
243- x86_64 is not a macro, don't %%ifarch on it.
244
245* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.99.4-15
246- Autorebuild for GCC 4.3
247
248* Fri Jan 11 2008 Till Maas <opensource till name> - 0.99.4-14
249- add pm-utils-bugreport-info.sh script to collect information for bugreports
250- require Hal (RH #428452)
251
252* Wed Jan 09 2008 Till Maas <opensource till name> - 0.99.4-13
253- update README to describe the current beheaviour of pm-utils
254
255* Tue Jan 08 2008 Till Maas <opensource till name> - 0.99.4-12
256- remove ExclusiveArch, because it contains all supported archs
257  (in case an arch schould be excluded, please use ExcludeArch)
258- improve readability of usermode setup
259- remove pm-restart pm-shutdown from usermode setup, because
260  there are no such binaries
261- list more files in %%files explicit to make it obvious when
262  there are changes in the distributed package
263- add .conf suffix to oldconfig files
264
265* Tue Jan 08 2008 Till Maas <opensource till name> - 0.99.4-11
266- make it possible to specify the hibernate mode (RH #375701)
267
268* Wed Jan 02 2008 Till Maas <opensource till name> - 0.99.4-10
269- enhance hd-apm-restore and add a config file
270- fix source-definition for hd-apm-restore
271- add hook suffix for hook script
272
273* Wed Jan 02 2008 Till Maas <opensource till name> - 0.99.4-9
274- restore hd apm level (RH #382061)
275- Add hdparm requires for new hook
276
277* Mon Dec 31 2007 Till Maas <opensource till name> - 0.99.4-8
278- Add documentation to %%doc
279
280* Sun Dec 30 2007 Till Maas <opensource till name> - 0.99.4-7
281- fix some bugs (RH #302401)
282
283* Tue Nov 27 2007 Dennis Gilmore <dennis@ausil.us> - 0.99.4-6
284- add sparc archs to ExclusiveArch list
285
286* Wed Oct 10 2007 Till Maas <opensource till name> - 0.99.4-5
287- Require vbetool only for x86 archs (RH #325741)
288- add missing BR for docbook-utils
289
290* Thu Sep 20 2007 Till Maas <opensource till name> - 0.99.4-4
291- fix manpage cut and paste mistake (RH #286201)
292
293* Thu Sep 20 2007 Till Maas <opensource till name> - 0.99.4-3
294- remove unused patch (vidhooks)
295- add patch to keep logfile (RH #237840 (f7), #238068 (devel)),
296  to keep selinux context
297- simplify spec
298- restore selinux context of logfile in %%post
299- use rpmmacros more often
300
301* Tue Sep 11 2007 Till Maas <opensource till name> - 0.99.4-2
302- Require vbetool not on ppc and ppc64
303
304* Mon Sep 10 2007 Peter Jones <pjones@redhat.com> - 0.99.4-1
305- Merge new upstream
306- remove pm/power.d/laptop-tools
307- add --quirk-reset-brightness (needed for the Fujitsu Lifebook S7110)
308
309* Sat Sep 08 2007 Till Maas <opensource till name> - 0.99.3-12
310- Adjust %%files to own /etc/pm/ and /usr/lib/pm-utils/ (#233906)
311- remove (C|CXX|F)FLAGS definitions, they are already in %%configure
312- remove Core in Summary tag
313- add URL for pm-utils
314- add %%{?arm} to ExclusiveArch (#245463)
315- remove vbetool and require it (it is a separate package now)
316- remove radeontool and require it (it is a separate package now)
317- Update License Tag
318- cleanup buildrequires
319- clear %%setup
320
321* Mon Aug 27 2007 Adam Jackson <ajax@redhat.com> 0.99.3-11
322- Install (not just build) vbetool and radeontool on x86_64 too
323- Explicitly list files under %%_sbindir, so they don't drop away again
324- Light spec cleanups
325
326* Thu Aug 16 2007 Phil Knirsch <pknirsch@redhat.com> - 0.99.3-10
327- License verification and update
328
329* Wed Jul 18 2007 Phil Knirsch <pknirsch@redhat.com> - 0.99.3-9
330- Fixed description to be distribution independant (#247366)
331
332* Thu Jun 07 2007 Peter Jones <pjones@redhat.com> - 0.99.3-8
333- Bump release and rebuild for newer buildsystem code
334
335* Tue Jun 05 2007 Phil Knirsch <pknirsch@redhat.com> - 0.99.3-7
336- Bump release and rebuild
337
338* Tue May 29 2007 Phil Knirsch <pknirsch@redhat.com> - 0.99.3-6
339- Fixed missing builds for vbetool and radeontool for some archs (#241469)
340- Fixed typo in functions where wrong variable was used (#241633)
341
342* Wed May 16 2007 Peter Jones <pjones@redhat.com> - 0.99.3-5
343- ... and create the directory the logfile goes in.
344
345* Wed May 16 2007 Peter Jones <pjones@redhat.com> - 0.99.3-4
346- Bump release to appease Koji.
347
348* Wed May 16 2007 Peter Jones <pjones@redhat.com> - 0.99.3-3
349- Create logfile in %%post and %%gost it.
350
351* Wed Apr 25 2007 Peter Jones <pjones@redhat.com> - 0.99.3-2
352- Get rid of bogus redirect on "vbetool post"
353- add zlib linkage for vbetool and radeontool
354
355* Mon Mar 26 2007 Peter Jones <pjones@redhat.com> - 0.99.3-1
356- update to 0.99.3
357- configure manually in the spec to avoid %%_lib as lib64
358
359* Tue Mar 13 2007 Peter Jones <pjones@redhat.com> - 0.99.2-1
360- update to 0.99.2
361
362* Fri Feb  2 2007 Peter Jones <pjones@redhat.com> - 0.99.1-1
363- Fix setsysfont hook to actually hit tty0, not the pty of the current task.
364
365* Tue Jan 30 2007 Jeremy Katz <katzj@redhat.com> - 0.19.1-6
366- build so that hooks run properly on resume; fix syntax error in
367  functions-intel (pjones)
368
369* Fri Jan 26 2007 Phil Knirsch <pknirsch@redhat.com> - 0.19.1-5
370- Fixed problem with changes in 10NetworkManager hook (#224556)
371
372* Wed Jan 24 2007 Phil Knirsch <pknirsch@redhat.com> - 0.19.1-4
373- Start/stop correct services in 10NetworkManager hook (#215253)
374- Fixed check for /sys/power/disk and /sys/power/state (#214407)
375- Added proper error messages in case /sys/power/disk or /sys/power/state are
376  missing (#215386)
377- Removed service calls and module load/unload for bluetooth hook (#213387)
378- Added hook file to restore the sysfont after resume (#215391)
379- Added the possibility to disable hibernate and suspend completely via the
380  config file (#216459)
381- Symlinked the config file to /etc/sysconfig/power-management (#216459)
382- Fixed pm-powersave permission check bug (#222819)
383- Small specfile cleanups
384
385* Sun Oct  1 2006 Peter Jones <pjones@redhat.com> - 0.19.1-3
386- Disable bluetooth suspend/reusme hook by default; the kernel modules seem
387  to support this correctly these days.
388
389* Thu Sep 28 2006 Peter Jones <pjones@redhat.com> - 0.19.1-2
390- Ignore emacs backup files in config directories (#185979)
391
392* Tue Aug  8 2006 Peter Jones <pjones@redhat.com> - 0.19.1-1
393- Hopefully fix Centrino ThinkPad suspend+resume
394- Hopefully fix Intel Mac Mini/MacBook suspend+resume
395
396* Mon Jul 31 2006 Jeremy Katz <katzj@redhat.com> - 0.19-3
397- doing the vbestate save/restore on intel video with the modesetting
398  intel xorg driver is broken.  so don't do it.
399
400* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.19-2
401- requier a newer version of D-Bus and rebuild
402
403* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.19-1.1
404- rebuild
405
406* Tue Jun 13 2006 Peter Jones <pjones@redhat.com> - 0.19-1
407- update from CVS
408- move pam and consolehelper stuff here.
409- move video hooks here since HAL isn't ready
410
411* Tue Apr 25 2006 Peter Jones <pjones@redhat.com> - 0.18-1
412- Make it work cross-distro
413
414* Mon Apr 17 2006 Peter Jones <pjones@redhat.com> - 0.17-1
415- add more helper functions
416- rework things that were forking an extra subshell
417- fix the suspend lock
418- work around bluetooth/usb suspend wackiness
419
420* Fri Mar 17 2006 Peter Jones <pjones@redhat.com> - 0.16-1
421- rework the difference between hibernate and suspend; get rid of PM_MODE
422- add 00clear script
423- move default_resume_kernel from "functions" to 01grub's hibernate section
424
425* Sat Mar 11 2006 Peter Jones <pjones@redhat.com> - 0.15-1
426- fix hibernate check in a way that doesn't break "sleep".
427
428* Fri Mar 10 2006 Peter Jones <pjones@redhat.com> - 0.14-1
429- fix hibernate check in /etc/pm/hooks/20video
430
431* Fri Mar 03 2006 Phil Knirsch <pknirsch@redhat.com> - 0.13-1
432- Revert last changes for ATI graphics chips as they seem to cause more
433  problems than they solved.
434
435* Wed Mar 01 2006 Phil Knirsch <pknirsch@redhat.com> - 0.12-1
436- Use vbetool post instead of vbetool dpms on for ATI cards.
437
438* Tue Feb 28 2006 Jeremy Katz <katzj@redhat.com>
439- allow building on all x86 arches (#183175)
440
441* Tue Feb 28 2006 Jeremy Katz <katzj@redhat.com> - 0.11-1
442- fix display on resume with nvidia graphics
443- add infrastructure to tell what pm-util is running; don't resume
444  video on return from hibernate as the BIOS has already re-initialized it
445
446* Fri Feb 24 2006 Phil Knirsch <pknirsch@redhat.com> - 0.10-1
447- Added missing pciutils-devel BuildRequires (#182566)
448- Fixed missing vbestata save/restore calls for video suspend/resume (#182167,
449  #169494)
450- Renamed hook scripts to allow local pre and post inserts (#179421)
451- Added support for blinking led lights on Thinkpad Laptops during suspend
452  (#179420)
453- Added pm-powersave script for powersaving via HAL (#169054)
454- Added symlinks for pm-shutdown and pm-restart (#165953)
455
456* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.09-1.2
457- bump again for double-long bug on ppc(64)
458
459* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.09-1.1
460- rebuilt for new gcc4.1 snapshot and glibc changes
461
462* Tue Jan 24 2006 Jeremy Katz <katzj@redhat.com> - 0.09-1
463- Remove button module on suspend
464- Set default kernel in grub to current one when hibernating
465  so that resume works
466
467* Thu Dec 22 2005 Peter Jones <pjones@redhat.com> - 0.08-1
468- Fix scripts for new pciutils
469
470* Fri Dec  9 2005 Dave Jones <davej@redhat.com>
471- Update to latest vbetool (0.5-1)
472  Now also built on x86-64 too.
473
474* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
475- rebuilt
476
477* Thu Dec 01 2005 John (J5) Palmieri <johnp@redhat.com> - 0.07-3
478- rebuild for the new dbus
479
480* Wed Nov 30 2005 Peter Jones <pjones@redhat.com> - 0.07-2
481- restart ntpd in the background
482- switch terminals early so we don't wake the screen back up
483
484* Fri Nov 18 2005 Bill Nottingham <notting@redhat.com> - 0.06-3
485- nix that, wait for the kernel to settle down
486
487* Wed Nov 16 2005 Bill Nottingham <notting@redhat.com> - 0.06-2
488- fix LRMI usage in vbetool
489
490* Thu Nov 10 2005 Peter Jones <pjones@redhat.com> - 0.06-1
491- kill acpi_video_cmd calls in functions-ati
492- fix lcd_on in functions-ati
493
494* Fri Sep 30 2005 Bill Nottingham <notting@redhat.com> - 0.05-1
495- check for presence of various tools/files before using them (#169560, #196562)
496
497* Fri Aug 12 2005 Jeremy Katz <katzj@redhat.com> - 0.04-1
498- add pm-hibernate
499
500* Tue Jul 05 2005 Bill Nottingham <notting@redhat.com> - 0.03-1
501- fix path to video functions in video hook
502
503* Mon Jul 04 2005 Bill Nottingham <notting@redhat.com> - 0.02-1
504- add a pm-suspend (#155613)
505
506* Wed Apr 13 2005 Bill Nottingham <notting@redhat.com> - 0.01-1
507- initial version - package up vbetool, radeontool, new on_ac_power
Note: See TracBrowser for help on using the repository browser.