update default dictionary install location
- rename default install dir name from myspell to hunspell - F36 onwards will use hunspell dir & previous releases would use myspell dir - https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
This commit is contained in:
parent
8cc1b809cc
commit
c4670f659c
|
@ -1,8 +1,13 @@
|
|||
%if 0%{?fedora} > 35
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
Name: hunspell-pl
|
||||
Summary: Polish hunspell dictionaries
|
||||
%global upstreamid 20180707
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Source: http://sjp.pl/slownik/ort/sjp-myspell-pl-%{upstreamid}.zip
|
||||
URL: https://sjp.pl/slownik/ort/
|
||||
License: LGPLv2+ or GPL+ or MPLv1.1 or ASL 2.0 or CC-BY-SA
|
||||
|
@ -21,15 +26,19 @@ Polish hunspell dictionaries.
|
|||
unzip pl_PL.zip
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
|
||||
%files
|
||||
%doc README_pl_PL.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.20180707-10
|
||||
- rename install directory name from myspell to hunspell
|
||||
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20180707-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue