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