%if 0%{?rhel} && 0%{?rhel} > 9 %bcond_with mythes %else %bcond_without mythes %endif Name: openoffice-lv Summary: Latvian linguistic dictionaries Version: 1.4.0 Release: 9%{?dist} Source: http://dict.dv.lv/download/lv_LV-%{version}.oxt URL: http://dict.dv.lv/ License: LGPL-2.1-or-later BuildArch: noarch %description Latvian linguistic dictionaries. %package -n hunspell-lv Summary: Latvian hunspell dictionaries Requires: hunspell %description -n hunspell-lv Latvian hunspell dictionaries. %package -n hyphen-lv Summary: Latvian hyphenation rules Requires: hyphen %description -n hyphen-lv Latvian hyphenation rules. %if %{with mythes} %package -n mythes-lv Summary: Latvian thesaurus Requires: mythes %description -n mythes-lv Latvian thesaurus. %endif %prep %autosetup -c %build for i in README_lv_LV.txt README_hyph_lv_LV.txt; do if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then iconv -f ISO-8859-4 -t UTF-8 $i > $i.new touch -r $i $i.new mv -f $i.new $i fi tr -d '\r' < $i > $i.new touch -r $i $i.new mv -f $i.new $i done %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hunspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen cp -p lv_LV.dic lv_LV.aff $RPM_BUILD_ROOT/%{_datadir}/hunspell cp -p hyph_lv_LV.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen %if %{with mythes} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes cp -p th_lv_LV_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes %endif %files -n hunspell-lv %doc README_lv_LV.txt %license license.txt %{_datadir}/hunspell/* %files -n hyphen-lv %doc README_hyph_lv_LV.txt %license license.txt %{_datadir}/hyphen/* %if %{with mythes} %files -n mythes-lv %doc package-description.txt %license license.txt %{_datadir}/mythes/* %endif %changelog * Mon Jun 24 2024 Troy Dawson - 1.4.0-9 - Bump release for June 2024 mass rebuild * Mon Apr 15 2024 Parag Nemade - 1.4.0-8 - Resolves: RHEL-32831 - The mythes package is not present in RHEL10 * Thu Jan 25 2024 Fedora Release Engineering - 1.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Feb 24 2023 Caolán McNamara - 1.4.0-4 - migrated to SPDX license * Thu Jan 19 2023 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 29 2022 Parag Nemade - 1.4.0-1 - Update to 1.4.0 release - Update hunspell dictionary directory path https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change - Added CI tests * Thu Jan 20 2022 Fedora Release Engineering - 1.0.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.0.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.0.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.0.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Parag Nemade - 1.0.0-7 - Update to current Fedora packaging guidelines - Dropped Group and defattr tag - Added license tag * Thu Feb 08 2018 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Sep 19 2014 Caolán McNamara - 1.0.0-1 - latest version * Sat Jun 07 2014 Fedora Release Engineering - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Jul 25 2013 Caolán McNamara - 0.9.6-1 - latest version * Thu Feb 14 2013 Fedora Release Engineering - 0.9.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.9.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.9.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Mar 18 2011 Caolán McNamara - 0.9.4-1 - latest version * Tue Feb 08 2011 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Sep 05 2010 Caolán McNamara - 0.9.3-1 - latest version * Tue Aug 17 2010 Caolán McNamara - 0.9.2-1 - latest version * Thu Jul 08 2010 Caolán McNamara - 0.9.1-2 - add licence.txt to all subpackages * Sun Apr 25 2010 Caolán McNamara - 0.9.1-1 - latest version * Mon Apr 19 2010 Caolán McNamara - 0.9.0-1 - latest version * Sun Apr 04 2010 Caolán McNamara - 0.8.2-2 - mythes now owns /usr/share/mythes * Sat Sep 19 2009 Caolán McNamara - 0.8.2-1 - latest version * Sat Jul 25 2009 Fedora Release Engineering - 0.8-0.3.b1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Jul 11 2009 Caolán McNamara - 0.8-0.2.b1 - tidy spec * Mon May 11 2009 Caolán McNamara - 0.8-0.1.b1 - latest version * Thu Feb 26 2009 Fedora Release Engineering - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Oct 23 2008 Caolán McNamara - 0.7.4-1 - latest version * Sat Sep 20 2008 Caolán McNamara - 0.7.3-1 - initial version