rpms/hspell/EL-5 hspell.spec,1.9,1.10
Dan Kenigsberg
danken at fedoraproject.org
Thu Oct 2 17:04:38 UTC 2008
Author: danken
Update of /cvs/extras/rpms/hspell/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3303
Modified Files:
hspell.spec
Log Message:
comment out hunspell refs; RHEL ain't got it
Index: hspell.spec
===================================================================
RCS file: /cvs/extras/rpms/hspell/EL-5/hspell.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- hspell.spec 27 Dec 2007 17:48:47 -0000 1.9
+++ hspell.spec 2 Oct 2008 17:04:08 -0000 1.10
@@ -1,7 +1,7 @@
Summary: A Hebrew spell checker
Name: hspell
Version: 1.0
-Release: 7%{?dist}
+Release: 8%{?dist}
URL: http://ivrix.org.il/projects/spell-checker/
Source: http://ivrix.org.il/projects/spell-checker/hspell-%{version}.tar.gz
License: GPL
@@ -44,6 +44,8 @@
%description -l he devel
ספר××× ×ק×××¦× ××תרת ×¢××ר ××ש×××× ×©×¨×צ×× ××שת×ש ×-Hspell.
+%define hunspell_exists 0
+%if %hunspell_exists
%package -n hunspell-he
Summary: Hebrew hunspell dictionaries
Group: Applications/Text
@@ -51,6 +53,7 @@
%description -n hunspell-he
Hebrew hunspell dictionaries.
+%endif
%prep
%setup -q
@@ -61,17 +64,21 @@
%configure --enable-fatverb --enable-linginfo
make CFLAGS="$RPM_OPT_FLAGS"
+%if %hunspell_exists
export PATH=$PATH:.
make myspell
+%endif
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
+%if %hunspell_exists
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p he.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.dic
echo -e "WORDCHARS \0340\0341\0342\0343\0344\0345\0346\0347\0350\0351\0352\0353\0354\0355\0356\0357\0360\0361\0362\0363\0364\0365\0366\0367\0370\0371\0372\042\047" >> he.aff
cp -p he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff
+%endif
%clean
rm -rf %{buildroot}
@@ -91,12 +98,16 @@
%{_libdir}/libhspell.a
%{_mandir}/man3/hspell.3*
+%if %hunspell_exists
%files -n hunspell-he
%defattr(-,root,root,-)
%doc LICENSE
%{_datadir}/myspell/*
+%endif
%changelog
+* Tue Apr 21 2008 Dan Kenigsberg <danken at cs.technion.ac.il> 1.0-8
+- drop hunspell-he since RHEL ain't got hunspell.
* Tue May 22 2007 Dan Kenigsberg <danken at cs.technion.ac.il> 1.0-7
- Move the hunspell-he dictionaries into hspell package (Bug #240696).
Mostly applying Caolan McNamara's patch #155078.
More information about the fedora-extras-commits
mailing list