Author: qboosh Date: Sun Nov 28 08:47:31 2010 GMT Module: packages Tag: HEAD ---- Log message: - bconds for hfst/lttoolbox backends - dirs for morphology dictionaries
---- Files affected: packages/libvoikko: libvoikko.spec (1.2 -> 1.3) ---- Diffs: ================================================================ Index: packages/libvoikko/libvoikko.spec diff -u packages/libvoikko/libvoikko.spec:1.2 packages/libvoikko/libvoikko.spec:1.3 --- packages/libvoikko/libvoikko.spec:1.2 Thu Nov 25 07:48:29 2010 +++ packages/libvoikko/libvoikko.spec Sun Nov 28 09:47:26 2010 @@ -1,5 +1,9 @@ # $Revision$, $Date$ -# TODO: hfst, lttoolbox backends +# +# Conditional build: +%bcond_with hfst # HFST morphology backend (experimental) +%bcond_with lttoolbox # lttoolbox morphology backend (experimental) +# Summary: Library for spell checking, hyphenation and grammar checking Summary(pl.UTF-8): Biblioteka do sprawdzania pisowni i gramatyki oraz przenoszenia wyrazów Name: libvoikko @@ -10,9 +14,11 @@ Source0: http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz # Source0-md5: 407c5a5ad83ef86fb76ef4502e0e8e72 URL: http://voikko.sourceforge.net/ -#BuildRequires: hfst-devel >= 2.4 +%{?with_hfst:BuildRequires: hfst-devel >= 2.4} BuildRequires: libstdc++-devel -#BuildRequires: lttoolbox-devel >= 3.1.0 +%{?with_lttoolbox:BuildRequires: lttoolbox-devel >= 3.1.0} +%{?with_lttoolbox:BuildRequires: lttoolbox-devel < 3.2.0} +%{?with_hfst:Requires: hfst >= 2.4} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -40,6 +46,8 @@ Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvoikko Group: Development/Libraries Requires: %{name} = %{version}-%{release} +%{?with_hfst:Requires: hfst-devel >= 2.4} +%{?with_lttoolbox:Requires: lttoolbox-devel >= 3.1.0} Requires: libstdc++-devel %description devel @@ -66,12 +74,14 @@ %build # NOTE: malaga compiled dictionaries are arch-dependent %configure \ + %{?with_hfst:--enable-hfst} \ + %{?with_lttoolbox:--enable-lttoolbox} \ --with-dictionary-path=%{_libdir}/voikko %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_libdir}/voikko +install -d $RPM_BUILD_ROOT%{_libdir}/voikko/2/mor-{default,standard} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT @@ -91,6 +101,9 @@ %attr(755,root,root) %{_libdir}/libvoikko.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libvoikko.so.1 %dir %{_libdir}/voikko +%dir %{_libdir}/voikko/2 +%dir %{_libdir}/voikko/2/mor-default +%dir %{_libdir}/voikko/2/mor-standard %{_mandir}/man1/voikkogc.1* %{_mandir}/man1/voikkohyphenate.1* %{_mandir}/man1/voikkospell.1* @@ -112,6 +125,10 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2010/11/28 08:47:26 qboosh +- bconds for hfst/lttoolbox backends +- dirs for morphology dictionaries + Revision 1.2 2010/11/25 06:48:29 qboosh - oops, typo: current version is 3.1 - malaga backend is internal now; two more in the way ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libvoikko/libvoikko.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
