diff --git a/.cvsignore b/.cvsignore index e69de29..6e785bf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +hunspell-1.1.4.tar.gz diff --git a/hunspell.spec b/hunspell.spec new file mode 100644 index 0000000..a332bcb --- /dev/null +++ b/hunspell.spec @@ -0,0 +1,81 @@ +Name: hunspell +Summary: Hunspell is a spell checker and morphological analyzer library +Version: 1.1.4 +Release: 1%{?dist} +Source: %{name}-%{version}.tar.gz +Group: System Environment/Libraries +URL: http://hunspell.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +License: LGPL +BuildRequires: libtool, gzip +Patch0: hunspell-1.1.4-sharedlibs.patch + +%description +Hunspell is a spell checker and morphological analyzer library and program +designed for languages with rich morphology and complex word compounding or +character encoding. Hunspell interfaces: Ispell-like terminal interface using +Curses library, Ispell pipe interface, OpenOffice.org UNO module. + +%package devel +Requires: hunspell = %{PACKAGE_VERSION} +Summary: Files for developing with hunspell +Group: Development/Libraries + +%description devel +Includes and definitions for developing with hunspell + +%prep +%setup -q +%patch0 -p1 -b .sharedlibs.patch + +%build +libtoolize --automake --force +aclocal -I m4 +autoconf +automake +%configure +for i in man/*.? man/hu/*.?; do + iconv -f ISO-8859-2 -t UTF-8 $i > $i.new + mv -f $i.new $i +done +make + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall +%find_lang %{name} +rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT/%{_bindir}/example +mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%doc README README.myspell COPYING COPYING.LGPL COPYING.MPL AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS +%{_libdir}/*.so.* +%{_datadir}/myspell +%{_bindir}/hunmorph +%{_bindir}/hunspell +%{_bindir}/hunstem +%{_mandir}/man1/hunspell.1.gz +%{_mandir}/man4/hunspell.4.gz +%{_mandir}/*/man1/hunspell.1.gz +%{_mandir}/*/man4/hunspell.4.gz + +%files devel +%defattr(-,root,root) +%{_includedir}/%{name} +%{_libdir}/*.so +%{_libdir}/*.a +%{_bindir}/munch +%{_bindir}/unmunch + +%changelog +* Wed Oct 25 2006 Caolan McNamara - 1.1.4-1 +- initial version diff --git a/sources b/sources index e69de29..5ce2027 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4cf2dfb89dd58392ad5a1183c69eb628 hunspell-1.1.4.tar.gz