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