]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
12f0208961931e8e3bcd395d4b0e6d9d641b191b
[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.3
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:  3d51f3f44aa5672c5d50bff8691ca493
10 Patch0:         %{name}-desktop.patch
11 URL:            http://www.gnome.org/projects/gnome-power-manager/
12 BuildRequires:  GConf2-devel >= 2.24.0
13 BuildRequires:  PolicyKit-gnome-devel
14 BuildRequires:  autoconf >= 2.52
15 BuildRequires:  automake
16 BuildRequires:  dbus-glib-devel >= 0.74
17 BuildRequires:  docbook-dtd41-sgml
18 BuildRequires:  docbook-utils
19 BuildRequires:  gettext-devel
20 BuildRequires:  gnome-common >= 2.24.0
21 BuildRequires:  gnome-doc-utils >= 0.14.0
22 BuildRequires:  gnome-keyring-devel >= 2.24.0
23 BuildRequires:  gnome-panel-devel >= 2.24.0
24 BuildRequires:  gstreamer-devel >= 0.10.14
25 BuildRequires:  gtk+2-devel >= 1:2.12.8
26 BuildRequires:  hal-devel >= 0.5.10
27 BuildRequires:  intltool >= 0.40.0
28 BuildRequires:  libglade2-devel >= 1:2.6.2
29 BuildRequires:  libgnomeui-devel >= 2.24.0
30 BuildRequires:  libnotify-devel >= 0.4.4
31 BuildRequires:  libtool
32 BuildRequires:  libwnck-devel >= 2.24.0
33 BuildRequires:  pkgconfig
34 BuildRequires:  rpmbuild(find_lang) >= 1.23
35 BuildRequires:  rpmbuild(macros) >= 1.311
36 BuildRequires:  scrollkeeper
37 BuildRequires:  unique-devel >= 0.9.4
38 Requires(post,postun):  gtk+2
39 Requires(post,postun):  hicolor-icon-theme
40 Requires(post,postun):  scrollkeeper
41 Requires(post,preun):   GConf2
42 Requires:       gnome-session >= 2.22.0
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 %patch0 -p1
95
96 %build
97 %{__libtoolize}
98 %{__intltoolize}
99 %{__aclocal}
100 %{__automake}
101 %{__autoheader}
102 %{__autoconf}
103 %configure \
104         --enable-xevents \
105         --disable-schemas-install \
106         --disable-scrollkeeper
107 %{__make}
108
109 %install
110 rm -rf $RPM_BUILD_ROOT
111
112 %{__make} install \
113         DESTDIR=$RPM_BUILD_ROOT \
114         autostartdir=%{_datadir}/gnome/autostart
115
116 %find_lang %{name} --with-gnome --with-omf --all-name
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post
122 %gconf_schema_install gnome-power-manager.schemas
123 %scrollkeeper_update_post
124 %update_icon_cache hicolor
125
126 %preun
127 %gconf_schema_uninstall gnome-power-manager.schemas
128
129 %postun
130 %scrollkeeper_update_postun
131 %update_icon_cache hicolor
132
133 %files -f %{name}.lang
134 %defattr(644,root,root,755)
135 %doc AUTHORS ChangeLog NEWS README TODO
136 %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
137 %attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
138 %attr(755,root,root) %{_bindir}/gnome-power-manager
139 %attr(755,root,root) %{_bindir}/gnome-power-preferences
140 %attr(755,root,root) %{_bindir}/gnome-power-statistics
141 %attr(755,root,root) %{_libdir}/gnome-brightness-applet
142 %attr(755,root,root) %{_libdir}/gnome-inhibit-applet
143 %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
144 %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
145 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
146 %{_datadir}/dbus-1/services/gnome-power-manager.service
147 %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
148 %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
149 %{_mandir}/man1/*.1*
150 %{_datadir}/gnome-power-manager
151 %{_desktopdir}/gnome-power-preferences.desktop
152 %{_desktopdir}/gnome-power-statistics.desktop
153 %{_iconsdir}/hicolor/*/*/*
154 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.084367 seconds and 3 git commands to generate.