]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
- merge from DEVEL
[packages/gnome-power-manager.git] / gnome-power-manager.spec
1 Summary:        GNOME Power Manager
2 Summary(pl.UTF-8):      Zarządca energii dla GNOME
3 Name:           gnome-power-manager
4 Version:        2.24.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.24/%{name}-%{version}.tar.bz2
9 # Source0-md5:  074d67b0c229ba0f792bcac6dd775d11
10 Patch0:         %{name}-desktop.patch
11 URL:            http://www.gnome.org/projects/gnome-power-manager/
12 BuildRequires:  GConf2-devel >= 2.22.0
13 BuildRequires:  autoconf >= 2.52
14 BuildRequires:  automake
15 BuildRequires:  dbus-glib-devel >= 0.74
16 BuildRequires:  docbook-dtd41-sgml
17 BuildRequires:  docbook-utils
18 BuildRequires:  gettext-devel
19 BuildRequires:  gnome-common >= 2.20.0
20 BuildRequires:  gnome-doc-utils >= 0.12.1
21 BuildRequires:  gnome-keyring-devel >= 2.22.0
22 BuildRequires:  gnome-panel-devel >= 2.22.0
23 BuildRequires:  gtk+2-devel >= 1:2.12.8
24 BuildRequires:  gstreamer-devel >= 0.10.14
25 BuildRequires:  hal-devel >= 0.5.10
26 BuildRequires:  intltool >= 0.37.0
27 BuildRequires:  libglade2-devel >= 1:2.6.2
28 BuildRequires:  libgnomeui-devel >= 2.22.0
29 BuildRequires:  libnotify-devel >= 0.4.3
30 BuildRequires:  libtool
31 BuildRequires:  libwnck-devel >= 2.22.0
32 BuildRequires:  pkgconfig
33 BuildRequires:  rpmbuild(find_lang) >= 1.23
34 BuildRequires:  rpmbuild(macros) >= 1.311
35 BuildRequires:  scrollkeeper
36 BuildRequires:  sed >= 4.0
37 Requires(post,preun):   GConf2
38 Requires(post,postun):  gtk+2
39 Requires(post,postun):  hicolor-icon-theme
40 Requires(post,postun):  scrollkeeper
41 Requires:       gnome-session >= 2.22.0
42 Requires:       notification-daemon >= 0.3.5
43 Obsoletes:      gnome-power
44 # sr@Latn vs. sr@latin
45 Conflicts:      glibc-misc < 6:2.7
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 Uses of GNOME Power Manager infrastructure
50 - A dialogue that warns the user when on UPS power, that automatically
51   begins a kind shutdown when the power gets critically low.
52 - An icon that allows a user to dim the LCD screen with a slider, and
53   does do automatically when going from mains to battery power on a
54   laptop.
55 - An icon, that when an additional battery is inserted, updates it's
56   display to show two batteries and recalculates how much time
57   remaining. Would work for wireless mouse and keyboards, UPS's and
58   PDA's.
59 - A daemon that does a clean shutdown when the battery is critically
60   low or does a soft-suspend when you close the lid on your laptop (or
61   press the "suspend" button on your PC).
62 - Tell Totem to use a codec that does low quality processing to
63   conserve battery power.
64 - Postpone indexing of databases (e.g. up2date) or other heavy
65   operations until on mains power.
66 - Presentation programs / movie players don't want the screensaver
67   starting or screen blanking.
68
69 %description -l pl.UTF-8
70 Zastosowania infrastruktury zarządcy energii GNOME:
71 - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
72   automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
73   zasilanie jest w stanie krytycznym
74 - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
75   użyciu suwaka i robi to automatycznie przy przełączaniu z głównego
76   źródła zasilania na baterie w laptopie
77 - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
78   aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
79   powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
80 - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w
81   stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend)
82   przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku
83   "suspend")
84 - informowanie Totema, aby używał kodeka o niższej jakości w celu
85   zaoszczędzenia energii baterii
86 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
87   ciężkich operacji do czasu podłączenia głównego źródła zasilania
88 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
89   działania programów prezentacyjnych i odtwarzaczy filmów
90
91 %prep
92 %setup -q
93 %patch0 -p1
94
95 %build
96 %{__libtoolize}
97 %{__intltoolize}
98 %{__aclocal}
99 %{__automake}
100 %{__autoheader}
101 %{__autoconf}
102 %configure \
103         --enable-xevents \
104         --disable-schemas-install \
105         --disable-scrollkeeper
106 %{__make}
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110
111 %{__make} install \
112         DESTDIR=$RPM_BUILD_ROOT \
113         autostartdir=%{_datadir}/gnome/autostart
114
115 %find_lang %{name} --with-gnome --with-omf --all-name
116
117 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post
121 %gconf_schema_install gnome-power-manager.schemas
122 %scrollkeeper_update_post
123 %update_icon_cache hicolor
124
125 %preun
126 %gconf_schema_uninstall gnome-power-manager.schemas
127
128 %postun
129 %scrollkeeper_update_postun
130 %update_icon_cache hicolor
131
132 %files -f %{name}.lang
133 %defattr(644,root,root,755)
134 %doc AUTHORS ChangeLog NEWS README TODO
135 %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
136 %attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
137 %attr(755,root,root) %{_bindir}/gnome-power-manager
138 %attr(755,root,root) %{_bindir}/gnome-power-preferences
139 %attr(755,root,root) %{_bindir}/gnome-power-statistics
140 %attr(755,root,root) %{_libdir}/gnome-brightness-applet
141 %attr(755,root,root) %{_libdir}/gnome-inhibit-applet
142 %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
143 %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
144 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
145 %{_datadir}/dbus-1/services/gnome-power-manager.service
146 %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
147 %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
148 %{_mandir}/man1/*.1*
149 %{_datadir}/gnome-power-manager
150 %{_desktopdir}/gnome-power-preferences.desktop
151 %{_desktopdir}/gnome-power-statistics.desktop
152 %{_iconsdir}/hicolor/*/*/*
153 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.061402 seconds and 4 git commands to generate.