rpms/hspell/devel hspell.spec,1.9,1.10

Dan Kenigsberg (danken) fedora-extras-commits at redhat.com
Tue May 22 11:29:18 UTC 2007


Author: danken

Update of /cvs/extras/rpms/hspell/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20489

Modified Files:
	hspell.spec 
Log Message:
Change hspell.spec so it produces hunspell-he.



Index: hspell.spec
===================================================================
RCS file: /cvs/extras/rpms/hspell/devel/hspell.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- hspell.spec	11 Feb 2007 16:01:06 -0000	1.9
+++ hspell.spec	22 May 2007 11:28:43 -0000	1.10
@@ -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 @@
 %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 @@
 %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 @@
 %{_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 <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.
 * Sun Feb 11 2007 Dan Kenigsberg <danken at cs.technion.ac.il> 1.0-6
 - Use gzip -n to exclude MTIME from compressed data and resolve bug #228171
 * Tue Sep 11 2006 Dan Kenigsberg <danken at cs.technion.ac.il> 1.0-5




More information about the fedora-extras-commits mailing list