enchant.spec revision 17185
10139N/A#
10139N/A# spec file for package enchant
10139N/A#
12219N/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%define owner wangke
10139N/A# bugdb: bugzilla.abisource.com
10139N/A#
10139N/A
10139N/A%define OSR 5805:1.3.0
10139N/A
10615N/AName: enchant
13300N/ALicense: LGPL v2.1
13300N/AVersion: 1.5.0
10139N/ARelease: 1
10139N/AVendor: Sun Microsystems, Inc.
10139N/ADistribution: Java Desktop System
10139N/ACopyright: GPL
13300N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10794N/ADocdir: %{_datadir}/doc
10139N/AAutoreqprov: on
10794N/AURL: http://www.abisource.com/projects/enchant/
12773N/ASource: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
12773N/A# date:2008-11-19 owner:jefftsai type:branding
12773N/APatch2: enchant-02-build-request-dict.diff
10794N/A# This patch is applied until zemberek-server is implemented.
10139N/A# date:2009-01-14 owner:fujiwara type:feature bugster:6793551
10640N/APatch3: enchant-03-zemberek-segv.diff
10139N/A# date:2009-01-14 owner:fujiwara type:feature
10640N/APatch4: enchant-04-ordering.diff
10139N/A# date:2009-08-20 owner:wangke type:branding
10820N/APatch5: enchant-05-build-ispell.diff
10139N/ASummary: Generic spell checking library
10820N/AGroup: Applications/Text
10339N/A
10820N/A%description
10535N/AEnchant is a generic spell checking library that presents an API/ABI to
10820N/Aapplications.
10861N/A
13300N/A%files
12139N/A%defattr(-, root, root)
12139N/A
10139N/A%prep
10139N/A%setup -q -n %{name}-%{version}
10139N/A%patch2 -p1
10139N/A%patch3 -p1
10139N/A%patch4 -p1
10139N/A%patch5 -p1
10139N/A
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
10139N/Alibtoolize --force
10139N/Aaclocal
10139N/Aautoconf
10139N/Aautomake -a -c -f
10139N/Aexport CFLAGS="%optflags"
10139N/Aexport CXXFLAGS="%cxx_optflags"
10139N/Aexport LDFLAGS="%{_ldflags}"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --libdir=%{_libdir} \
10139N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --mandir=%{_mandir} \
10139N/A --infodir=%{_datadir}/info \
10139N/A --localstatedir=/var \
10139N/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
10139N/A* Thu Jul 16 2009 - ke.wang@sun.com
10139N/A- Bump to 1.5.0
10139N/A- Removed upstreamed patch enchant-01-define_FILE.diff
10139N/A- Updated patch enchant-02-build-request-dict.diff
10139N/A- Updated patch enchant-03-zemberek-segv.diff
10139N/A- Added "libtoolize --force" to recreate aclocal.m4 because of version mismatch
10139N/A* Wed Jan 14 2009 - takao.fujiwara@sun.com
10139N/A- Add patch zemberek-segv.diff to avoid segv on tr_TR.UTF-8
10139N/A- Add patch ordering.diff so that we configure myspell by default.
10139N/A* Wed Nov 19 2008 - jeff.cai@sun.com
10139N/A- Add patch -02-build-request-dic to solve the build issue
10139N/A with SunStudio 12
10139N/A* Mon Nov 10 2008 - jeff.cai@sun.com
10139N/A- Remove patch -02-aspell-conversion.diff because
10139N/A it looks like not many users need to convert the local
10139N/A aspell dictionary to myspell format. We don't like to
10139N/A maintain a large Solaris only patch.
10139N/A* Fri Oct 31 2008 - jeff.cai@sun.com
10139N/A- Bump to 1.4.2
10794N/A- Remove upstream patch -02-uninstalled-pc.diff
12754N/A- Remove upstream patch -03-personaldic.diff
10139N/A- Remove unused patch -02-aspell-conversion.diff
10139N/A- Rework patch -01-define-FILE.diff
10139N/A* Fri Oct 31 2008 - jeff.cai@sun.com
11087N/A- Change the license tag.
11087N/A* Mon Jul 07 2008 - jeff.cai@sun.com
11087N/A- Move 'rm' lines to SUNgnome-spell.spec
11087N/A* Sat Apr 28 2007 - irene.huang@sun.com
11087N/A- split patch -03-personaldic.diff into two patches
10139N/A -03-personaldic.diff and -04-apsell-conversion.diff, since
10535N/A -03 has been upsteamed to community and will be removed
10820N/A when enchant is bumped to a new version.
10535N/A
10535N/A* Sat Apr 28 2007 - irene.huang@sun.com
13300N/A- change the dictionary path to /usr/share/spell/myspell
12139N/A this is the place where the dictionaries should go according
10861N/A to LASRC 2007/231, targeting build 65.
10139N/A
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
11344N/A- Initial spec.
11344N/A