diff --git a/.gitignore b/.gitignore index e69de29..5f8c6e9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/voikko-fi-2.4.tar.gz +/voikko-fi-2.4.tar.gz.asc diff --git a/README.md b/README.md new file mode 100644 index 0000000..0d2c8e6 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# voikko-fi + +The voikko-fi package diff --git a/gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg b/gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg new file mode 100644 index 0000000..90dbb21 Binary files /dev/null and b/gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg differ diff --git a/sources b/sources new file mode 100644 index 0000000..859339f --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (voikko-fi-2.4.tar.gz) = 00098fd52d4f81b30fe7f0ecb97ee8f240d898dfd511da1fdc5e6fd7046f2bf94c0230dc733bc6034f178d56d26c3ee69965eb61c04fc7b30087131767701858 +SHA512 (voikko-fi-2.4.tar.gz.asc) = bb68fe81c0d8cea206b93484d94d5bfc9a9272827616f3ce8016721027a736b190ae37679baed70df0350c3f84235fdb3d6a525d93123ff561ef6d83b7717562 diff --git a/voikko-fi.spec b/voikko-fi.spec new file mode 100644 index 0000000..c3ac0c0 --- /dev/null +++ b/voikko-fi.spec @@ -0,0 +1,73 @@ +Name: voikko-fi +Version: 2.4 +Release: 3%{?dist} +Summary: A description of Finnish morphology written for libvoikko + +License: GPLv2+ +URL: https://voikko.puimula.org/ + +# See https://voikko.puimula.org/sources.html for the key fingerprint. +# I did +# gpg --recv-keys "AC5D 65F1 0C85 96D7 E2DA E263 3D30 9B60 4AE3 942E" +# and then +# gpg2 --export --export-options export-minimal AC5D65F10C8596D7E2DAE2633D309B604AE3942E > gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg +Source0: https://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz +Source1: https://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz.asc +Source2: gpgkey-AC5D65F10C8596D7E2DAE2633D309B604AE3942E.gpg + +BuildRequires: make +BuildRequires: gnupg2 +BuildRequires: python3-devel +BuildRequires: foma +# Voikko 4.3 and beyond on Fedora supports this format of the data files +BuildRequires: voikko-tools >= 4.3 + +# Installing this package without libvoikko would be useless. +Requires: libvoikko >= 4.3 + +BuildArch: noarch + +# This package replaces malaga-suomi-voikko +Provides: malaga-suomi-voikko = %{version}-%{release} +Obsoletes: malaga-suomi-voikko < 1.19-20 + +%description +Voikko-fi is a description of Finnish morphology written for libvoikko. +The implementation uses unweighted VFST format and provides format 5 Finnish +dictionary for libvoikko 4.0 or later. For Voikko the morphology supports +spell checking, hyphenation and grammar checking. + +%prep +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%autosetup + +%build +%make_build vvfst + +%install +# Upstream uses /usr/lib/voikko as the data file location. +# Zbigniew Jędrzejewski-Szmek recommended using the upstream default on the +# mailing list, see +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/GY6NGGNLK5DIDXOXVGBDA5QONISQOFL7/ +make vvfst-install DESTDIR=$RPM_BUILD_ROOT%{_prefix}/lib/voikko + + +%files +%doc ChangeLog CONTRIBUTORS README.md +%license COPYING +%{_prefix}/lib/voikko/5 + +%changelog +* Sat Jan 30 2021 Ville-Pekka Vainio - 2.4-3 +- More review fixes: +- BuildRequire python3-devel + +* Sat Jan 30 2021 Ville-Pekka Vainio - 2.4-2 +- Review fixes: +- Fix Obsoletes +- Use the prefix macro in the dictionary path +- Use the license macro +- Do not own the whole data directory, just the version 5 subdirectory + +* Sat Jan 16 2021 Ville-Pekka Vainio - 2.4-1 +- Initial package