enchant.spec revision 18741
13826N/A#
13826N/A# spec file for package enchant
13826N/A#
13826N/A# Copyright (c) 2010 Sun Microsystems, Inc.
13826N/A# This file and all modifications and additions to the pristine
16307N/A# package are under the same license as the package itself.
13826N/A#
13826N/A%define owner wangke
13826N/A# bugdb: bugzilla.abisource.com
17185N/A#
13826N/A
13826N/A%define OSR 5805:1.3.0
13826N/A
18602N/AName: enchant
17177N/ALicense: LGPL v2.1
13826N/AVersion: 1.6.0
18688N/ARelease: 1
18688N/AVendor: AbiWord
13826N/ADistribution: Java Desktop System
18602N/ACopyright: GPL
13826N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
19067N/ADocdir: %{_datadir}/doc
13826N/AAutoreqprov: on
14530N/AURL: http://www.abisource.com/projects/enchant/
13826N/ASource: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
13826N/A# date:2008-11-19 owner:jefftsai type:branding
13826N/APatch2: enchant-02-build-request-dict.diff
13826N/A# This patch is applied until zemberek-server is implemented.
13826N/A# date:2009-01-14 owner:fujiwara type:feature bugster:6793551
16401N/APatch3: enchant-03-zemberek-segv.diff
13826N/A# date:2009-01-14 owner:fujiwara type:feature
13826N/APatch4: enchant-04-ordering.diff
13826N/A# date:2009-08-20 owner:wangke type:branding
18993N/APatch5: enchant-05-build-ispell.diff
18993N/ASummary: Generic spell checking library
18993N/AGroup: Applications/Text
16401N/A
13826N/A%description
13826N/AEnchant is a generic spell checking library that presents an API/ABI to
13826N/Aapplications.
18993N/A
16307N/A%files
13826N/A%defattr(-, root, root)
13826N/A
13826N/A%prep
13826N/A%setup -q -n %{name}-%{version}
13826N/A%patch2 -p1
13826N/A%patch3 -p1
13826N/A%patch4 -p1
13826N/A%patch5 -p1
13826N/A
13826N/A%build
13826N/A%ifos linux
13826N/Aif [ -x /usr/bin/getconf ]; then
13826N/A CPUS=`getconf _NPROCESSORS_ONLN`
13826N/Afi
13826N/A%else
13826N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13826N/A%endif
13826N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17861N/A CPUS=1
13826N/Afi
13826N/A
13826N/Alibtoolize --force
13826N/Aaclocal
13826N/Aautoconf
13826N/Aautomake -a -c -f
13826N/Aexport CFLAGS="%optflags"
13826N/Aexport CXXFLAGS="%cxx_optflags"
13826N/Aexport LDFLAGS="%{_ldflags}"
17531N/A./configure \
13826N/A --prefix=%{_prefix} \
13826N/A --libdir=%{_libdir} \
13826N/A --bindir=%{_bindir} \
13826N/A --sysconfdir=%{_sysconfdir} \
13826N/A --mandir=%{_mandir} \
13826N/A --infodir=%{_datadir}/info \
13826N/A --localstatedir=/var \
13826N/A --with-myspell-dir=/usr/share/spell/myspell \
13826N/A --disable-aspell \
13826N/A --disable-static
13826N/A
13826N/Amake -j $CPUS
13826N/A
13826N/A%install
13826N/Amake install DESTDIR=$RPM_BUILD_ROOT
17531N/A
19067N/A%clean
13826N/Arm -rf $RPM_BUILD_ROOT
13826N/A
13826N/A%changelog
13826N/A* Thu May 13 2010 - brian.cameron@oracle.com
13826N/A- Bump to 1.6.0. Remove upstream patch
13826N/A enchant-06-zemberek-dict-only-if-installed.diff.
16307N/A* Wed Nov 04 2009 - hemantha.holla@sun.com
13826N/A- Add patch -06-zemberek-dict-only-if-installed as fix for 6887232
13826N/A* Thu Jul 16 2009 - ke.wang@sun.com
16307N/A- Bump to 1.5.0.
13826N/A- Removed upstreamed patch enchant-01-define_FILE.diff.
13826N/A- Updated patch enchant-02-build-request-dict.diff.
14230N/A- Updated patch enchant-03-zemberek-segv.diff.
14230N/A- Added "libtoolize --force" to recreate aclocal.m4 because of version mismatch.
14230N/A* Wed Jan 14 2009 - takao.fujiwara@sun.com
13826N/A- Add patch zemberek-segv.diff to avoid segv on tr_TR.UTF-8.
13826N/A- Add patch ordering.diff so that we configure myspell by default.
13826N/A* Wed Nov 19 2008 - jeff.cai@sun.com
13826N/A- Add patch -02-build-request-dic to solve the build issue
13826N/A with SunStudio 12.
13826N/A* Mon Nov 10 2008 - jeff.cai@sun.com
13826N/A- Remove patch -02-aspell-conversion.diff because
13826N/A it looks like not many users need to convert the local
13826N/A aspell dictionary to myspell format. We don't like to
13826N/A maintain a large Solaris only patch.
13826N/A* Fri Oct 31 2008 - jeff.cai@sun.com
13826N/A- Bump to 1.4.2.
13826N/A- Remove upstream patch -02-uninstalled-pc.diff.
13826N/A- Remove upstream patch -03-personaldic.diff.
13826N/A- Remove unused patch -02-aspell-conversion.diff.
13826N/A- Rework patch -01-define-FILE.diff.
13826N/A* Fri Oct 31 2008 - jeff.cai@sun.com
13826N/A- Change the license tag.
13826N/A* Mon Jul 07 2008 - jeff.cai@sun.com
13826N/A- Move 'rm' lines to SUNgnome-spell.spec.
13826N/A* Sat Apr 28 2007 - irene.huang@sun.com
13826N/A- split patch -03-personaldic.diff into two patches:
17531N/A -03-personaldic.diff and -04-apsell-conversion.diff, since
17531N/A -03 has been upsteamed to community and will be removed
17531N/A when enchant is bumped to a new version.
13826N/A* Sat Apr 28 2007 - irene.huang@sun.com
13826N/A- change the dictionary path to /usr/share/spell/myspell
13826N/A this is the place where the dictionaries should go according
19067N/A to LASRC 2007/231, targeting build 65.
19067N/A* Fri Apr 13 2007 - irene.huang@sun.com
18329N/A- put enchant++.h back to the package.
18329N/A* Tue Apr 10 2007 - irene.huang@sun.com
18329N/A- Add patch enchant-02-personaldic.diff to enable personal dictionary support
18303N/A of enchant myspell backend and conversion of aspell personal dict to myspell
17955N/A format. Fixes bug 6529848 and 6529853.
17955N/A* Wed Feb 14 2007 - jeff.cai@sun.com
17955N/A- Make enchant use myspell instead of aspell.
17531N/A- Add patch enchant-02-uninstalled-pc.diff to enable building in one spec file
17531N/A for gnome-spell and enchant.
17531N/A* Mon Dec 11 2006 - damien.carbery@sun.com
17531N/A- Remove unnecessary automake call; add autoconf and adjust aclocal calls.
17531N/A* Fri Dec 08 2006 - damien.carbery@sun.com
17531N/A- Initial spec.
17531N/A