10139N/A#
10139N/A# spec file for package enchant
10139N/A#
18741N/A# Copyright (c) 2010 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#
17185N/A%define owner wangke
10139N/A# bugdb: bugzilla.abisource.com
10139N/A#
10139N/A
17180N/A%define OSR 5805:1.3.0
17180N/A
10139N/AName: enchant
15291N/ALicense: LGPL v2.1
18741N/AVersion: 1.6.0
10139N/ARelease: 1
18615N/AVendor: AbiWord
10139N/ADistribution: Java Desktop System
10139N/ACopyright: GPL
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_datadir}/doc
10139N/AAutoreqprov: on
10139N/AURL: http://www.abisource.com/projects/enchant/
10139N/ASource: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
15372N/A# date:2008-11-19 owner:jefftsai type:branding
15372N/APatch2: enchant-02-build-request-dict.diff
15664N/A# This patch is applied until zemberek-server is implemented.
15664N/A# date:2009-01-14 owner:fujiwara type:feature bugster:6793551
15664N/APatch3: enchant-03-zemberek-segv.diff
15664N/A# date:2009-01-14 owner:fujiwara type:feature
15664N/APatch4: enchant-04-ordering.diff
17069N/A# date:2009-08-20 owner:wangke type:branding
17069N/APatch5: enchant-05-build-ispell.diff
10139N/ASummary: Generic spell checking library
10139N/AGroup: Applications/Text
10139N/A
10139N/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
10139N/A%prep
10139N/A%setup -q -n %{name}-%{version}
15372N/A%patch2 -p1
15664N/A%patch3 -p1
15664N/A%patch4 -p1
17069N/A%patch5 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/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
16790N/Alibtoolize --force
17592N/Aaclocal
10139N/Aautoconf
10464N/Aautomake -a -c -f
17071N/Aexport CFLAGS="%optflags"
17592N/Aexport CXXFLAGS="%cxx_optflags"
17592N/Aexport LDFLAGS="%{_ldflags}"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
13511N/A --libdir=%{_libdir} \
13511N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --mandir=%{_mandir} \
10139N/A --infodir=%{_datadir}/info \
10139N/A --localstatedir=/var \
10541N/A --with-myspell-dir=/usr/share/spell/myspell \
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/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%changelog
18741N/A* Thu May 13 2010 - brian.cameron@oracle.com
18741N/A- Bump to 1.6.0. Remove upstream patch
18741N/A enchant-06-zemberek-dict-only-if-installed.diff.
17656N/A* Wed Nov 04 2009 - hemantha.holla@sun.com
17656N/A- Add patch -06-zemberek-dict-only-if-installed as fix for 6887232
16790N/A* Thu Jul 16 2009 - ke.wang@sun.com
18741N/A- Bump to 1.5.0.
18741N/A- Removed upstreamed patch enchant-01-define_FILE.diff.
18741N/A- Updated patch enchant-02-build-request-dict.diff.
18741N/A- Updated patch enchant-03-zemberek-segv.diff.
18741N/A- Added "libtoolize --force" to recreate aclocal.m4 because of version mismatch.
15664N/A* Wed Jan 14 2009 - takao.fujiwara@sun.com
18741N/A- Add patch zemberek-segv.diff to avoid segv on tr_TR.UTF-8.
15664N/A- Add patch ordering.diff so that we configure myspell by default.
15372N/A* Wed Nov 19 2008 - jeff.cai@sun.com
15372N/A- Add patch -02-build-request-dic to solve the build issue
18741N/A with SunStudio 12.
15324N/A* Mon Nov 10 2008 - jeff.cai@sun.com
15324N/A- Remove patch -02-aspell-conversion.diff because
15324N/A it looks like not many users need to convert the local
15324N/A aspell dictionary to myspell format. We don't like to
15324N/A maintain a large Solaris only patch.
15291N/A* Fri Oct 31 2008 - jeff.cai@sun.com
18741N/A- Bump to 1.4.2.
18741N/A- Remove upstream patch -02-uninstalled-pc.diff.
18741N/A- Remove upstream patch -03-personaldic.diff.
18741N/A- Remove unused patch -02-aspell-conversion.diff.
18741N/A- Rework patch -01-define-FILE.diff.
15295N/A* Fri Oct 31 2008 - jeff.cai@sun.com
15291N/A- Change the license tag.
13511N/A* Mon Jul 07 2008 - jeff.cai@sun.com
18741N/A- Move 'rm' lines to SUNgnome-spell.spec.
10541N/A* Sat Apr 28 2007 - irene.huang@sun.com
18741N/A- split patch -03-personaldic.diff into two patches:
10542N/A -03-personaldic.diff and -04-apsell-conversion.diff, since
10542N/A -03 has been upsteamed to community and will be removed
10542N/A when enchant is bumped to a new version.
10542N/A* Sat Apr 28 2007 - irene.huang@sun.com
10541N/A- change the dictionary path to /usr/share/spell/myspell
10541N/A this is the place where the dictionaries should go according
10541N/A to LASRC 2007/231, targeting build 65.
10481N/A* Fri Apr 13 2007 - irene.huang@sun.com
10481N/A- put enchant++.h back to the package.
10464N/A* Tue Apr 10 2007 - irene.huang@sun.com
10471N/A- Add patch enchant-02-personaldic.diff to enable personal dictionary support
10471N/A of enchant myspell backend and conversion of aspell personal dict to myspell
10471N/A format. Fixes bug 6529848 and 6529853.
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
10471N/A for gnome-spell and enchant.
10471N/A* Mon Dec 11 2006 - damien.carbery@sun.com
10471N/A- Remove unnecessary automake call; add autoconf and adjust aclocal calls.
10139N/A* Fri Dec 08 2006 - damien.carbery@sun.com
10139N/A- Initial spec.