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