Change hspell.spec so it produces hunspell-he.

This commit is contained in:
Dan Kenigsberg 2007-05-22 11:28:43 +00:00
parent ded06ff78a
commit c6ac32fc2f

View File

@ -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 <danken@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@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@cs.technion.ac.il> 1.0-5