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