From fca94376a96f4636134af7527462eee86a528965 Mon Sep 17 00:00:00 2001 From: Ville-Pekka Vainio Date: Nov 08 2007 20:38:19 +0000 Subject: libvoikko to devel --- diff --git a/.cvsignore b/.cvsignore index e69de29..0c5a2d7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libvoikko-1.5.tar.gz diff --git a/libvoikko.spec b/libvoikko.spec new file mode 100644 index 0000000..91b6535 --- /dev/null +++ b/libvoikko.spec @@ -0,0 +1,92 @@ +Name: libvoikko +Version: 1.5 +Release: 1%{?dist} +Summary: Voikko is a library for spellcheckers and hyphenators + +Group: System Environment/Libraries +License: GPLv2+ +URL: http://voikko.sourceforge.net/ +Source0: http://downloads.sourceforge.net/voikko/libvoikko-1.5.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: malaga-devel malaga-suomi-voikko +Requires: malaga-suomi-voikko + +%description +This is libvoikko, library for spellcheckers and hyphenators using Malaga +natural language grammar development tool. The library is written in C. + +Currently only Finnish is supported, but the API of the library has been +designed to allow adding support for other languages later. Note however that +Malaga is rather low level tool that requires implementing the whole morphology +of a language as a left associative grammar. Therefore languages that have +simple or even moderately complex morphologies and do not require morphological +analysis in their hyphenators should be implemented using other tools such as +Hunspell. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + + +%build +# The dictionary path must be the same where malaga-suomi-voikko is installed +%configure --with-dictionary-path=%{_libdir}/voikko +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +# Remove static archive +find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING README +%{_libdir}/*.so.* +%{_bindir}/voikkospell +%{_bindir}/voikkohyphenate +%{_mandir}/man1/voikkohyphenate.1.gz +%{_mandir}/man1/voikkospell.1.gz + +%files devel +%defattr(-,root,root,-) +%doc +%{_includedir}/* +%{_libdir}/*.so + +%changelog +* Thu Nov 08 2007 - Ville-Pekka Vainio 1.5-1 +- Bump Release for the first Fedora build + +* Wed Nov 07 2007 - Ville-Pekka Vainio 1.5-0.3 +- libvoikko-devel: remove unneeded Requires: malaga-devel +- install with -p so that timestamps are preserved + +* Wed Nov 07 2007 - Ville-Pekka Vainio 1.5-0.2 +- Requires only malaga-suomi-voikko, BR malaga-devel and malaga-suomi-voikko +- Remove static archive + +* Wed Oct 24 2007 - Ville-Pekka Vainio 1.5-0.1 +- Initial package diff --git a/sources b/sources index e69de29..324301e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c5a00065edb88b776083c99c8af6b3b9 libvoikko-1.5.tar.gz