enchant.spec revision 10541
15389N/A#
15389N/A# spec file for package enchant
15389N/A#
15389N/A# Copyright (c) 2006 Sun Microsystems, Inc.
15389N/A# This file and all modifications and additions to the pristine
15389N/A# package are under the same license as the package itself.
15389N/A#
15389N/A# Owner: dcarbery
15389N/A# bugdb: bugzilla.abisource.com
15389N/A#
15389N/A
15389N/AName: enchant
15389N/ALicense: LGPL
15389N/AVersion: 1.3.0
15389N/ARelease: 1
15389N/AVendor: Sun Microsystems, Inc.
15389N/ADistribution: Java Desktop System
15389N/ACopyright: GPL
15389N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15389N/ADocdir: %{_datadir}/doc
15389N/AAutoreqprov: on
15389N/AURL: http://www.abisource.com/projects/enchant/
15389N/ASource: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
15389N/A# date:2006-12-08 bugzilla:10667 owner:dcarbery type:bug
15389N/APatch1: enchant-01-define_FILE.diff
15389N/A# date:2007-02-14 owner:jefftsai type:branding bugzilla:10843
15389N/APatch2: enchant-02-uninstalled-pc.diff
15389N/A# date:2007-04-10 owner:sh162551 type:feature bugzilla:10939
15389N/APatch3: enchant-03-personaldic.diff
15389N/ASummary: Generic spell checking library
15389N/AGroup: Applications/Text
15389N/A
15389N/A%description
15389N/AEnchant is a generic spell checking library that presents an API/ABI to
15389N/Aapplications.
15389N/A
15389N/A%files
15389N/A%defattr(-, root, root)
15389N/A
15389N/A%prep
15389N/A%setup -q -n %{name}-%{version}
15389N/A%patch1 -p1
15389N/A%patch2 -p1
15389N/A%patch3 -p1
15389N/A
15389N/A
15389N/A%build
15389N/A%ifos linux
15389N/Aif [ -x /usr/bin/getconf ]; then
15389N/A CPUS=`getconf _NPROCESSORS_ONLN`
15389N/Afi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
aclocal -I ac-helpers $ACLOCAL_FLAGS
autoconf
automake -a -c -f
./configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--infodir=%{_datadir}/info \
--localstatedir=/var \
--with-myspell-dir=/usr/share/spell/myspell \
--disable-aspell \
--disable-static
make -j $CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/*.la
rm $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Sat Apr 28 2007 - irene.huang@sun.com
- change the dictionary path to /usr/share/spell/myspell
this is the place where the dictionaries should go according
to LASRC 2007/231, targeting build 65.
* Fri Apr 13 2007 - irene.huang@sun.com
- put enchant++.h back to the package.
* Tue Apr 10 2007 - irene.huang@sun.com
- Add patch enchant-02-personaldic.diff to enable personal dictionary support
of enchant myspell backend and conversion of aspell personal dict to myspell
format. Fixes bug 6529848 and 6529853.
* Wed Feb 14 2007 - jeff.cai@sun.com
- Make enchant use myspell instead of aspell.
- Add patch enchant-02-uninstalled-pc.diff to enable building in one spec file
for gnome-spell and enchant.
* Mon Dec 11 2006 - damien.carbery@sun.com
- Remove unnecessary automake call; add autoconf and adjust aclocal calls.
* Fri Dec 08 2006 - damien.carbery@sun.com
- Initial spec.