1 # 2 # spec file for package gnome-spell 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: jefftsai 9 # 10 %define t_suffix -build38-linux-cb 11 %{?nightly:%define t_suffix -%(TZ=GMT date +%Y%m%d)} 12 13 Name: gnome-spell 14 Version: 1.0.7 15 Release: 388 16 Vendor: Sun Microsystems, Inc. 17 Distribution: Java Desktop System 18 Copyright: GPL 19 BuildRoot: %{_tmppath}/%{name}-%{version}-build 20 Docdir: %{_datadir}/doc 21 Autoreqprov: on 22 URL: http://www.sun.com/software/javadesktopsystem/ 23 Source: http://ftp.gnome.org/pub/gnome/sources/gnome-spell/1.0/%{name}-%{version}.tar.bz2 24 Source1: mkinstalldirs 25 Summary: GNOME spell checking component 26 Group: Applications/Text 27 28 %define aspell_version 0.50.3 29 %define libgnomeui_version 2.6.1 30 Requires: aspell >= %{aspell_version} 31 BuildRequires: aspell-devel >= %{aspell_version} 32 Requires: libgnomeui >= %libgnomeui_version 33 BuildRequires: libgnomeui-devel >= %libgnomeui_version 34 35 %description 36 Gnome Spell is GNOME/Bonobo component for spell checking. It 37 contains the GNOME::Spell::Dictionary object, which provides a spell 38 checking dictionary (see Spell.idl for exact API definition). It is 39 based on pspell. 40 41 %files 42 %defattr(-, root, root) 43 %doc AUTHORS ChangeLog COPYING NEWS README 44 %dir %{_libdir}/gnome-spell 45 %{_libdir}/gnome-spell/*.so 46 %{_datadir}/control-center-2.0/icons/* 47 %{_datadir}/gnome-spell-%{version} 48 %{_datadir}/idl/* 49 %{_libdir}/bonobo/servers/* 50 %{_prefix}/*/locale/*/LC_MESSAGES/* 51 52 %prep 53 %setup -q -n %{name}-%{version} 54 cp %SOURCE1 . 55 56 57 %build 58 %ifos linux 59 if [ -x /usr/bin/getconf ]; then 60 CPUS=`getconf _NPROCESSORS_ONLN` 61 fi 62 %else 63 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 64 %endif 65 if test "x$CPUS" = "x" -o $CPUS = 0; then 66 CPUS=1 67 fi 68 69 %ifos linux 70 export LDFLAGS="-lstdc++" 71 %endif 72 73 aclocal $ACLOCAL_FLAGS 74 libtoolize --force 75 glib-gettextize --force --copy 76 intltoolize --force --automake 77 autoheader 78 automake -a -f -c --gnu 79 autoconf 80 ./configure \ 81 --prefix=%{_prefix} \ 82 --sysconfdir=%{_sysconfdir} \ 83 --mandir=%{_mandir} \ 84 --infodir=%{_datadir}/info \ 85 --localstatedir=/var \ 86 --disable-static 87 88 make -j $CPUS 89 90 %install 91 make install DESTDIR=$RPM_BUILD_ROOT 92 #clean up unpackaged files 93 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a 94 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la 95 96 %clean 97 rm -rf $RPM_BUILD_ROOT 98 99 %changelog 100 * Mon Oct 16 2006 - damien.carbery@sun.com 101 - Remove the '-f' from the 'rm *.la *.a' lines so that any changes to the 102 module source will be seen as a build error and action can be taken. 103 104 * Fri Feb 10 2006 - damien.carbery@sun.com 105 - Bump to 1.0.7. 106 107 * Wed Aug 24 2005 - damien.carbery@sun.com 108 - Change hard coded ver number to %{version}. 109 110 * Mon Aug 15 2005 - damien.carbery@sun.com 111 - Bump to 1.0.6. Fix Source URL. 112 113 * Fri Aug 05 2005 - laca@sun.com 114 - simplify spec file 115 116 * Mon Jun 20 2005 - dermot.mccluskey@sun.com 117 - Bump source tarball to build 38 (linux) 118 119 * Mon Jun 06 2005 - dermot.mccluskey@sun.com 120 - Bump source tarball to build 37 (linux) 121 122 * Mon May 23 2005 - dermot.mccluskey@sun.com 123 - Bump source tarball to build 36 (linux) 124 125 * Mon May 09 2005 - dermot.mccluskey@sun.com 126 - Bump source tarball to build 35 (linux) 127 128 * Mon Apr 25 2005 - dermot.mccluskey@sun.com 129 - Bump source tarball to build 34 (linux) 130 131 * Mon Apr 11 2005 - dermot.mccluskey@sun.com 132 - Bump source tarball to build 33 (linux) 133 134 * Mon Mar 28 2005 - dermot.mccluskey@sun.com 135 - Bump source tarball to build 32 (linux) 136 137 * Mon Mar 14 2005 - dermot.mccluskey@sun.com 138 - Bump source tarball to build 31 (linux) 139 140 * Mon Feb 28 2005 - dermot.mccluskey@sun.com 141 - Bump source tarball to build 30 (linux) 142 143 * Mon Feb 14 2005 - dermot.mccluskey@sun.com 144 - Bump source tarball to build 29 (linux) 145 146 * Mon Jan 31 2005 - dermot.mccluskey@sun.com 147 - Bump source tarball to build 28 (linux) 148 149 * Fri Jan 28 2005 - takao.fujiwara@sun.com 150 - Fix the wrong description by script failure. 151 152 * Mon Jan 17 2005 - dermot.mccluskey@sun.com 153 - Bump source tarball to build 27 (linux) 154 155 * Tue Jan 04 2005 - dermot.mccluskey@sun.com 156 - Bump source tarball to build 26 (linux) 157 158 * Mon Dec 13 2004 - dermot.mccluskey@sun.com 159 - Bump source tarball to build 25 (linux) 160 161 * Mon Nov 29 2004 - dermot.mccluskey@sun.com 162 - Bump source tarball to build 24 163 164 * Mon Nov 15 2004 - damien.carbery@sun.com 165 - Bump source tarball to build 23. 166 167 * Mon Nov 01 2004 - dermot.mccluskey@sun.com 168 - bump src tarball to build22 169 170 * Wed Oct 27 2004 - laca@sun.com 171 - add libgnomeui dependency 172 173 * Tue Oct 26 2004 - laca@sun.com 174 - disable building static libs 175 176 * Mon Oct 18 2004 - dermot.mccluskey@sun.com 177 - bump src tarball to build21 178 179 * Mon Oct 11 2004 - dermot.mccluskey@sun.com 180 - bump src tarball to build20b 181 182 * Mon Oct 04 2004 - dermot.mccluskey@sun.com 183 - change aspell dep. version to 0.50.3 184 185 * Mon Sep 20 2004 - dermot.mccluskey@sun.com 186 - bump src tarball to build19 187 188 * Mon Sep 06 2004 - dermot.mccluskey@sun.com 189 - bump src tarball to build18 190 191 * Mon Aug 23 2004 - dermot.mccluskey@sun.com 192 - bump src tarball to build17 193 194 * Mon Aug 09 2004 - dermot.mccluskey@sun.com 195 - bump src tarball to build16 196 197 * Mon Jul 26 2004 - dermot.mccluskey@sun.com 198 - bump src tarball to build15 199 200 * Tue Jul 13 2004 - niall.power@sun.com 201 - ported to sles 9, add build requirement on 202 aspell-devel. Remove unpackaged files. 203 204 * Thu Jul 08 2004 - damien.donlon@sun.com 205 - Updated l10n content to gnome-spell-l10n-po-1.2.tar.bz2 206 207 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 208 - added "-j $CPUS" to make to speed up builds 209 210 * Fri Jun 25 2004 - dermot.mccluskey@sun.com 211 - bump src tarball to build13 212 * Thu Jun 10 2004 - dermot.mccluskey@sun.com 213 - bump src tarball to build12 214 * Sun May 30 2004 - dermot.mccluskey@sun.com 215 - bump src tarball to build11 216 * Fri May 28 2004 - laca@sun.com 217 - add -lstdc++ to LDFLAGS on Linux 218 * Thu May 27 2004 - laca@sun.com 219 - add mkinstalldirs to the source tree 220 * Fri May 14 2004 - dermot.mccluskey@sun.com 221 - bump src tarball to build10 222 * Wed May 12 2004 - damien.donlon@sun.com 223 - replace tar jxf with the more solaris friendly 224 bzcat piped through tar 225 * Wed May 12 2004 - damien.donlon@sun.com 226 - Adding gnome-spell-l10n-po-1.1.tar.bz2 l10n content 227 * Fri Apr 30 2004 - dermot.mccluskey@sun.com 228 - bump src tarball to build09 229