]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
88a7f2064fba59d1bafa458255593fe8b6206f00
[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.22.1
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.22/%{name}-%{version}.tar.bz2
9 # Source0-md5:  bfb10f96771dd161ff16171f78a7dc21
10 Patch0:         %{name}-desktop.patch
11 Patch1:         %{name}-popt.patch
12 URL:            http://www.gnome.org/projects/gnome-power-manager/
13 BuildRequires:  GConf2-devel >= 2.22.0
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.20.0
21 BuildRequires:  gnome-doc-utils >= 0.12.1
22 BuildRequires:  gnome-keyring-devel >= 2.22.0
23 BuildRequires:  gnome-panel-devel >= 2.22.0
24 BuildRequires:  gtk+2-devel >= 1:2.12.8
25 BuildRequires:  gstreamer-devel >= 0.10.14
26 BuildRequires:  hal-devel >= 0.5.10
27 BuildRequires:  intltool >= 0.37.0
28 BuildRequires:  libglade2-devel >= 1:2.6.2
29 BuildRequires:  libgnomeui-devel >= 2.22.0
30 BuildRequires:  libnotify-devel >= 0.4.3
31 BuildRequires:  libtool
32 BuildRequires:  libwnck-devel >= 2.22.0
33 BuildRequires:  pkgconfig
34 BuildRequires:  rpmbuild(find_lang) >= 1.23
35 BuildRequires:  rpmbuild(macros) >= 1.311
36 BuildRequires:  scrollkeeper
37 BuildRequires:  sed >= 4.0
38 Requires(post,preun):   GConf2
39 Requires(post,postun):  gtk+2
40 Requires(post,postun):  hicolor-icon-theme
41 Requires(post,postun):  scrollkeeper
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 %patch1 -p1
96
97 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
98 mv -f po/sr@{Latn,latin}.po
99
100 %build
101 %{__libtoolize}
102 %{__intltoolize}
103 %{__aclocal}
104 %{__automake}
105 %{__autoheader}
106 %{__autoconf}
107 %configure \
108         --enable-xevents \
109         --disable-schemas-install \
110         --disable-scrollkeeper
111 %{__make}
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT \
118         autostartdir=%{_datadir}/gnome/autostart
119
120 %find_lang %{name} --with-gnome --with-omf --all-name
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %post
126 %gconf_schema_install gnome-power-manager.schemas
127 %scrollkeeper_update_post
128 %update_icon_cache hicolor
129
130 %preun
131 %gconf_schema_uninstall gnome-power-manager.schemas
132
133 %postun
134 %scrollkeeper_update_postun
135 %update_icon_cache hicolor
136
137 %files -f %{name}.lang
138 %defattr(644,root,root,755)
139 %doc AUTHORS ChangeLog NEWS README TODO
140 %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
141 %attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
142 %attr(755,root,root) %{_bindir}/gnome-power-manager
143 %attr(755,root,root) %{_bindir}/gnome-power-preferences
144 %attr(755,root,root) %{_bindir}/gnome-power-statistics
145 %attr(755,root,root) %{_libdir}/gnome-brightness-applet
146 %attr(755,root,root) %{_libdir}/gnome-inhibit-applet
147 %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
148 %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
149 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
150 %{_datadir}/dbus-1/services/gnome-power-manager.service
151 %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
152 %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
153 %{_mandir}/man1/*.1*
154 %{_datadir}/gnome-power-manager
155 %{_desktopdir}/gnome-power-preferences.desktop
156 %{_desktopdir}/gnome-power-statistics.desktop
157 %{_iconsdir}/hicolor/*/*/*
158 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.083954 seconds and 2 git commands to generate.