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