[805] | 1 | %define dbus_version 1.2.24 |
---|
[521] | 2 | %define dbus_glib_version 0.82 |
---|
[805] | 3 | %define gnome_panel_version 2.30.0 |
---|
[521] | 4 | |
---|
| 5 | Summary: GNOME power management service |
---|
| 6 | Summary(ja): GNOME 電源管理ツール |
---|
| 7 | Name: gnome-power-manager |
---|
[926] | 8 | Version: 2.30.1 |
---|
[521] | 9 | Release: 1%{?_dist_release} |
---|
| 10 | License: GPLv2+ and GFDL |
---|
| 11 | Group: Applications/System |
---|
| 12 | URL: http://projects.gnome.org/gnome-power-manager/ |
---|
| 13 | |
---|
| 14 | Source: http://download.gnome.org/sources/gnome-power-manager/2.28/gnome-power-manager-%{version}.tar.bz2 |
---|
| 15 | |
---|
| 16 | # for Vine Linux |
---|
| 17 | Patch10: gnome-power-manager-2.28.2-warningflags.patch |
---|
| 18 | Patch11: gnome-power-manager-2.28.2-math.patch |
---|
| 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[805] | 21 | BuildRequires: autoconf >= 2.65 |
---|
[521] | 22 | BuildRequires: libgnomeui-devel |
---|
| 23 | BuildRequires: libglade2-devel |
---|
| 24 | BuildRequires: libwnck-devel |
---|
| 25 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 26 | BuildRequires: libnotify-devel |
---|
[805] | 27 | BuildRequires: gnome-panel >= %{gnome_panel_version} |
---|
[521] | 28 | BuildRequires: scrollkeeper |
---|
| 29 | BuildRequires: gnome-doc-utils >= 0.3.2 |
---|
| 30 | BuildRequires: desktop-file-utils |
---|
| 31 | BuildRequires: gettext |
---|
| 32 | BuildRequires: libtool |
---|
| 33 | BuildRequires: cairo-devel |
---|
| 34 | BuildRequires: libcanberra-devel >= 0.10 |
---|
[805] | 35 | BuildRequires: unique-devel >= 1.1.6 |
---|
| 36 | ## BuildRequires: DeviceKit-power-devel >= 008 |
---|
| 37 | BuildRequires: upower-devel >= 0.9.0 |
---|
[521] | 38 | BuildRequires: intltool |
---|
[805] | 39 | BuildRequires: docbook-utils |
---|
[521] | 40 | Requires: gtk2 >= 2.10.0 |
---|
| 41 | Requires: gnome-mime-data |
---|
| 42 | Requires: gnome-icon-theme |
---|
| 43 | Requires: libnotify >= 0.4.3 |
---|
| 44 | Requires: dbus-glib >= %{dbus_glib_version} |
---|
| 45 | Requires: dbus-x11 >= %{dbus_version} |
---|
| 46 | Requires: libcanberra-gtk2 >= 0.10 |
---|
[805] | 47 | Requires: unique >= 1.1.6 |
---|
| 48 | Requires: upower >= 0.9.0 |
---|
[521] | 49 | Requires(post,postun): scrollkeeper |
---|
| 50 | Requires(post,pre,preun): GConf2 |
---|
| 51 | |
---|
| 52 | Vendor: Project Vine |
---|
| 53 | Distribution: Vine Linux |
---|
| 54 | Packager: daisuke, Takemikaduchi |
---|
| 55 | |
---|
| 56 | %description |
---|
| 57 | GNOME Power Manager uses the information and facilities provided by HAL |
---|
| 58 | displaying icons and handling user callbacks in an interactive GNOME session. |
---|
| 59 | GNOME Power Preferences allows authorised users to set policy and |
---|
| 60 | change preferences. |
---|
| 61 | |
---|
| 62 | %package extra |
---|
| 63 | Summary: GNOME Power Manager extra utility programs |
---|
| 64 | Group: Applications/System |
---|
| 65 | Requires: %{name} = %{version}-%{release} |
---|
| 66 | |
---|
| 67 | %description extra |
---|
| 68 | Extra GNOME power management applications that are not normally needed. |
---|
| 69 | |
---|
| 70 | %prep |
---|
| 71 | %setup -q |
---|
| 72 | #%setup -q -n %{?name}-%{?version}-%{?alphatag} |
---|
[805] | 73 | ## %patch10 -p1 -b .warnings |
---|
| 74 | ## %patch11 -p1 -b .math |
---|
[521] | 75 | autoreconf -i |
---|
| 76 | |
---|
| 77 | %build |
---|
| 78 | %configure \ |
---|
| 79 | --disable-scrollkeeper |
---|
| 80 | make |
---|
| 81 | |
---|
| 82 | # strip unneeded translations from .mo files |
---|
| 83 | # ideally intltool (ha!) would do that for us |
---|
| 84 | # http://bugzilla.gnome.org/show_bug.cgi?id=474987 |
---|
| 85 | cd po |
---|
| 86 | grep -v ".*[.]desktop[.]in[.]in$\|.*[.]server[.]in[.]in$" POTFILES.in > POTFILES.keep |
---|
| 87 | mv POTFILES.keep POTFILES.in |
---|
| 88 | intltool-update --pot |
---|
| 89 | for p in *.po; do |
---|
| 90 | msgmerge $p %{name}.pot > $p.out |
---|
| 91 | msgfmt -o `basename $p .po`.gmo $p.out |
---|
| 92 | done |
---|
| 93 | |
---|
| 94 | %install |
---|
| 95 | rm -rf $RPM_BUILD_ROOT |
---|
| 96 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 97 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 98 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 99 | |
---|
| 100 | desktop-file-install --vendor gnome --delete-original \ |
---|
| 101 | --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart \ |
---|
| 102 | $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/gnome-power-manager.desktop |
---|
| 103 | |
---|
| 104 | # save space by linking identical images in translated docs |
---|
| 105 | helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name} |
---|
| 106 | for f in $helpdir/C/figures/*.png; do |
---|
| 107 | b="$(basename $f)" |
---|
| 108 | for d in $helpdir/*; do |
---|
| 109 | if [ -d "$d" -a "$d" != "$helpdir/C" ]; then |
---|
| 110 | g="$d/figures/$b" |
---|
| 111 | if [ -f "$g" ]; then |
---|
| 112 | if cmp -s $f $g; then |
---|
| 113 | rm "$g"; ln -s "../../C/figures/$b" "$g" |
---|
| 114 | fi |
---|
| 115 | fi |
---|
| 116 | fi |
---|
| 117 | done |
---|
| 118 | done |
---|
| 119 | |
---|
| 120 | %find_lang %name --with-gnome |
---|
| 121 | |
---|
| 122 | %clean |
---|
| 123 | rm -rf $RPM_BUILD_ROOT |
---|
| 124 | |
---|
| 125 | %post |
---|
| 126 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 127 | gconftool-2 --makefile-install-rule \ |
---|
| 128 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas >/dev/null || : |
---|
| 129 | scrollkeeper-update -q &> /dev/null || : |
---|
| 130 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 131 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 132 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 133 | fi |
---|
| 134 | |
---|
| 135 | %pre |
---|
| 136 | if [ "$1" -gt 1 ]; then |
---|
| 137 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 138 | gconftool-2 --makefile-uninstall-rule \ |
---|
| 139 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas > /dev/null || : |
---|
| 140 | fi |
---|
| 141 | |
---|
| 142 | %preun |
---|
| 143 | if [ "$1" -eq 0 ]; then |
---|
| 144 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 145 | gconftool-2 --makefile-uninstall-rule \ |
---|
| 146 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas > /dev/null || : |
---|
| 147 | fi |
---|
| 148 | |
---|
| 149 | %postun |
---|
| 150 | scrollkeeper-update -q &> /dev/null || : |
---|
| 151 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 152 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 153 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 154 | fi |
---|
| 155 | |
---|
| 156 | %files -f %{name}.lang |
---|
| 157 | %defattr(-,root,root) |
---|
| 158 | %doc AUTHORS COPYING README |
---|
| 159 | %{_bindir}/gnome-power-bugreport.sh |
---|
| 160 | %{_bindir}/gnome-power-manager |
---|
| 161 | %{_bindir}/gnome-power-preferences |
---|
| 162 | %dir %{_datadir}/gnome-power-manager |
---|
| 163 | %{_datadir}/gnome-power-manager/acme.ui |
---|
| 164 | %{_datadir}/gnome-power-manager/gpm-prefs.ui |
---|
| 165 | %{_datadir}/gnome-power-manager/gpm-feedback-widget.ui |
---|
| 166 | %{_mandir}/man1/gnome-power-manager.1.gz |
---|
| 167 | %{_mandir}/man1/gnome-power-preferences.1.gz |
---|
| 168 | %{_sysconfdir}/gconf/schemas/*.schemas |
---|
| 169 | %{_datadir}/dbus-1/services/gnome-power-manager.service |
---|
| 170 | #%{_datadir}/omf/gnome-power-manager |
---|
| 171 | %{_sysconfdir}/xdg/autostart/*.desktop |
---|
| 172 | %{_datadir}/gnome-power-manager/icons/hicolor/*/*/*.* |
---|
| 173 | %{_datadir}/icons/hicolor/*/apps/gnome-power-manager.* |
---|
| 174 | %{_datadir}/applications/gnome-power-preferences.desktop |
---|
| 175 | %{_libexecdir}/gnome-brightness-applet |
---|
| 176 | %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server |
---|
| 177 | %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml |
---|
| 178 | %{_datadir}/icons/hicolor/*/apps/gnome-brightness-applet.* |
---|
| 179 | |
---|
| 180 | %files extra |
---|
| 181 | %defattr(-,root,root,-) |
---|
| 182 | %doc AUTHORS COPYING NEWS README |
---|
| 183 | %{_bindir}/gnome-power-statistics |
---|
| 184 | %{_mandir}/man1/gnome-power-statistics.1.gz |
---|
| 185 | %{_datadir}/gnome-power-manager/gpm-statistics.ui |
---|
| 186 | %{_datadir}/applications/gnome-power-statistics.desktop |
---|
| 187 | %{_datadir}/icons/hicolor/*/apps/gnome-power-statistics.* |
---|
| 188 | %{_libexecdir}/gnome-inhibit-applet |
---|
| 189 | %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server |
---|
| 190 | %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml |
---|
| 191 | %{_datadir}/icons/hicolor/*/apps/gnome-inhibit-applet.* |
---|
| 192 | |
---|
| 193 | %changelog |
---|
[926] | 194 | * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1 |
---|
| 195 | - new upstream release |
---|
| 196 | |
---|
[805] | 197 | * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1 |
---|
| 198 | - new upstream release |
---|
| 199 | - remove Patch1, Patch2, Patch3 |
---|
| 200 | - change BuildRequires: DeviceKit-power-devel -> upower-devel |
---|
| 201 | - change Requires: DeviceKit-power -> upower |
---|
| 202 | |
---|
[521] | 203 | * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.3-1 |
---|
| 204 | - new upstream release |
---|
[805] | 205 | - change BuildRequires: xmlto -> docbook-utils |
---|
| 206 | - remove BuildReuiqres: hal-devel |
---|
[521] | 207 | |
---|
[805] | 208 | * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.3-1 |
---|
| 209 | - new upstream release |
---|
| 210 | |
---|
[521] | 211 | * Tue Dec 29 2009 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1 |
---|
| 212 | - merge spec file from FC package |
---|
| 213 | - add Patch1, Patch2 and Patch3 from FC package |
---|
| 214 | - add Patch10 and Patch11 for Vine Linux |
---|
| 215 | - remove configure option --enable-policykit |
---|
| 216 | - add new package (extra) |
---|
| 217 | |
---|
| 218 | * Sun Apr 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.4-1 |
---|
| 219 | - new upstream release |
---|
| 220 | |
---|
| 221 | * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1 |
---|
| 222 | - new upstream release |
---|
| 223 | |
---|
| 224 | * Thu Sep 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1 |
---|
| 225 | - new upstream release |
---|
| 226 | |
---|
| 227 | * Sun Apr 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5 |
---|
| 228 | - new upstream release |
---|
| 229 | |
---|
| 230 | * Sun Jan 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.2-0vl1 |
---|
| 231 | - new upstream release |
---|
| 232 | |
---|
| 233 | * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.2-0vl2 |
---|
| 234 | - rebuild with new environment/toolchain |
---|
| 235 | |
---|
| 236 | * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.2-0vl1 |
---|
| 237 | - new upstream release |
---|
| 238 | - drop Patch10 to enable suspend-to-ram. |
---|
| 239 | |
---|
| 240 | * Thu Sep 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.0-0vl1 |
---|
| 241 | - new upstream release |
---|
| 242 | |
---|
| 243 | * Tue Aug 08 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.91-0vl1 |
---|
| 244 | - new upstream release |
---|
| 245 | |
---|
| 246 | * Mon Jul 24 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.90-0vl1 |
---|
| 247 | - new upstream release |
---|
| 248 | |
---|
| 249 | * Wed Jun 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.3-0vl1 |
---|
| 250 | - new upstream release |
---|
| 251 | |
---|
| 252 | * Wed May 31 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.2-0vl1 |
---|
| 253 | - new upstream release |
---|
| 254 | |
---|
| 255 | * Wed Apr 26 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.1-0vl1 |
---|
| 256 | - new upstream release |
---|
| 257 | |
---|
| 258 | * Mon Apr 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.0-0vl1 |
---|
| 259 | - new upstream release |
---|
| 260 | |
---|
| 261 | * Mon Apr 10 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.1-0vl1 |
---|
| 262 | - new upstream release |
---|
| 263 | |
---|
| 264 | * Thu Mar 30 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl3 |
---|
| 265 | - add Patch10 to disable suspend-to-ram by default. |
---|
| 266 | |
---|
| 267 | * Thu Mar 30 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl2 |
---|
| 268 | - update ja.po from CVS head. |
---|
| 269 | |
---|
| 270 | * Thu Mar 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1 |
---|
| 271 | - new upstream release |
---|
| 272 | |
---|
| 273 | * Sun Mar 12 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.93-0vl1 |
---|
| 274 | - initial build for Vine Linux based on FC package |
---|
| 275 | |
---|
| 276 | * Mon Mar 6 2006 Ray Strode <rstrode@redhat.com> - 2.13.93-4 |
---|
| 277 | - fix the fix in -2 and -3 |
---|
| 278 | |
---|
| 279 | * Mon Mar 6 2006 Ray Strode <rstrode@redhat.com> - 2.13.93-3 |
---|
| 280 | - fix the fix in -2 |
---|
| 281 | |
---|
| 282 | * Mon Mar 6 2006 Ray Strode <rstrode@redhat.com> - 2.13.93-2 |
---|
| 283 | - fix icon in bubbles (bug 184192). |
---|
| 284 | |
---|
| 285 | * Fri Mar 3 2006 Ray Strode <rstrode@redhat.com> - 2.13.93-1 |
---|
| 286 | - Update to 2.13.93 |
---|
| 287 | - ignore d-bus timeout errors |
---|
| 288 | |
---|
| 289 | * Thu Mar 2 2006 Ray Strode <rstrode@redhat.com> - 2.13.92-3 |
---|
| 290 | - Add patch from Richard Hughes to potentially fix a |
---|
| 291 | crasher bug (bug 183127) |
---|
| 292 | |
---|
| 293 | * Tue Feb 28 2006 Karsten Hopp <karsten@redhat.de> 2.13.92-2 |
---|
| 294 | - Buildrequires: gnome-doc-utils |
---|
| 295 | |
---|
| 296 | * Sun Feb 26 2006 Ray Strode <rstrode@redhat.com> - 2.13.92-1 |
---|
| 297 | - Update to 2.13.92 |
---|
| 298 | |
---|
| 299 | * Tue Feb 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.13.91-1 |
---|
| 300 | - Update to 2.13.91 |
---|
| 301 | - Drop upstreamed patch |
---|
| 302 | |
---|
| 303 | * Wed Feb 15 2006 Matthias Clasen <mclasen@redhat.com> - 2.13.90-1 |
---|
| 304 | - Update to 2.13.90 |
---|
| 305 | - Require dbus-x11 (#176656) |
---|
| 306 | |
---|
| 307 | * Sun Feb 13 2006 Ray Strode <rstrode@redhat.com> - 2.13.5.0.20060207-2 |
---|
| 308 | - remove Hibernate and Suspend from menus as part of |
---|
| 309 | panel/g-p-m integration effort |
---|
| 310 | |
---|
| 311 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.13.5.0.20060207-1.1 |
---|
| 312 | - bump again for double-long bug on ppc(64) |
---|
| 313 | |
---|
| 314 | * Tue Feb 7 2006 Ray Strode <rstrode@redhat.com> - 2.13.5.0.20060207-1 |
---|
| 315 | - pull cvs snapshot from HEAD and drop the patches caillon |
---|
| 316 | just added |
---|
| 317 | |
---|
| 318 | * Tue Feb 7 2006 Christopher Aillon <caillon@redhat.com> - 2.13.5-3 |
---|
| 319 | - Install into the autostart directory |
---|
| 320 | - Don't suspend on lid close while on AC power |
---|
| 321 | |
---|
| 322 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.13.5-2.1 |
---|
| 323 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 324 | |
---|
| 325 | * Tue Jan 31 2006 Matthias Clasen <mclasen@redhat.com> - 2.13.5-2 |
---|
| 326 | - rebuild |
---|
| 327 | |
---|
| 328 | * Thu Jan 26 2006 Ray Strode <rstrode@redhat.com> - 2.13.5-1 |
---|
| 329 | - packaging tweaks |
---|
| 330 | |
---|
| 331 | * Thu Jan 26 2006 Christopher Aillon <caillon@redhat.com> 2.13.5-1 |
---|
| 332 | - Update to 2.13.5 |
---|
| 333 | |
---|
| 334 | * Tue Jan 24 2006 Christopher Aillon <caillon@redhat.com> - 0.3.4-2 |
---|
| 335 | - Left clicking on the applet should bring up the menu |
---|
| 336 | |
---|
| 337 | * Tue Jan 17 2006 Ray Strode <rstrode@redhat.com> - 0.3.4-1 |
---|
| 338 | - update to 0.3.4 |
---|
| 339 | - disable updating scrollkeeper database in buildroot |
---|
| 340 | (move to %%post) |
---|
| 341 | |
---|
| 342 | * Fri Jan 6 2006 Jeremy Katz <katzj@redhat.com> - 0.3.3-0.cvs.20060106 |
---|
| 343 | - update to a cvs snap so that it works with hal cvs snap |
---|
| 344 | - make sure we use libnotify |
---|
| 345 | |
---|
| 346 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> - 0.3.1-2.1 |
---|
| 347 | - rebuilt |
---|
| 348 | |
---|
| 349 | * Thu Dec 01 2005 John (J5) Palmieri <johnp@redhat.com> - 0.3.1-2 |
---|
| 350 | - rebuild for new dbus |
---|
| 351 | |
---|
| 352 | * Mon Nov 28 2005 Christopher Aillon <caillon@redhat.com> 0.3.1-1 |
---|
| 353 | - Update to 0.3.1 |
---|
| 354 | |
---|
| 355 | * Fri Nov 25 2005 Christopher Aillon <caillon@redhat.com> 0.3.0-1 |
---|
| 356 | - Update to 0.3.0 |
---|
| 357 | |
---|
| 358 | * Wed Oct 19 2005 Ray Strode <rstrode@redhat.com> 0.2.8-1 |
---|
| 359 | - update to 0.2.8 |
---|
| 360 | |
---|
| 361 | * Wed Oct 3 2005 Ray Strode <rstrode@redhat.com> 0.2.6-1 |
---|
| 362 | - update to 0.2.6 |
---|
| 363 | |
---|
| 364 | * Wed Sep 28 2005 Ray Strode <rstrode@redhat.com> 0.2.4-1 |
---|
| 365 | - update to 0.2.4 |
---|
| 366 | |
---|
| 367 | * Fri Sep 02 2005 David Zeuthen <davidz@redhat.com> 0.2.3.1-1 |
---|
| 368 | - Initial import based on an SRPM from Richard Hughes |
---|
| 369 | |
---|