Home | History | Annotate | Download | only in base-specs
      1 #
      2 # spec file for package dasher
      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: yippi
      9 #
     10 %include l10n.inc
     11 Name:           dasher
     12 License:	GPL v2, MIT/X
     13 Group:		System/GUI/GNOME
     14 Version:        4.9.0
     15 Release:	1
     16 Distribution:	Java Desktop System
     17 Vendor:		Sun Microsystems, Inc.
     18 Summary:	Predictive text entry system
     19 Source:		http://ftp.gnome.org/pub/GNOME/sources/dasher/4.9/%{name}-%{version}.tar.bz2
     20 Source1:	%{name}-po-sun-%{po_sun_version}.tar.bz2
     21 %if %build_l10n
     22 Source2:                 l10n-configure.sh
     23 %endif
     24 # owner:yippi date:2006-04-27 type:branding
     25 Patch1:         dasher-01-menu-entry.diff
     26 # owner:dcarbery date:2007-06-07 type:bug bugzilla:438925
     27 Patch2:         dasher-02-vector.diff
     28 # owner:davelam date:2008-05-14 type:bug bugzilla:532097
     29 Patch3:		dasher-03-add-libsocket.diff
     30 # owner:yippi date:2008-06-02 type:bug bugzilla:536926
     31 Patch4:         dasher-04-fixcompile.diff
     32 URL:		http://www.gnome.org
     33 BuildRoot:	%{_tmppath}/%{name}-%{version}-build
     34 Docdir:		%{_defaultdocdir}/%{name}
     35 Autoreqprov:	on
     36 
     37 %define gtk2_version 2.3.1
     38 %define GConf_version 2.4.0.1
     39 %define libgnomeui_version 2.6.0
     40 %define libwnck_version 2.6.0
     41 %define gnome_speech_version 0.3.0
     42 
     43 Requires:	gtk2 >= %{gtk2_version}
     44 Requires:	GConf >= %{GConf_version}
     45 Requires:	libgnomeui >= %{libgnomeui_version}
     46 Requires:	libwnck >= %{libwnck_version}
     47 Requires:	gnome-speech >= %{gnome_speech_version}
     48 BuildRequires:  gtk2-devel >= %{gtk2_version}
     49 BuildRequires:  GConf-devel >= %{GConf_version}
     50 BuildRequires:  libgnomeui-devel >= %{libgnomeui_version}
     51 BuildRequires:  libwnck-devel >= %{libwnck_version}
     52 BuildRequires:  gnome-speech-devel >= %{gnome_speech_version}
     53 BuildRequires:  intltool
     54 
     55 %description
     56 Dasher is a zooming predictive text entry system, designed for situations
     57 where keyboard input is impractical (for instance, accessibility or PDAs). It
     58 is usable with highly limited amounts of physical input while still allowing
     59 high rates of text entry.
     60 
     61 %prep
     62 %setup -q
     63 %if %build_l10n
     64 bzcat %SOURCE1 | tar xf -
     65 cd po-sun; make; cd ..
     66 %endif
     67 %patch1 -p1
     68 %patch2 -p1
     69 %patch3 -p1
     70 %patch4 -p1
     71 
     72 %build
     73 %ifos linux
     74 if [ -x /usr/bin/getconf ]; then
     75   CPUS=`getconf _NPROCESSORS_ONLN`
     76 fi
     77 %else
     78   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     79 %endif
     80 if test "x$CPUS" = "x" -o $CPUS = 0; then
     81   CPUS=1
     82 fi
     83 
     84 glib-gettextize -f
     85 intltoolize -c -f --automake
     86 
     87 %if %build_l10n
     88 bash -x %SOURCE2 --enable-copyright
     89 %endif
     90 
     91 aclocal $ACLOCAL_FLAGS
     92 autoheader
     93 automake -a -c -f
     94 autoconf
     95 
     96 CFLAGS="$RPM_OPT_FLAGS" \
     97   ./configure \
     98 	--prefix=%{_prefix} \
     99 	--sysconfdir=%{_sysconfdir} \
    100 	--mandir=%{_mandir}
    101 make -j $CPUS
    102 
    103 %install
    104 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
    105 make -i install DESTDIR=$RPM_BUILD_ROOT
    106 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
    107 
    108 %clean
    109 rm -rf $RPM_BUILD_ROOT
    110 
    111 %files
    112 %defattr (-, root, root)
    113 %{_bindir}/*
    114 %{_datadir}/applications
    115 %{_datadir}/dasher
    116 %{_datadir}/gnome/help
    117 %{_datadir}/icons
    118 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    119 %{_datadir}/man
    120 %{_datadir}/omf
    121 
    122 %changelog
    123 * Thu Jun 05 2008 - brian.cameron@sun.com
    124 - Add patch dasher-05-fixcompile.diff so that 4.9.0 compiles.
    125   Fixes bugzilla bug 536926.
    126 * Wed May 28 2008 - damien.carbery@sun.com
    127 - Bump to 4.9.0.
    128 * Wed May 14 2008 - dave.lin@sun.com
    129 - Add patch dasher-03-add-libsocket.diff to fix build error
    130 * Wed Apr 08 2008 - damien.carbery@sun.com
    131 - Bump to 4.7.3. Remove upstream patches, 03-gnu_cxx and 04-fixcompile.
    132 * Tue Nov 13 2007 - brian.cameron@sun.com
    133 - Add patch dasher-05-fixcompile.diff to fix Sun Studio compile issues.
    134 - Remove dasher-02-joystick.diff since it is no longer needed.  Now
    135   joystick support is off by default, and you have to use
    136   --enable-joystick to turn on the joystick code that breaks on
    137   Solaris.
    138 * Tue Nov 13 2007 - damien.carbery@sun.com
    139 - Bump to 4.7.0.
    140 * Fri Oct 19 2007 - damien.carbery@sun.com
    141 - Bump to 4.6.1.
    142 * Tue Sep 18 2007 - damien.carbery@sun.com
    143 - Bump to 4.6.0.
    144 * Tue Jul 10 2007 - damien.carbery@sun.com
    145 - Bump to 4.5.2.
    146 * Fri Jun 09 2007 - damien.carbery@sun.com
    147 - Add Brett Albertson's three patches that get dasher to successfully build.
    148 * Tue Jun 05 2007 - damien.carbery (at] sun.com
    149 - Bump to 4.5.1.
    150 * Tue May 15 2007 - damien.carbery (at] sun.com
    151 - Bump to 4.5.0.
    152 * Thu Apr 12 2007 - damien.carbery (at] sun.com
    153 - Bump to 4.4.1.
    154 * Tue Mar 13 2007 - damien.carbery (at] sun.com
    155 - Bump to 4.4.0.
    156 * Tue Mar 06 2007 - damien.carbery (at] sun.com
    157 - Remove upstream patch, 03-return-value.
    158 * Mon Mar 05 2007 - damien.carbery (at] sun.com
    159 - Bump to 4.3.5.
    160 * Wed Feb 14 2007 - damien.carbery (at] sun.com
    161 - Add patch, 03-return-value, to return values from functions (functions
    162   involved as in the process of being reimplemented). Fixes #407773.
    163 * Tue Feb 13 2007 - takao.fujiwara (at] sun.com
    164 - Add l10n tarball.
    165 * Tue Feb 13 2007 - damien.carbery (at] sun.com
    166 - Bump to 4.3.4.
    167 * Thu Jan 04 2007 - damien.carbery (at] sun.com
    168 - Add patch, 02-joystick, to get module to build. It is a dreadful hack, but
    169   pushed upstream (#388198) to encourage the maintainer to find a better
    170   solution. Add intltoolize call to get l10n files installed.
    171 * Wed Dec 20 2006 - brian.cameron (at] sun.com
    172 - Remove nodividebyzero patch since it is no longer needed.  New
    173   version of dasher no longer allows the problem to happen.  Remove
    174   unnecessary linguas patch.
    175 * Tue Dec 19 2006 - damien.carbery (at] sun.com
    176 - Bump to 4.3.3.
    177 * Thu Dec 14 2006 - brian.cameron (at] sun.com
    178 - Patch to avoid divide by zero which causes dasher to core dump.
    179 * Mon Dec 04 2006 - damien.carbery (at] sun.com
    180 - Bump to 4.3.2. Remove upstream patches, 01-forte and 03-fixcompile. Renumber
    181   remainder.
    182 * Mon Nov 27 2006 - damien.carbery (at] sun.com
    183 - Bump to 4.2.2.
    184 * Wed Oct 25 2006 - damien.carbery (at] sun.com
    185 - Bump to 4.2.1.
    186 * Mon Sep 04 2006 - damien.carbery (at] sun.com
    187 - Bump to 4.2.0.
    188 * Tue Aug 22 2006 - damien.carbery (at] sun.com
    189 - Bump to 4.1.10.
    190 * Tue Aug 08 2006 - brian.cameron (at] sun.com
    191 - Bump to 4.1.9.
    192 * Mon Jul 24 2006 - damien.carbery (at] sun.com
    193 - Bump to 4.1.8.
    194 * Web Jul 20 2006 - dermot.mccluskey (at] sun.com
    195 - Bump to 4.1.7.
    196 * Fri Jun 23 2006 - brian.cameron (at] sun.com
    197 - Bump to 4.1.4.  Add patches to fix build, now call glib-gettextize.
    198 * Fri Apr 28 2006 - glynn.foster (at] sun.com
    199 - Add patch to move Dasher into Universal
    200   Access.
    201 * Mon Apr 3 2006 - damien.carbery (at] sun.com
    202 - Bump to 4.0.2.
    203 * Sat Mar 18 2006 - damien.carbery (at] sun.com
    204 - Bump to 4.0.1.
    205 * Mon Mar 13 2006 - damien.carbery (at] sun.com
    206 - Bump to 4.0.0.
    207 * Sun Feb 26 2006 - damien.carbery (at] sun.com
    208 - Bump to 3.99.5.
    209 * Tue Feb 21 2006 - brian.cameron (at] sun.com
    210 - Add patch 1 to get dasher to compile with Forte.
    211 * Mon Feb 20 2006 - damien.carbery (at] sun.com
    212 - Remove upstream patch, 01-trace.
    213 * Mon Feb 13 2006 - damien.carbery (at] sun.com
    214 - Bump to 3.99.4.
    215 * Tue Jan 31 2006 - damien.carbery (at] sun.com
    216 - Bump to 3.99.3.
    217 * Tue Jan 31 2006 - damien.carbery (at] sun.com
    218 - Bump to 3.99.2.
    219 * Fri Jan 20 2006 - damien.carbery (at] sun.com
    220 - Bump to 3.99.1.
    221 * Fri Sep 30 2005 - brian.cameron (at] sun.com
    222 - Add patch 1 to get dasher to compile.  Got Trace.cpp from
    223   CVS head.  Seems to be a bug in dasher that this file isn't
    224   included in the compile, so submitted a bug to bugzilla.  
    225   I suspect Forte's stricter linking rules cause this issue
    226   on Solaris.
    227 * Thu Sep 08 2005 - damien.carbery (at] sun.com
    228 - Bump to 3.2.18.
    229 * Tue May 24 2005 - glynn.foster (at] sun.com
    230 - Initial spec
    231