1 # 2 # spec file for package gcalctool 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: laca 9 # 10 Name: gcalctool 11 License: GPL 12 Group: System/GUI/GNOME 13 Version: 5.8.25 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: GNOME Calculator 18 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/5.8/%{name}-%{version}.tar.bz2 19 Source1: gnome-calculator.1.gz 20 Source2: gcalctool.1.gz 21 # date:2006-06-09 owner:gman type:branding 22 Patch1: gcalctool-01-menu-entry.diff 23 # date:2006-11-13 owner:pwade bugster:6480076 type:bug 24 # patch sent to rich.burridge 25 Patch2: gcalctool-02-result-area.diff 26 URL: http://www.gnome.org 27 BuildRoot: %{_tmppath}/%{name}-%{version}-build 28 Docdir: %{_defaultdocdir}/%{name} 29 Autoreqprov: on 30 31 %define glib2_version 2.6.0 32 %define pango_version 1.2.5 33 %define gtk2_version 2.6.0 34 %define GConf_version 1.1.9 35 %define libgnome_version 2.4.0 36 %define scrollkeeper_version 0.3.12 37 38 Requires: libgnome >= %{libgnome_version} 39 Requires: glib2 >= %{glib2_version} 40 Requires: gtk2 >= %{gtk2_version} 41 Prereq: GConf >= %{GConf_version} 42 BuildRequires: glib2-devel >= %{glib2_version} 43 BuildRequires: pango-devel >= %{pango_version} 44 BuildRequires: gtk2-devel >= %{gtk2_version} 45 BuildRequires: GConf-devel >= %{GConf_version} 46 BuildRequires: libgnome-devel >= %{libgnome_version} 47 BuildRequires: scrollkeeper >= %{scrollkeeper_version} 48 49 %description 50 This package contains a calculator for the GNOME Desktop. This calculator 51 has 3 different modes - Basic, Scientific and Financial. 52 53 54 %prep 55 %setup -q 56 %patch1 -p1 57 %patch2 -p1 58 59 %build 60 %ifos linux 61 if [ -x /usr/bin/getconf ]; then 62 CPUS=`getconf _NPROCESSORS_ONLN` 63 fi 64 %else 65 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 66 %endif 67 if test "x$CPUS" = "x" -o $CPUS = 0; then 68 CPUS=1 69 fi 70 71 CFLAGS="$RPM_OPT_FLAGS" \ 72 ./configure \ 73 --prefix=%{_prefix} \ 74 --sysconfdir=%{_sysconfdir} \ 75 --mandir=%{_mandir} \ 76 --localstatedir=/var/lib \ 77 --disable-scrollkeeper 78 79 make -j $CPUS 80 81 %install 82 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 83 make -i install DESTDIR=$RPM_BUILD_ROOT 84 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 85 install -d $RPM_BUILD_ROOT%{_mandir}/man1 86 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 87 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 88 rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper 89 rmdir $RPM_BUILD_ROOT/var/lib 90 rmdir $RPM_BUILD_ROOT/var 91 92 #Copy zh_HK from zh_TW 93 #Fixes bug 4930405 94 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES 95 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ 96 97 %clean 98 rm -rf $RPM_BUILD_ROOT 99 100 %post 101 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 102 SCHEMAS=" gcalctool.schemas " 103 for S in $SCHEMAS; do 104 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 105 done 106 107 %files 108 %defattr (-, root, root) 109 %{_bindir}/* 110 %{_datadir}/locale/*/LC_MESSAGES/*.mo 111 %{_datadir}/omf/gcalctool 112 %{_datadir}/gnome/help 113 %{_sysconfdir}/gconf/schemas 114 %{_datadir}/applications 115 %{_mandir}/man1/ 116 117 %changelog 118 * Mon Nov 13 2006 - patrick.wade@sun.com 119 - Add patch 02-result-area to fix bugster 6480076 120 121 * Fri Nov 03 2006 - damien.carbery@sun.com 122 - Bump to 5.8.25. Remove upstream patch, 02-arabic-decimal-point. 123 124 * Tue Oct 03 2006 - matt.keenan@sun.com 125 - Bugster #6473019 / bugzilla #359291 126 - Fix crash with arabic locale 127 128 * Mon Sep 04 2006 - damien.carbery@sun.com 129 - Bump to 5.8.24. 130 131 * Fri Aug 18 2006 - damien.carbery@sun.com 132 - Bump to 5.8.23. 133 134 * Tue Aug 08 2006 - damien.carbery@sun.com 135 - Bump to 5.8.20. 136 137 * Mon Jul 24 2006 - damien.carbery@sun.com 138 - Bump to 5.8.19. 139 140 * Web Jul 21 2006 - dermot.mccluskey@sun.com 141 - Bump to 5.8.17. 142 143 * Fri Jun 01 2006 - glynn.foster@sun.com 144 - Add menu entry patch. 145 146 * Mon Mar 13 2006 - damien.carbery@sun.com 147 - Bump to 5.7.32. 148 149 * Mon Feb 27 2006 - damien.carbery@sun.com 150 - Bump to 5.7.30. 151 152 * Mon Feb 13 2006 - damien.carbery@sun.com 153 - Bump to 5.7.29. 154 155 * Mon Jan 30 2006 - damien.carbery@sun.com 156 - Bump to 5.7.28. 157 158 * Mon Jan 23 2006 - damien.carbery@sun.com 159 - Bump to 5.7.27. 160 161 * Fri Jan 20 2006 - damien.carbery@sun.com 162 - Bump to 5.7.26. 163 164 * Sun Jan 15 2006 - damien.carbery@sun.com 165 - Bump to 5.7.23. 166 167 * Tue Jan 03 2006 - damien.carbery@sun.com 168 - Bump to 5.7.18. 169 170 * Tue Nov 29 2005 - laca@sun.com 171 - remove javahelp stuff 172 173 * Mon Sep 05 2005 - damien.carbery@sun.com 174 - Bump to 5.6.31. 175 176 * Mon Aug 15 2005 - damien.carbery@sun.com 177 - Bump to 5.6.26. 178 179 * Fri Jul 01 2005 - matt.keenan@sun.com 180 - -02-pkgconfig patch for solaris build 181 182 * Thu May 19 2005 - laszlo.kovacs@sun.com 183 - ported to 5.5.42 184 185 * Wed May 18 2005 - kazuhiko.maekawa@sun.com 186 - Updated l10n help patch to add pt_BR 187 188 * Tue Jan 25 2005 - glynn.foster@sun.com 189 - Add patch from Rich to fix #162998. 190 191 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com 192 - Updated l10n help tarball for cinnabar-linux 193 194 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com 195 - Updated l10n help tarball and patch 196 197 * Thu Oct 28 2004 - kazuhiko.maekawa@sun.com 198 - Updated l10n help tarball and added pt_BR 199 200 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com 201 - Added l10n help contents 202 203 * Thu Aug 05 2004 - damien.carbery@sun.com 204 - Incorporate new docs tarball from breda.mccolgan@sun.com. 205 206 * Thu Jul 08 2004 - damien.donlon@sun.com 207 - Updated l10n content to gcalctool-l10n-po-1.2.tar.bz2 208 209 * Wed Jul 07 2004 - niall.power@sun.com 210 - ported to rpm4 211 212 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 213 - added "-j $CPUS" to make to speed up builds 214 215 * Mon May 31 2004 - padraig.obriain@sun.com 216 - Add patch gcalctool-01-update-display.diff to fix bugzilla bug #134376 217 218 * Fri May 28 2004 - damien.carbery@sun.com 219 - Incorporate new docs tarball from breda.mccolgan@sun.com. 220 221 * Wed May 12 2004 - damien.donlon@sun.com 222 - Updated l10n content to gcalctool-l10n-po-1.1.tar.bz2 223 224 * Sun Apr 18 2004 - laca@sun.com 225 - enable javahelp conversion on Solaris 226 227 * Thu Apr 15 2004 - glynn.foster@sun.com 228 - Bump to 4.3.51 229 230 * Thu Apr 01 2004 - matt.keenan@sun.com 231 - javahelp conversion 232 233 * Mon Mar 29 2004 - damien.donlon@sun.com 234 - Updated l10n content to gcalctool-l10n-po-1.0.tar.bz2 235 236 * Tue Mar 16 2004 - glynn.foster@sun.com 237 - Remove the man page and localized doc patches 238 since they're upstream and we'll pick them up 239 with the next release. Bump to 4.3.50. 240 241 * Mon Mar 01 2004 - laca@sun.com 242 - fix aclocal options 243 - s$/usr/share/man$%{_mandir}$ 244 - s$/usr/share%{_datadir}$ 245 246 * Thu Feb 23 2004 - laca@sun.com 247 - fix non-portable tar commands 248 249 * Mon Feb 23 2004 - matt.keenan@sun.com 250 - Bump to 4.3.46, re-order patches, l10n update 251 252 * Wed Dec 17 2003 - glynn.foster@sun.com 253 - Bump to 4.3.29 254 255 * Fri Oct 31 2003 - glynn.foster@sun.com 256 - Remove the Sun Supported keyword since we're 257 moving away from extras menu. 258 259 - Remove the Sun Supported keyword since we're 260 moving away from extras menu. 261 262 - Remove the Sun Supported keyword since we're 263 moving away from extras menu. 264 265 - Remove the Sun Supported keyword since we're 266 moving away from extras menu. 267 268 * Fri Oct 10 2003 - laca@sun.com 269 - Update to 3.4.4 270 271 * Fri Aug 01 2003 - glynn.foster@sun.com 272 - Add menu entry supported category. 273 274 * Wed Jul 30 2003 - glynn.foster@sun.com 275 - New release. Bump version, reset release. 276 277 * Fri Jul 25 2003 - niall.power@sun.com 278 - Uses scrollkeeper for postinstall. Add a dependency 279 280 * Tue Jul 01 2003 - glynn.foster@sun.com 281 - Initial Sun release 282