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