]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
e14ba2b9a7ae6e57359471d54550a89e8a7b82ea
[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.2
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:  76c00e82ba3ab1cd748dd981dc7af2eb
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-dtd43-xml
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.26.0
23 BuildRequires:  gnome-panel-devel >= 2.26.0
24 BuildRequires:  gtk+2-devel >= 2:2.18.0
25 BuildRequires:  hal-devel >= 0.5.10
26 BuildRequires:  intltool >= 0.40.0
27 BuildRequires:  libcanberra-gtk-devel >= 0.10
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:       dbus(org.freedesktop.Notifications)
42 Requires:       gnome-session >= 2.22.0
43 Requires:       hicolor-icon-theme
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) przy
83   zamykaniu pokrywy laptopa (albo naciśnięciu przycisku "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
94 %build
95 %{__libtoolize}
96 %{__intltoolize}
97 %{__aclocal}
98 %{__automake}
99 %{__autoheader}
100 %{__autoconf}
101 %configure \
102         --disable-schemas-install \
103         --enable-policykit \
104         --disable-scrollkeeper
105 %{__make}
106
107 %install
108 rm -rf $RPM_BUILD_ROOT
109
110 %{__make} install \
111         DESTDIR=$RPM_BUILD_ROOT
112
113 %find_lang %{name} --with-gnome --with-omf --all-name
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post
119 %gconf_schema_install gnome-power-manager.schemas
120 %scrollkeeper_update_post
121 %update_icon_cache hicolor
122
123 %preun
124 %gconf_schema_uninstall gnome-power-manager.schemas
125
126 %postun
127 %scrollkeeper_update_postun
128 %update_icon_cache hicolor
129
130 %files -f %{name}.lang
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog NEWS README TODO
133 %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
134 %attr(755,root,root) %{_bindir}/gnome-power-manager
135 %attr(755,root,root) %{_bindir}/gnome-power-preferences
136 %attr(755,root,root) %{_bindir}/gnome-power-statistics
137 %attr(755,root,root) %{_libdir}/gnome-brightness-applet
138 %attr(755,root,root) %{_libdir}/gnome-inhibit-applet
139 %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
140 %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
141 %{_sysconfdir}/xdg/autostart/gnome-power-manager.desktop
142 %{_datadir}/dbus-1/services/gnome-power-manager.service
143 %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
144 %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
145 %{_mandir}/man1/*.1*
146 %{_datadir}/gnome-power-manager
147 %{_desktopdir}/gnome-power-preferences.desktop
148 %{_desktopdir}/gnome-power-statistics.desktop
149 %{_iconsdir}/hicolor/*/*/*
150 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.030799 seconds and 2 git commands to generate.