]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
- up to 0.2.6
[packages/gnome-power-manager.git] / gnome-power-manager.spec
1 #
2 # TODO:
3 # - provide a PLD package for libnotify for nice information popups
4 #
5 Summary:        GNOME Power Manager
6 Summary(pl):    Zarz±dca energii dla GNOME
7 Name:           gnome-power-manager
8 Version:        0.2.6
9 Release:        0.1
10 License:        GPL v2
11 Group:          X11/Applications
12 Source0:        http://dl.sourceforge.net/gnome-power/%{name}-%{version}.tar.gz
13 # Source0-md5:  ac4aa565a8db05346e4e58c7dd595fbb
14 Patch0:         %{name}-desktop.patch
15 URL:            http://gnome-power.sourceforge.net/
16 BuildRequires:  autoconf >= 2.52
17 BuildRequires:  automake
18 BuildRequires:  dbus-devel >= 0.35.2
19 BuildRequires:  dbus-glib-devel >= 0.35.2
20 BuildRequires:  docbook-dtd41-sgml
21 BuildRequires:  docbook-utils
22 BuildRequires:  glib2-devel
23 BuildRequires:  hal-devel >= 0.5.4
24 BuildRequires:  libgnomeui-devel >= 2.10.0
25 BuildRequires:  libtool
26 BuildRequires:  libwnck-devel >= 2.10.0
27 BuildRequires:  pkgconfig
28 BuildRequires:  rpmbuild(macros) >= 1.197
29 Obsoletes:              gnome-power
30 Requires(post,preun):   GConf2
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Uses of GNOME Power Manager infrastructure
35 - A dialogue that warns the user when on UPS power, that automatically
36   begins a kind shutdown when the power gets critically low.
37 - An icon that allows a user to dim the LCD screen with a slider, and
38   does do automatically when going from mains to battery power on a
39   laptop.
40 - An icon, that when an additional battery is inserted, updates it's
41   display to show two batteries and recalculates how much time
42   remaining. Would work for wireless mouse and keyboards, UPS's and
43   PDA's.
44 - A daemon that does a clean shutdown when the battery is critically
45   low or does a soft-suspend when you close the lid on your laptop (or
46   press the "suspend" button on your PC).
47 - Tell Totem to use a codec that does low quality processing to
48   conserve battery power.
49 - Postpone indexing of databases (e.g. up2date) or other heavy
50   operations until on mains power.
51 - Presentation programs / movie players don't want the screensaver
52   starting or screen blanking.
53
54 %description -l pl
55 Zastosowania infrastruktury zarz±dcy energii GNOME:
56 - okno dialogowe ostrzegaj±ce u¿ytkownika o zasilaniu z UPS-a,
57   automatycznie rozpoczynaj±ce uprzejme zamykanie systemu, kiedy
58   zasilanie jest w stanie krytycznym
59 - ikona umo¿liwiaj±ca u¿ytkownikowi przyciemnienie ekranu LCD przy
60   u¿yciu suwaka i robi to automatycznie przy prze³±czaniu z g³ównego
61   ¼ród³a zasilania na baterie w laptopie
62 - ikona, która po do³o¿eniu dodatkowej baterii uaktualnia wska¼nik,
63   aby pokazywa³ dwie baterie i przelicza ilo¶æ pozosta³ego czasu;
64   powinna dzia³aæ dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
65 - demon wykonuj±cy czyste zamkniêcie systemu kiedy bateria jest w
66   stanie krytycznym i wykonuj±cy zamro¿enie systemu (soft-suspend)
67   przy zamykaniu pokrywy laptopa (albo naci¶niêciu przycisku
68   "suspend")
69 - informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
70   zaoszczêdzenia energii baterii
71 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
72   ciê¿kich operacji do czasu pod³±czenia g³ównego ¼ród³a zasilania
73 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
74   dzia³ania programów prezentacyjnych i odtwarzaczy filmów
75
76 %prep
77 %setup -q
78 %patch0 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoheader}
84 %{__automake}
85 %{__autoconf}
86 %configure
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %find_lang %{name} --all-name
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post
101 %gconf_schema_install gnome-power-manager.schemas
102
103 %preun
104 %gconf_schema_uninstall gnome-power-manager.schemas
105
106 %files -f %{name}.lang
107 %defattr(644,root,root,755)
108 %doc AUTHORS ChangeLog NEWS README TODO
109 %attr(755,root,root) %{_bindir}/*
110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
111 %{_datadir}/dbus-1/services/*.service
112 %{_mandir}/man1/*
113 %{_sysconfdir}/gconf/schemas/*.schemas
114 %{_datadir}/%{name}
115 %{_desktopdir}/*
This page took 0.074637 seconds and 4 git commands to generate.