Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # License (c) 2005 Sun Microsystems Inc.
      3 # This file and all modifications and additions to the pristine
      4 # package are under the same license as the package itself.
      5 #
      6 # Owner: jedy
      7 #
      8 Name:     	aspell
      9 Version: 	0.60.4
     10 Release:        356
     11 Vendor:		Sun Microsystems, Inc.
     12 Distribution:	Java Desktop System
     13 License:	LGPL
     14 BuildRoot:	%{_tmppath}/%{name}-%{version}-build
     15 Docdir:         %{_datadir}/doc
     16 Autoreqprov:	on
     17 URL:		http://www.sun.com/software/javadesktopsystem/
     18 Epoch:		2
     19 Source:		ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz
     20 # date:2004-05-27 type:bug owner:yippi
     21 Patch1:		aspell-01-forte.diff
     22 Summary:	A spelling checker.
     23 Group:		Applications/Text
     24 Obsoletes:	pspell < 0.50
     25 Obsoletes:	aspell-en-gb < 0.50
     26 Obsoletes:	aspell-en-ca < 0.50
     27 Obsoletes:	aspell-en < 0.50
     28 
     29 %description
     30 Aspell is a spelling checker designed to eventually replace Ispell.
     31 It also has support for checking (La)TeX and Html files, and run time
     32 support for other non-English languages.
     33 
     34 %files
     35 %defattr(-, root, root)
     36 %doc README TODO
     37 %{_bindir}/*
     38 %{_datadir}/*
     39 %{_libdir}/lib*.so.*
     40 %{_libdir}/aspell
     41 
     42 %package -n aspell-devel
     43 Summary:	Static libraries and header files for aspell
     44 Group:		Applications/Text
     45 Requires:	aspell => %{version}-%{release}
     46 Obsoletes:	pspell-devel < 0.50
     47 
     48 %description -n aspell-devel
     49 Aspell is a spelling checker. The aspell-devel package includes the
     50 static libraries and header files needed for Aspell development.  Note
     51 that the recommend way to use aspell is through the Pspell library.
     52 
     53 %files -n aspell-devel
     54 %defattr(-, root, root)
     55 %{_libdir}/*.so*
     56 %{_includedir}/*
     57 
     58 %prep
     59 %setup  -q -n %{name}-%{version}
     60 %patch1 -p1
     61 
     62 %build
     63 %ifos linux
     64 if [ -x /usr/bin/getconf ]; then
     65   CPUS=`getconf _NPROCESSORS_ONLN`
     66 fi
     67 %else
     68   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     69 %endif
     70 if test "x$CPUS" = "x" -o $CPUS = 0; then
     71   CPUS=1
     72 fi
     73 
     74 libtoolize --force
     75 aclocal $ACLOCAL_FLAGS
     76 autoconf
     77 automake -a -c -f
     78 
     79 %ifos solaris
     80 %define curses_options "--disable-wide-curses"
     81 %else
     82 %define curses_options ""
     83 %endif
     84 
     85 # For some reason, wide curses fails on Solaris, so disabling for now.
     86 CFLAGS="$RPM_OPT_FLAGS" ./configure \
     87     --prefix=%{_prefix} \
     88     --sysconfdir=/etc \
     89     --mandir=%{_mandir} \
     90     --infodir=%{_datadir}/info \
     91     --localstatedir=/var %{curses_options} \
     92     --enable-pkgdatadir=%{_libdir}/aspell  \
     93     --enable-pkglibdir=%{_libdir}/aspell
     94 
     95 make -j$CPUS
     96 
     97 %install
     98 make install DESTDIR=$RPM_BUILD_ROOT mkdir_p="mkdir -p"
     99 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
    100 find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
    101 rm -rf $RPM_BUILD_ROOT%{_datadir}/info
    102 
    103 %clean
    104 rm -rf $RPM_BUILD_ROOT
    105 
    106 %changelog
    107 * Thu Apr 20 2006 - halton.huo@sun.com
    108 - Change pkgdatadir and pkglibdir to %{_libdir}/aspell, request by 
    109   LSARC/2006/231.
    110 - Delete *.la and *.a in %install.
    111 * Fri Jan 27 2006 - damien.carbery@sun.com
    112 - Remove libtool hack as forte bug is fixed.
    113 * Wed Jan 25 2006 - brian.cameron@sun.com
    114 - Updated so aspell 0.60.4 now builds.  Added --disable-wide-curses when
    115   building on Solaris, since this causes build problems.
    116 * Tue Dec 20 2005 - damien.carbery@sun.com
    117 - Bump to 0.60.4.
    118 * Fri Sep 09 2005 - laca@sun.com
    119 - make it not crash when built with libtool 1.5.20
    120 * Wed Sep 07 2005 - laca@sun.com
    121 - run autoconf; remove libtool hack -- no longer needed
    122 * Fri Aug 05 2005 - laca@sun.com
    123 - simplify spec file
    124 * Fri Jan 28 2005 - takao.fujiwara@sun.com
    125 - Fix the wrong description by script failure.
    126 * Fri Jan 14 2005 - damien.carbery@sun.com
    127 - Fix 5108760: Remove Epoch macro, causing dependency problem with YaST.
    128 * Mon Aug 23 2004 - niall.power@sun.com
    129 - Add Epoch macro to requires feild of the devel package.
    130   Under rpm4 rules it won't install without it.
    131 * Fri Aug 20 2004 - damien.carbery (at] sun.com
    132 - Delete *.la in %install so they are not reported as unpackaged files.
    133 * Thu May 27 2004 - laca (at] sun.com
    134 - added patch to compile with Forte
    135 - hack libtool to work around a forte bug
    136