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