9397
|
1 |
#
|
|
2 |
# spec file for package enchant
|
|
3 |
#
|
|
4 |
# Copyright (c) 2006 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner wangke
|
9397
|
9 |
# bugdb: bugzilla.abisource.com
|
|
10 |
#
|
|
11 |
|
16429
|
12 |
%define OSR 5805:1.3.0
|
|
13 |
|
9397
|
14 |
Name: enchant
|
14540
|
15 |
License: LGPL v2.1
|
16039
|
16 |
Version: 1.5.0
|
9397
|
17 |
Release: 1
|
|
18 |
Vendor: Sun Microsystems, Inc.
|
|
19 |
Distribution: Java Desktop System
|
|
20 |
Copyright: GPL
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
Docdir: %{_datadir}/doc
|
|
23 |
Autoreqprov: on
|
|
24 |
URL: http://www.abisource.com/projects/enchant/
|
|
25 |
Source: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
|
14621
|
26 |
# date:2008-11-19 owner:jefftsai type:branding
|
|
27 |
Patch2: enchant-02-build-request-dict.diff
|
14913
|
28 |
# This patch is applied until zemberek-server is implemented.
|
|
29 |
# date:2009-01-14 owner:fujiwara type:feature bugster:6793551
|
|
30 |
Patch3: enchant-03-zemberek-segv.diff
|
|
31 |
# date:2009-01-14 owner:fujiwara type:feature
|
|
32 |
Patch4: enchant-04-ordering.diff
|
16318
|
33 |
# date:2009-08-20 owner:wangke type:branding
|
|
34 |
Patch5: enchant-05-build-ispell.diff
|
9397
|
35 |
Summary: Generic spell checking library
|
|
36 |
Group: Applications/Text
|
|
37 |
|
|
38 |
%description
|
|
39 |
Enchant is a generic spell checking library that presents an API/ABI to
|
|
40 |
applications.
|
|
41 |
|
|
42 |
%files
|
|
43 |
%defattr(-, root, root)
|
|
44 |
|
|
45 |
%prep
|
|
46 |
%setup -q -n %{name}-%{version}
|
14621
|
47 |
%patch2 -p1
|
14913
|
48 |
%patch3 -p1
|
|
49 |
%patch4 -p1
|
16318
|
50 |
%patch5 -p1
|
9397
|
51 |
|
|
52 |
|
|
53 |
%build
|
|
54 |
%ifos linux
|
|
55 |
if [ -x /usr/bin/getconf ]; then
|
|
56 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
57 |
fi
|
|
58 |
%else
|
|
59 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
60 |
%endif
|
|
61 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
62 |
CPUS=1
|
|
63 |
fi
|
|
64 |
|
16039
|
65 |
libtoolize --force
|
14544
|
66 |
aclocal
|
9397
|
67 |
autoconf
|
9722
|
68 |
automake -a -c -f
|
16320
|
69 |
export CFLAGS="%optflags"
|
|
70 |
export CXXFLAGS="%cxx_optflags"
|
|
71 |
export LDFLAGS="%{_ldflags}"
|
9397
|
72 |
./configure \
|
|
73 |
--prefix=%{_prefix} \
|
12769
|
74 |
--libdir=%{_libdir} \
|
|
75 |
--bindir=%{_bindir} \
|
9397
|
76 |
--sysconfdir=%{_sysconfdir} \
|
|
77 |
--mandir=%{_mandir} \
|
|
78 |
--infodir=%{_datadir}/info \
|
|
79 |
--localstatedir=/var \
|
9799
|
80 |
--with-myspell-dir=/usr/share/spell/myspell \
|
9397
|
81 |
--disable-aspell \
|
|
82 |
--disable-static
|
|
83 |
|
|
84 |
make -j $CPUS
|
|
85 |
|
|
86 |
%install
|
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
88 |
|
|
89 |
%clean
|
|
90 |
rm -rf $RPM_BUILD_ROOT
|
|
91 |
|
|
92 |
%changelog
|
16039
|
93 |
* Thu Jul 16 2009 - [email protected]
|
|
94 |
- Bump to 1.5.0
|
|
95 |
- Removed upstreamed patch enchant-01-define_FILE.diff
|
|
96 |
- Updated patch enchant-02-build-request-dict.diff
|
|
97 |
- Updated patch enchant-03-zemberek-segv.diff
|
|
98 |
- Added "libtoolize --force" to recreate aclocal.m4 because of version mismatch
|
14913
|
99 |
* Wed Jan 14 2009 - [email protected]
|
|
100 |
- Add patch zemberek-segv.diff to avoid segv on tr_TR.UTF-8
|
|
101 |
- Add patch ordering.diff so that we configure myspell by default.
|
14621
|
102 |
* Wed Nov 19 2008 - [email protected]
|
|
103 |
- Add patch -02-build-request-dic to solve the build issue
|
|
104 |
with SunStudio 12
|
14573
|
105 |
* Mon Nov 10 2008 - [email protected]
|
|
106 |
- Remove patch -02-aspell-conversion.diff because
|
|
107 |
it looks like not many users need to convert the local
|
|
108 |
aspell dictionary to myspell format. We don't like to
|
|
109 |
maintain a large Solaris only patch.
|
14540
|
110 |
* Fri Oct 31 2008 - [email protected]
|
14544
|
111 |
- Bump to 1.4.2
|
|
112 |
- Remove upstream patch -02-uninstalled-pc.diff
|
|
113 |
- Remove upstream patch -03-personaldic.diff
|
14573
|
114 |
- Remove unused patch -02-aspell-conversion.diff
|
14544
|
115 |
- Rework patch -01-define-FILE.diff
|
|
116 |
* Fri Oct 31 2008 - [email protected]
|
14540
|
117 |
- Change the license tag.
|
12769
|
118 |
* Mon Jul 07 2008 - [email protected]
|
|
119 |
- Move 'rm' lines to SUNgnome-spell.spec
|
9799
|
120 |
* Sat Apr 28 2007 - [email protected]
|
9800
|
121 |
- split patch -03-personaldic.diff into two patches
|
|
122 |
-03-personaldic.diff and -04-apsell-conversion.diff, since
|
|
123 |
-03 has been upsteamed to community and will be removed
|
|
124 |
when enchant is bumped to a new version.
|
|
125 |
|
|
126 |
* Sat Apr 28 2007 - [email protected]
|
9799
|
127 |
- change the dictionary path to /usr/share/spell/myspell
|
|
128 |
this is the place where the dictionaries should go according
|
|
129 |
to LASRC 2007/231, targeting build 65.
|
|
130 |
|
9739
|
131 |
* Fri Apr 13 2007 - [email protected]
|
|
132 |
- put enchant++.h back to the package.
|
|
133 |
|
9722
|
134 |
* Tue Apr 10 2007 - [email protected]
|
9729
|
135 |
- Add patch enchant-02-personaldic.diff to enable personal dictionary support
|
|
136 |
of enchant myspell backend and conversion of aspell personal dict to myspell
|
|
137 |
format. Fixes bug 6529848 and 6529853.
|
9722
|
138 |
|
9397
|
139 |
* Wed Feb 14 2007 - [email protected]
|
|
140 |
- Make enchant use myspell instead of aspell.
|
|
141 |
- Add patch enchant-02-uninstalled-pc.diff to enable building in one spec file
|
9729
|
142 |
for gnome-spell and enchant.
|
9397
|
143 |
|
9729
|
144 |
* Mon Dec 11 2006 - [email protected]
|
|
145 |
- Remove unnecessary automake call; add autoconf and adjust aclocal calls.
|
9397
|
146 |
|
|
147 |
* Fri Dec 08 2006 - [email protected]
|
|
148 |
- Initial spec.
|