diff --git a/README.md b/README.md index 100d0aa..c079bf7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libvoikko +This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. + diff --git a/libvoikko.spec b/libvoikko.spec new file mode 100644 index 0000000..c748a9b --- /dev/null +++ b/libvoikko.spec @@ -0,0 +1,110 @@ +Name: libvoikko +Version: 3.5 +Release: 1mamba +Summary: a library for spellcheckers and hyphenators +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://voikko.sourceforge.net/ +Source: http://download.sourceforge.net/sourceforge/voikko/libvoikko-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libmalaga-devel +BuildRequires: suomi-malaga-vokkio +## AUTOBUILDREQ-END +BuildRequires: suomi-malaga-vokkio >= 1.12 +Requires: suomi-malaga-vokkio >= 1.12 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. + +%package devel +Group: Development/Libraries +Summary: Libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. +This package contains libraries and header files need for development. + +%package static +Group: Development/Libraries +Summary: Static libraries for %{name} +Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} + +%description static +This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. +This package contains static libraries need for development. + +%package tools +Group: Applications/Text +Summary: Test tools for %{name} +Requires: %{name} = %{version}-%{release} + +%description tools +This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. +This package contains tools for testing libvoikko. + +%prep + +%setup -q + +%build +# The files path must be the same where malaga-suomi-voikko is installed +%configure --with-dictionary-path=%{_libdir}/voikko +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_bindir}/voikkovfstc +%dir %{_includedir}/libvoikko +%{_includedir}/libvoikko/*.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%doc ChangeLog README + +%files static +%defattr(-,root,root) +%{_libdir}/*.a +%{_libdir}/*.la + +%files tools +%defattr(-,root,root) +%{_bindir}/voikkospell +%{_bindir}/voikkohyphenate +%{_bindir}/voikkogc +%{_mandir}/man1/voikko*.1.gz + +%changelog +* Mon Sep 03 2012 Silvan Calarco 3.5-1mamba +- update to 3.5 + +* Fri Apr 01 2011 Automatic Build System 3.2-1mamba +- automatic update by autodist + +* Sun May 30 2010 Automatic Build System 3.0-1mamba +- automatic update by autodist + +* Fri Jul 10 2009 Automatic Build System 2.1-1mamba +- automatic update by autodist + +* Mon Feb 02 2009 gil 2.0-1mamba +- package created by autospec