Change hspell.spec so it produces hunspell-he.
This commit is contained in:
parent
ded06ff78a
commit
c6ac32fc2f
26
hspell.spec
26
hspell.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A Hebrew spell checker
|
Summary: A Hebrew spell checker
|
||||||
Name: hspell
|
Name: hspell
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
URL: http://ivrix.org.il/projects/spell-checker/
|
URL: http://ivrix.org.il/projects/spell-checker/
|
||||||
Source: http://ivrix.org.il/projects/spell-checker/hspell-%{version}.tar.gz
|
Source: http://ivrix.org.il/projects/spell-checker/hspell-%{version}.tar.gz
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -44,6 +44,14 @@ Library and include files for applications that want to use Hspell.
|
|||||||
%description -l he devel
|
%description -l he devel
|
||||||
ספרייה וקובצי כותרת עבור יישומים שרוצים להשתמש ב-Hspell.
|
ספרייה וקובצי כותרת עבור יישומים שרוצים להשתמש ב-Hspell.
|
||||||
|
|
||||||
|
%package -n hunspell-he
|
||||||
|
Summary: Hebrew hunspell dictionaries
|
||||||
|
Group: Applications/Text
|
||||||
|
Requires: hunspell
|
||||||
|
|
||||||
|
%description -n hunspell-he
|
||||||
|
Hebrew hunspell dictionaries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
sed -i -e '/^\s\+strip\s/d' Makefile.in
|
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
|
%configure --enable-fatverb --enable-linginfo
|
||||||
make CFLAGS="$RPM_OPT_FLAGS"
|
make CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
|
||||||
|
export PATH=$PATH:.
|
||||||
|
make myspell
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make DESTDIR=%{buildroot} install
|
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
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
@ -75,7 +91,15 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/libhspell.a
|
%{_libdir}/libhspell.a
|
||||||
%{_mandir}/man3/hspell.3*
|
%{_mandir}/man3/hspell.3*
|
||||||
|
|
||||||
|
%files -n hunspell-he
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE
|
||||||
|
%{_datadir}/myspell/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- 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
|
* Tue Sep 11 2006 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-5
|
||||||
|
Loading…
Reference in New Issue
Block a user