]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
de20d5a140f2322ce29e1df1dfbd71481b6ba4c4
[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.26.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.26/%{name}-%{version}.tar.bz2
9 # Source0-md5:  a3d8815e143323083870f75e71fa1098
10 Patch0:         %{name}-desktop.patch
11 URL:            http://www.gnome.org/projects/gnome-power-manager/
12 BuildRequires:  DeviceKit-devel
13 BuildRequires:  GConf2-devel >= 2.26.0
14 BuildRequires:  PolicyKit-gnome-devel >= 0.8
15 BuildRequires:  autoconf >= 2.60
16 BuildRequires:  automake
17 BuildRequires:  dbus-glib-devel >= 0.74
18 BuildRequires:  docbook-dtd41-sgml
19 BuildRequires:  docbook-utils
20 BuildRequires:  gettext-devel
21 BuildRequires:  gnome-common >= 2.24.0
22 BuildRequires:  gnome-doc-utils >= 0.14.0
23 BuildRequires:  gnome-keyring-devel >= 2.26.0
24 BuildRequires:  gnome-panel-devel >= 2.26.0
25 BuildRequires:  gtk+2-devel >= 2:2.16.0
26 BuildRequires:  hal-devel >= 0.5.10
27 BuildRequires:  intltool >= 0.40.0
28 BuildRequires:  libcanberra-gtk-devel >= 0.10
29 BuildRequires:  libglade2-devel >= 1:2.6.2
30 BuildRequires:  libnotify-devel >= 0.4.4
31 BuildRequires:  libtool
32 BuildRequires:  libwnck-devel >= 2.26.0
33 BuildRequires:  pkgconfig
34 BuildRequires:  rpmbuild(find_lang) >= 1.23
35 BuildRequires:  rpmbuild(macros) >= 1.311
36 BuildRequires:  scrollkeeper
37 BuildRequires:  libunique-devel >= 0.9.4
38 Requires(post,postun):  gtk+2
39 Requires(post,postun):  scrollkeeper
40 Requires(post,preun):   GConf2
41 Requires:       DeviceKit-power >= 003
42 Requires:       gnome-session >= 2.22.0
43 Requires:       hicolor-icon-theme
44 Requires:       notification-daemon >= 0.3.5
45 Obsoletes:      gnome-power
46 # sr@Latn vs. sr@latin
47 Conflicts:      glibc-misc < 6:2.7
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 Uses of GNOME Power Manager infrastructure
52 - A dialogue that warns the user when on UPS power, that automatically
53   begins a kind shutdown when the power gets critically low.
54 - An icon that allows a user to dim the LCD screen with a slider, and
55   does do automatically when going from mains to battery power on a
56   laptop.
57 - An icon, that when an additional battery is inserted, updates it's
58   display to show two batteries and recalculates how much time
59   remaining. Would work for wireless mouse and keyboards, UPS's and
60   PDA's.
61 - A daemon that does a clean shutdown when the battery is critically
62   low or does a soft-suspend when you close the lid on your laptop (or
63   press the "suspend" button on your PC).
64 - Tell Totem to use a codec that does low quality processing to
65   conserve battery power.
66 - Postpone indexing of databases (e.g. up2date) or other heavy
67   operations until on mains power.
68 - Presentation programs / movie players don't want the screensaver
69   starting or screen blanking.
70
71 %description -l pl.UTF-8
72 Zastosowania infrastruktury zarządcy energii GNOME:
73 - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
74   automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
75   zasilanie jest w stanie krytycznym
76 - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
77   użyciu suwaka i robi to automatycznie przy przełączaniu z głównego
78   źródła zasilania na baterie w laptopie
79 - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
80   aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
81   powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
82 - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w
83   stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend)
84   przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku
85   "suspend")
86 - informowanie Totema, aby używał kodeka o niższej jakości w celu
87   zaoszczędzenia energii baterii
88 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
89   ciężkich operacji do czasu podłączenia głównego źródła zasilania
90 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
91   działania programów prezentacyjnych i odtwarzaczy filmów
92
93 %prep
94 %setup -q
95 %patch0 -p1
96
97 %build
98 %{__libtoolize}
99 %{__intltoolize}
100 %{__aclocal}
101 %{__automake}
102 %{__autoheader}
103 %{__autoconf}
104 %configure \
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
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 %{_sysconfdir}/xdg/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.063477 seconds and 2 git commands to generate.