]>
Commit | Line | Data |
---|---|---|
da4205c8 | 1 | %define quirkver 20100619 |
82722d4b MB |
2 | Summary: Power management utilities and scripts |
3 | Summary(pl.UTF-8): Narzędzia i skrypty do zarządzania energią | |
4 | Name: pm-utils | |
5c9ca062 | 5 | Version: 1.4.1 |
1c7cb96d | 6 | Release: 7 |
82722d4b MB |
7 | License: GPL v2 |
8 | Group: Applications/System | |
77e8ed0d | 9 | Source0: http://pm-utils.freedesktop.org/releases/%{name}-%{version}.tar.gz |
5c9ca062 | 10 | # Source0-md5: 1742a556089c36c3a89eb1b957da5a60 |
da4205c8 AM |
11 | Source1: http://pm-utils.freedesktop.org/releases/pm-quirks-%{quirkver}.tar.gz |
12 | # Source1-md5: 3b6ee39056b9ece0cd5e073a4c272b05 | |
3a8dad2a | 13 | Patch0: bashism.patch |
82722d4b MB |
14 | URL: http://pm-utils.freedesktop.org/ |
15 | BuildRequires: autoconf >= 2.52 | |
16 | BuildRequires: automake | |
fc056f1a | 17 | BuildRequires: xmlto |
15c2b955 ER |
18 | # power.d/readahead |
19 | Requires: blockdev | |
20 | # power.d/disable_wol | |
21 | Requires: ethtool | |
22 | # power.d/harddrive | |
e6143fea | 23 | Requires: hdparm |
15c2b955 | 24 | # video and tuxonice |
e6143fea | 25 | Requires: kbd |
15c2b955 ER |
26 | # power.d/journal-commit and readahead |
27 | Requires: mount | |
28 | # sleep.d/90clock | |
29 | Requires: util-linux | |
30 | # sleep.d/55NetworkManager | |
31 | Suggests: dbus | |
32 | # sleep.d/99video | |
596482d9 | 33 | Suggests: radeontool |
15c2b955 | 34 | # sleep.d/99video |
0bf780e3 | 35 | Suggests: vbetool |
15c2b955 ER |
36 | # power.d/wireless |
37 | Suggests: wireless-tools | |
82722d4b MB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | The pm-utils package contains utilities and scripts useful for tasks | |
42 | related to power management. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Pakiet pm-utils zawiera narzędzia i skrypty pomocne przy zadaniach | |
46 | związanych z zarządzaniem energią. | |
47 | ||
48 | %prep | |
da4205c8 | 49 | %setup -q -a1 |
3a8dad2a | 50 | %patch0 -p1 |
82722d4b MB |
51 | |
52 | %build | |
53 | %{__aclocal} | |
54 | %{__autoconf} | |
55 | %{__autoheader} | |
56 | %{__automake} | |
57 | %configure | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
240c831c | 62 | install -d $RPM_BUILD_ROOT%{_var}/log |
82722d4b MB |
63 | |
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
da4205c8 AM |
67 | # Install quirks |
68 | cp -a video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils | |
69 | ||
70 | touch $RPM_BUILD_ROOT%{_var}/log/pm-{powersave,suspend}.log | |
240c831c | 71 | |
a50d32d5 MB |
72 | # included via %doc |
73 | rm -rf $RPM_BUILD_ROOT%{_docdir}/pm-utils | |
74 | ||
82722d4b MB |
75 | %clean |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
a50d32d5 | 80 | %doc AUTHORS ChangeLog NEWS README* TODO pm/HOWTO* |
82722d4b MB |
81 | %dir %{_sysconfdir}/pm |
82 | %dir %{_sysconfdir}/pm/config.d | |
83 | %dir %{_sysconfdir}/pm/power.d | |
84 | %dir %{_sysconfdir}/pm/sleep.d | |
85 | %attr(755,root,root) %{_bindir}/on_ac_power | |
86 | %attr(755,root,root) %{_bindir}/pm-is-supported | |
87 | %dir %{_libdir}/pm-utils | |
88 | %dir %{_libdir}/pm-utils/bin | |
89 | %attr(755,root,root) %{_libdir}/pm-utils/bin/pm-action | |
90 | %attr(755,root,root) %{_libdir}/pm-utils/bin/pm-pmu | |
91 | %attr(755,root,root) %{_libdir}/pm-utils/bin/pm-reset-swap | |
5c9ca062 | 92 | %attr(755,root,root) %{_libdir}/pm-utils/bin/service |
77e8ed0d MB |
93 | %dir %{_libdir}/pm-utils/module.d |
94 | %attr(755,root,root) %{_libdir}/pm-utils/module.d/kernel | |
95 | %attr(755,root,root) %{_libdir}/pm-utils/module.d/tuxonice | |
96 | %attr(755,root,root) %{_libdir}/pm-utils/module.d/uswsusp | |
82722d4b | 97 | %dir %{_libdir}/pm-utils/power.d |
5c9ca062 | 98 | %attr(755,root,root) %{_libdir}/pm-utils/power.d/* |
82722d4b MB |
99 | %dir %{_libdir}/pm-utils/sleep.d |
100 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/* | |
101 | %{_libdir}/pm-utils/defaults | |
102 | %{_libdir}/pm-utils/functions | |
77e8ed0d | 103 | %{_libdir}/pm-utils/pm-functions |
da4205c8 | 104 | %{_libdir}/pm-utils/video-quirks |
82722d4b MB |
105 | %attr(755,root,root) %{_sbindir}/pm-hibernate |
106 | %attr(755,root,root) %{_sbindir}/pm-powersave | |
107 | %attr(755,root,root) %{_sbindir}/pm-suspend | |
108 | %attr(755,root,root) %{_sbindir}/pm-suspend-hybrid | |
240c831c | 109 | %{_mandir}/man1/*.1* |
0254c35c | 110 | %{_mandir}/man8/*.8* |
77e8ed0d | 111 | %{_pkgconfigdir}/pm-utils.pc |
e2876590 | 112 | %ghost %{_var}/log/pm-powersave.log |
240c831c | 113 | %ghost %{_var}/log/pm-suspend.log |