]>
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 |
b9feb3bc | 6 | Release: 6 |
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 |
e6143fea AM |
18 | Requires: hdparm |
19 | Requires: kbd | |
596482d9 | 20 | Suggests: radeontool |
82722d4b MB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | The pm-utils package contains utilities and scripts useful for tasks | |
25 | related to power management. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Pakiet pm-utils zawiera narzędzia i skrypty pomocne przy zadaniach | |
29 | związanych z zarządzaniem energią. | |
30 | ||
31 | %prep | |
da4205c8 | 32 | %setup -q -a1 |
3a8dad2a | 33 | %patch0 -p1 |
82722d4b MB |
34 | |
35 | %build | |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__autoheader} | |
39 | %{__automake} | |
40 | %configure | |
41 | %{__make} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
240c831c | 45 | install -d $RPM_BUILD_ROOT%{_var}/log |
82722d4b MB |
46 | |
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
da4205c8 AM |
50 | # Install quirks |
51 | cp -a video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils | |
52 | ||
53 | touch $RPM_BUILD_ROOT%{_var}/log/pm-{powersave,suspend}.log | |
240c831c | 54 | |
a50d32d5 MB |
55 | # included via %doc |
56 | rm -rf $RPM_BUILD_ROOT%{_docdir}/pm-utils | |
57 | ||
82722d4b MB |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
a50d32d5 | 63 | %doc AUTHORS ChangeLog NEWS README* TODO pm/HOWTO* |
82722d4b MB |
64 | %dir %{_sysconfdir}/pm |
65 | %dir %{_sysconfdir}/pm/config.d | |
66 | %dir %{_sysconfdir}/pm/power.d | |
67 | %dir %{_sysconfdir}/pm/sleep.d | |
68 | %attr(755,root,root) %{_bindir}/on_ac_power | |
69 | %attr(755,root,root) %{_bindir}/pm-is-supported | |
70 | %dir %{_libdir}/pm-utils | |
71 | %dir %{_libdir}/pm-utils/bin | |
72 | %attr(755,root,root) %{_libdir}/pm-utils/bin/pm-action | |
73 | %attr(755,root,root) %{_libdir}/pm-utils/bin/pm-pmu | |
74 | %attr(755,root,root) %{_libdir}/pm-utils/bin/pm-reset-swap | |
5c9ca062 | 75 | %attr(755,root,root) %{_libdir}/pm-utils/bin/service |
77e8ed0d MB |
76 | %dir %{_libdir}/pm-utils/module.d |
77 | %attr(755,root,root) %{_libdir}/pm-utils/module.d/kernel | |
78 | %attr(755,root,root) %{_libdir}/pm-utils/module.d/tuxonice | |
79 | %attr(755,root,root) %{_libdir}/pm-utils/module.d/uswsusp | |
82722d4b | 80 | %dir %{_libdir}/pm-utils/power.d |
5c9ca062 | 81 | %attr(755,root,root) %{_libdir}/pm-utils/power.d/* |
82722d4b MB |
82 | %dir %{_libdir}/pm-utils/sleep.d |
83 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/* | |
84 | %{_libdir}/pm-utils/defaults | |
85 | %{_libdir}/pm-utils/functions | |
77e8ed0d | 86 | %{_libdir}/pm-utils/pm-functions |
da4205c8 | 87 | %{_libdir}/pm-utils/video-quirks |
82722d4b MB |
88 | %attr(755,root,root) %{_sbindir}/pm-hibernate |
89 | %attr(755,root,root) %{_sbindir}/pm-powersave | |
90 | %attr(755,root,root) %{_sbindir}/pm-suspend | |
91 | %attr(755,root,root) %{_sbindir}/pm-suspend-hybrid | |
240c831c | 92 | %{_mandir}/man1/*.1* |
0254c35c | 93 | %{_mandir}/man8/*.8* |
77e8ed0d | 94 | %{_pkgconfigdir}/pm-utils.pc |
e2876590 | 95 | %ghost %{_var}/log/pm-powersave.log |
240c831c | 96 | %ghost %{_var}/log/pm-suspend.log |