a66723
Name:           libvoikko
a66723
Version:        3.6
a66723
Release:        5%{?dist}
a66723
Summary:        Voikko is a library for spellcheckers and hyphenators
a66723
a66723
Group:          System Environment/Libraries
a66723
License:        GPLv2+
a66723
URL:            http://voikko.sourceforge.net/
a66723
# The usual format of stable release URLs
a66723
Source0:        http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz
a66723
# The usual format of test release URLs
a66723
#Source0:        http://www.puimula.org/htp/testing/%%{name}-%%{version}rc1.tar.gz
a66723
a66723
BuildRequires:  python2-devel
a66723
# Require the Finnish morphology because Finnish is currently the only language
a66723
# supported by libvoikko in Fedora.
a66723
Requires:       malaga-suomi-voikko
a66723
a66723
%description
a66723
This is libvoikko, library for spellcheckers and hyphenators using Malaga
a66723
natural language grammar development tool. The library is written in C.
a66723
a66723
Currently only Finnish is supported, but the API of the library has been
a66723
designed to allow adding support for other languages later. Note however that
a66723
Malaga is rather low level tool that requires implementing the whole morphology
a66723
of a language as a left associative grammar. Therefore languages that have
a66723
simple or even moderately complex morphologies and do not require morphological
a66723
analysis in their hyphenators should be implemented using other tools such as
a66723
Hunspell.
a66723
a66723
%package        devel
a66723
Summary:        Development files for %{name}
a66723
Group:          Development/Libraries
a66723
Requires:       %{name}%{?_isa} = %{version}-%{release}
a66723
Requires:       pkgconfig
a66723
a66723
%description    devel
a66723
The %{name}-devel package contains libraries and header files for
a66723
developing applications that use %{name}.
a66723
a66723
%package -n     voikko-tools
a66723
Summary:        Test tools for %{name}
a66723
Group:          Applications/Text
a66723
Requires:       %{name}%{?_isa} = %{version}-%{release}
a66723
a66723
%description -n voikko-tools
a66723
This package contains voikkospell and voikkohyphenate, small command line
a66723
tools for testing libvoikko. These tools may also be useful for shell
a66723
scripts.
a66723
a66723
%package -n     python-libvoikko
a66723
Summary:        Python interface to %{name}
a66723
Group:          Development/Libraries
a66723
Requires:       %{name} = %{version}-%{release}
a66723
# Note: noarch subpackage, only works in Fedora >= 11
a66723
BuildArch:      noarch
a66723
a66723
%description -n python-libvoikko
a66723
Python interface to libvoikko, library of Finnish language tools.
a66723
This module can be used to perform various natural language analysis
a66723
tasks on Finnish text.
a66723
a66723
a66723
%prep
a66723
%setup -q
a66723
a66723
a66723
%build
a66723
# The dictionary path must be the same where malaga-suomi-voikko is installed
a66723
%configure --with-dictionary-path=%{_libdir}/voikko
a66723
# Remove rpath,
a66723
# https://fedoraproject.org/wiki/Packaging/Guidelines#Removing_Rpath
a66723
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
a66723
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
a66723
make %{?_smp_mflags}
a66723
a66723
a66723
%install
a66723
make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
a66723
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
a66723
# Remove static archive
a66723
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
a66723
# Install the Python interface
a66723
install -d $RPM_BUILD_ROOT%{python_sitelib}
a66723
install -pm 0644 python/libvoikko.py $RPM_BUILD_ROOT%{python_sitelib}/
a66723
a66723
a66723
%post -p /sbin/ldconfig
a66723
a66723
%postun -p /sbin/ldconfig
a66723
a66723
a66723
%files
a66723
%doc ChangeLog COPYING README
a66723
%{_libdir}/*.so.*
a66723
a66723
%files -n voikko-tools
a66723
%{_bindir}/voikkospell
a66723
%{_bindir}/voikkohyphenate
a66723
%{_bindir}/voikkogc
a66723
%{_bindir}/voikkovfstc
a66723
%{_mandir}/man1/voikkohyphenate.1.gz
a66723
%{_mandir}/man1/voikkospell.1.gz
a66723
%{_mandir}/man1/voikkogc.1.gz
a66723
%{_mandir}/man1/voikkovfstc.1.gz
a66723
a66723
%files devel
a66723
%{_includedir}/*
a66723
%{_libdir}/*.so
a66723
%{_libdir}/pkgconfig/libvoikko.pc
a66723
a66723
%files -n python-libvoikko
a66723
%{python_sitelib}/%{name}.py*
a66723
a66723
%changelog
a66723
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.6-5
a66723
- Mass rebuild 2014-01-24
a66723
a66723
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.6-4
a66723
- Mass rebuild 2013-12-27
a66723
a66723
* Mon Jul 29 2013 Parag <paragn AT fedoraproject DOT org> - 3.6-2
a66723
- Ah don't add %%{?_isa} for noarch packages
a66723
a66723
* Mon Jul 29 2013 Parag <paragn AT fedoraproject DOT org> - 3.6-2
a66723
- Fix spec file to follow packaging guidelines
a66723
a66723
* Sun Apr 14 2013 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.6-1
a66723
- New upstream release
a66723
a66723
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-3
a66723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a66723
a66723
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-2
a66723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a66723
a66723
* Sun Jul 01 2012 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.5-1
a66723
- New upstream release
a66723
a66723
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-2
a66723
- Rebuilt for c++ ABI breakage
a66723
a66723
* Sat Feb 04 2012 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.4.1-1
a66723
- New upstream release, fixes build with GCC 4.7
a66723
a66723
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-2
a66723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a66723
a66723
* Tue Dec 27 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.4-1
a66723
- Update to the latest upstream release:
a66723
- A crash bug affecting grammar checker has been fixed.
a66723
- New grammar checker rule for missing verbs has been added.
a66723
a66723
* Sun Sep 25 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.3.1-0.3.rc1
a66723
- Remove the isa macro from the malaga-suomi-voikko dependency,
a66723
  malaga-suomi-voikko is not a library and is thus not multilib'd. The previous
a66723
  change was a misunderstanding.
a66723
a66723
* Sat Sep 24 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.3.1-0.2.rc1
a66723
- Add the isa macro to the malaga-suomi-voikko dependency and drop the version.
a66723
a66723
* Sat Sep 24 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.3.1-0.1.rc1
a66723
- New upstream release candidate, fixes a bug which crashed Firefox when
a66723
  using Finnish spell checking.
a66723
a66723
* Fri Sep 16 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.3-1
a66723
- New upstream release
a66723
a66723
* Sun Jun 12 2011 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.2.1-1
a66723
- New upstream release
a66723
- Fixes handling of embedded null characters in input strings entered through
a66723
  Python or Java interfaces.
a66723
a66723
* Fri Mar 25 2011 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.2-1
a66723
- New upstream release
a66723
a66723
* Tue Feb 15 2011 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-3
a66723
- Add patch to fix build with GCC 4.6
a66723
a66723
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
a66723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a66723
a66723
* Mon Nov 22 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-1
a66723
- New upstream release
a66723
- Remove the unneeded %%clean section, not needed in Fedora >= 13
a66723
a66723
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.0-2
a66723
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a66723
a66723
* Thu May 27 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-1
a66723
- 3.0 final
a66723
a66723
* Thu May 13 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-0.1.rc1
a66723
- New upstream release candidate with multithread support
a66723
- Remove unneeded BuildRoot tag
a66723
a66723
* Thu Feb 18 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.3.1-1
a66723
- Version 2.3.1 contains fixes for bugs found in version 2.3
a66723
a66723
* Sun Jan 31 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.3-0.1.rc1
a66723
- New release candidate
a66723
- Dependency on glib has been removed
a66723
a66723
* Wed Nov 11 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2.2-1
a66723
- Version 2.2.2 fixes a crash found in version 2.2.1 that can occur when the
a66723
  APIs that use wchar_t strings as arguments are used.
a66723
a66723
* Mon Oct 26 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2.1-2
a66723
- Add Python interface (package python-libvoikko, noarch)
a66723
a66723
* Fri Oct 09 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2.1-1
a66723
- New upstream release, fixes bugs found in 2.2
a66723
a66723
* Fri Sep 18 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.3.rc2
a66723
- 2.2rc2
a66723
- Remove getcwd() value check patch, accepted upstream
a66723
a66723
* Wed Sep 16 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.2.rc1
a66723
- Remove rpath which was set for the voikko-tools binaries in 64 bit
a66723
  architechtures
a66723
a66723
* Tue Sep 15 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.1.rc1
a66723
- New release candidate
a66723
- Improvements to spelling suggestions, grammar checker etc.
a66723
- Libvoikko now uses its own internal implementation of malaga.
a66723
- This prevents symbol conflicts such as https://bugzilla.redhat.com/502546
a66723
- BuildRequires malaga removed and glib2-devel added.
a66723
- Require malaga-suomi-voikko >= 1.4, libvoikko 2.2 expects the newer
a66723
  dictionary format
a66723
- Add a patch to make it compile on Fedora with -Werror
a66723
a66723
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
a66723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a66723
a66723
* Sat May 2 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-1
a66723
- 2.1 final, including fixes to grammar checking
a66723
a66723
* Fri Apr 17 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.5.rc4
a66723
- 2.1rc4:
a66723
  - Fix invalid use of delete vs. delete[]
a66723
  - Limit the scope of some variables
a66723
a66723
* Mon Apr 13 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.4.rc3
a66723
- 2.1rc3, remove patch
a66723
a66723
* Sat Apr 11 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.3.rc2
a66723
- Patch to current SVN HEAD, includes a fix for a memory leak in the grammar
a66723
  checker
a66723
a66723
* Mon Apr 6 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.2.rc2
a66723
- New release candidate
a66723
- Both patches applied upstream
a66723
a66723
* Mon Apr 6 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.1.rc1
a66723
- New release candidate
a66723
- Improvements on grammar checking and dictionary loading
a66723
- Raise malaga-suomi-voikko dependency to 1.3-10, which has the new dictionary
a66723
  data directory layout needed by this version of libvoikko
a66723
- Add BuildRequires python for running the trie compiler during build
a66723
- Add patch for GCC 4.4 and glibc 2.90 compliance
a66723
- Add patch to fix warn_unused_result errors
a66723
a66723
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
a66723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a66723
a66723
* Thu Aug 28 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.0-1
a66723
- libvoikko 2.0
a66723
a66723
* Sat Aug 23 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.0-0.1.rc1
a66723
- New release candidate, including the new voikkogc tool in voikko-tools
a66723
- Add defattr to voikko-tools
a66723
- Drop upstreamed pkg-config patch
a66723
a66723
* Fri May 30 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.7-3
a66723
- Add Requires pkgconfig to -devel
a66723
a66723
* Mon May 26 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.7-2
a66723
- Add patch which makes a libvoikko.pc file for pkg-config
a66723
a66723
* Sat May 24 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.7-1
a66723
- libvoikko 1.7
a66723
a66723
* Thu May 22 2008 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.7-0.2.rc2
a66723
- Don't BuildRequire the Finnish data files, this should make Koji builds a bit
a66723
  quicker
a66723
a66723
* Sun May 11 2008 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.7-0.1.rc2
a66723
- New release candidate
a66723
a66723
* Sun Mar 02 2008 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-3
a66723
- Put voikkospell and voikkohyphenate into a separate voikko-tools
a66723
  subpackage to decrease the size of the binary libvoikko package
a66723
a66723
* Sat Feb 16 2008 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-2
a66723
- Rebuild for GCC 4.3
a66723
a66723
* Tue Dec 04 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-1
a66723
- libvoikko 1.6
a66723
- Add versioned BuildRequires and Requires as per the Voikko release notes
a66723
  at http://voikko.sourceforge.net/releases.html
a66723
a66723
* Mon Dec 03 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-0.4.rc4
a66723
- Upstream released a new release candidate
a66723
a66723
* Wed Nov 28 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-0.3.rc3
a66723
- Upstream released a new release candidate
a66723
a66723
* Wed Nov 28 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-0.2.rc2
a66723
- Upstream released a new release candidate
a66723
a66723
* Tue Nov 27 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.6-0.1.rc1
a66723
- Upstream released a new release candidate
a66723
a66723
* Thu Nov 08 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.5-1
a66723
- Bump Release for the first Fedora build
a66723
a66723
* Wed Nov 07 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.5-0.3
a66723
- libvoikko-devel: remove unneeded Requires: malaga-devel
a66723
- install with -p so that timestamps are preserved
a66723
a66723
* Wed Nov 07 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.5-0.2
a66723
- Requires only malaga-suomi-voikko, BR malaga-devel and malaga-suomi-voikko
a66723
- Remove static archive
a66723
a66723
* Wed Oct 24 2007 - Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 1.5-0.1
a66723
- Initial package