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