update default dictionary install path
- rename install dir name from myspell to hunspell - create symlink myspell for better backward compatibility - https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
This commit is contained in:
parent
6ffc042077
commit
09babb9078
@ -3,7 +3,7 @@
|
|||||||
Name: hunspell
|
Name: hunspell
|
||||||
Summary: A spell checker and morphological analyzer library
|
Summary: A spell checker and morphological analyzer library
|
||||||
Version: 1.7.0
|
Version: 1.7.0
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
|
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
|
||||||
URL: https://github.com/hunspell/hunspell
|
URL: https://github.com/hunspell/hunspell
|
||||||
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
||||||
@ -18,7 +18,7 @@ BuildRequires: words
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
Requires: hunspell-en-US
|
Requires: hunspell-en-US
|
||||||
Requires: hunspell-filesystem
|
Requires: hunspell-filesystem = %{version}-%{release}
|
||||||
|
|
||||||
Patch0: 0001-invalid-read-memory-access-624.patch
|
Patch0: 0001-invalid-read-memory-access-624.patch
|
||||||
|
|
||||||
@ -92,11 +92,30 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%make_install
|
%make_install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
||||||
|
%if 0%{?fedora} > 35
|
||||||
|
mkdir $RPM_BUILD_ROOT/%{_datadir}/hunspell
|
||||||
|
%else
|
||||||
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||||
|
%endif
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%if 0%{?fedora} > 35
|
||||||
|
%pretrans -p <lua>
|
||||||
|
-- Rename dir from myspell to hunspell
|
||||||
|
-- DO NOT add a trailing slash at the end.
|
||||||
|
old_path = "/usr/share/myspell"
|
||||||
|
new_path = "/usr/share/hunspell"
|
||||||
|
st = posix.stat(old_path)
|
||||||
|
if st and st.type == "directory" then
|
||||||
|
status = os.rename(old_path, new_path)
|
||||||
|
end
|
||||||
|
|
||||||
|
%post
|
||||||
|
%__ln_s %{_datadir}/hunspell %{_datadir}/myspell
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc README COPYING COPYING.LESSER COPYING.MPL AUTHORS license.hunspell license.myspell THANKS
|
%doc README COPYING COPYING.LESSER COPYING.MPL AUTHORS license.hunspell license.myspell THANKS
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
@ -125,9 +144,18 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|||||||
%{_mandir}/man5/hunspell.5.gz
|
%{_mandir}/man5/hunspell.5.gz
|
||||||
|
|
||||||
%files filesystem
|
%files filesystem
|
||||||
|
%if 0%{?fedora} > 35
|
||||||
|
%ghost %{_datadir}/myspell
|
||||||
|
%{_datadir}/hunspell
|
||||||
|
%else
|
||||||
%{_datadir}/myspell
|
%{_datadir}/myspell
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 21 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 1.7.0-13
|
||||||
|
- Rename install dir from myspell to hunspell & create symlink myspell
|
||||||
|
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-12
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-12
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user