From c6ac32fc2f9705cabb917ecf8b30cc47fa9b2d4c Mon Sep 17 00:00:00 2001 From: Dan Kenigsberg Date: Tue, 22 May 2007 11:28:43 +0000 Subject: [PATCH] Change hspell.spec so it produces hunspell-he. --- hspell.spec | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/hspell.spec b/hspell.spec index 82894db..b86ccf9 100644 --- a/hspell.spec +++ b/hspell.spec @@ -1,7 +1,7 @@ Summary: A Hebrew spell checker Name: hspell Version: 1.0 -Release: 6%{?dist} +Release: 7%{?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,14 @@ Library and include files for applications that want to use Hspell. %description -l he devel ספרייה וקובצי כותרת עבור יישומים שרוצים להשתמש ב-Hspell. +%package -n hunspell-he +Summary: Hebrew hunspell dictionaries +Group: Applications/Text +Requires: hunspell + +%description -n hunspell-he +Hebrew hunspell dictionaries. + %prep %setup -q sed -i -e '/^\s\+strip\s/d' Makefile.in @@ -53,10 +61,18 @@ sed -i -e 's/gzip/gzip -n/g' Makefile.in %configure --enable-fatverb --enable-linginfo make CFLAGS="$RPM_OPT_FLAGS" +export PATH=$PATH:. +make myspell + %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install +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 + %clean rm -rf %{buildroot} @@ -75,7 +91,15 @@ rm -rf %{buildroot} %{_libdir}/libhspell.a %{_mandir}/man3/hspell.3* +%files -n hunspell-he +%defattr(-,root,root,-) +%doc LICENSE +%{_datadir}/myspell/* + %changelog +* Tue May 22 2007 Dan Kenigsberg 1.0-7 +- Move the hunspell-he dictionaries into hspell package (Bug #240696). + Mostly applying Caolan McNamara's patch #155078. * Sun Feb 11 2007 Dan Kenigsberg 1.0-6 - Use gzip -n to exclude MTIME from compressed data and resolve bug #228171 * Tue Sep 11 2006 Dan Kenigsberg 1.0-5