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