a0280bd
Name:           voikko-fi
90811ee
Version:        2.5
3559a1e
Release:        6%{?dist}
a0280bd
Summary:        A description of Finnish morphology written for libvoikko
a0280bd
82db1be
License:        GPL-2.0-or-later
a0280bd
URL:            https://voikko.puimula.org/
a0280bd
a0280bd
# See https://voikko.puimula.org/sources.html for the key fingerprint.
a0280bd
# I did
a0280bd
#  gpg --recv-keys "AC5D 65F1 0C85 96D7 E2DA  E263 3D30 9B60 4AE3 942E"
a0280bd
# and then
a0280bd
#  gpg2 --export --export-options export-minimal AC5D65F10C8596D7E2DAE2633D309B604AE3942E > gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg
a0280bd
Source0:        https://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz
a0280bd
Source1:        https://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz.asc
a0280bd
Source2:        gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg
a0280bd
a0280bd
BuildRequires:  make
a0280bd
BuildRequires:  gnupg2
a0280bd
BuildRequires:  python3-devel
a0280bd
BuildRequires:  foma
a0280bd
# Voikko 4.3 and beyond on Fedora supports this format of the data files
a0280bd
BuildRequires:  voikko-tools >= 4.3
a0280bd
a0280bd
# Installing this package without libvoikko would be useless.
a0280bd
Requires:       libvoikko >= 4.3
a0280bd
a0280bd
BuildArch:      noarch
a0280bd
a0280bd
# This package replaces malaga-suomi-voikko
a0280bd
Provides:       malaga-suomi-voikko = %{version}-%{release}
a0280bd
Obsoletes:      malaga-suomi-voikko < 1.19-20
a0280bd
a0280bd
%description
a0280bd
Voikko-fi is a description of Finnish morphology written for libvoikko.
a0280bd
The implementation uses unweighted VFST format and provides format 5 Finnish
a0280bd
dictionary for libvoikko 4.0 or later. For Voikko the morphology supports
a0280bd
spell checking, hyphenation and grammar checking.
a0280bd
a0280bd
%prep
a0280bd
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
a0280bd
%autosetup
a0280bd
a0280bd
%build
a0280bd
%make_build vvfst
a0280bd
a0280bd
%install
a0280bd
# Upstream uses /usr/lib/voikko as the data file location.
a0280bd
# Zbigniew Jędrzejewski-Szmek recommended using the upstream default on the
a0280bd
# mailing list, see
a0280bd
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/GY6NGGNLK5DIDXOXVGBDA5QONISQOFL7/
a0280bd
make vvfst-install DESTDIR=$RPM_BUILD_ROOT%{_prefix}/lib/voikko
a0280bd
a0280bd
a0280bd
%files
a0280bd
%doc ChangeLog CONTRIBUTORS README.md
a0280bd
%license COPYING
a0280bd
%{_prefix}/lib/voikko/5
a0280bd
a0280bd
%changelog
3559a1e
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-6
3559a1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3559a1e
2cfae2e
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-5
2cfae2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2cfae2e
bacf12b
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-4
bacf12b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
bacf12b
82db1be
* Wed Nov 30 2022 Mike FABIAN <mfabian@redhat.com> - 2.5-3
82db1be
- Migrate license tag to SPDX
82db1be
6027020
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
6027020
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6027020
90811ee
* Sun Feb 06 2022 Ville-Pekka Vainio <vpvainio AT iki.fi> - 2.5-1
90811ee
- New upstream release
90811ee
4f35e10
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-5
4f35e10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4f35e10
e2d8eb9
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-4
e2d8eb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e2d8eb9
a0280bd
* Sat Jan 30 2021 Ville-Pekka Vainio <vpvainio AT iki.fi> - 2.4-3
a0280bd
- More review fixes:
a0280bd
- BuildRequire python3-devel
a0280bd
a0280bd
* Sat Jan 30 2021 Ville-Pekka Vainio <vpvainio AT iki.fi> - 2.4-2
a0280bd
- Review fixes:
a0280bd
- Fix Obsoletes
a0280bd
- Use the prefix macro in the dictionary path
a0280bd
- Use the license macro
a0280bd
- Do not own the whole data directory, just the version 5 subdirectory
a0280bd
a0280bd
* Sat Jan 16 2021 Ville-Pekka Vainio <vpvainio AT iki.fi> - 2.4-1
a0280bd
- Initial package