pretrans and post scriptlets should be for filesystem! (#2051360)
This commit is contained in:
parent
b3b504b133
commit
80770886a5
@ -3,7 +3,7 @@
|
||||
Name: hunspell
|
||||
Summary: A spell checker and morphological analyzer library
|
||||
Version: 1.7.0
|
||||
Release: 15%{?dist}
|
||||
Release: 16%{?dist}
|
||||
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
|
||||
URL: https://github.com/hunspell/hunspell
|
||||
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
||||
@ -23,9 +23,9 @@ Requires: hunspell-filesystem = %{version}-%{release}
|
||||
Patch0: 0001-invalid-read-memory-access-624.patch
|
||||
|
||||
%description
|
||||
Hunspell is a spell checker and morphological analyzer library and program
|
||||
designed for languages with rich morphology and complex word compounding or
|
||||
character encoding. Hunspell interfaces: Ispell-like terminal interface using
|
||||
Hunspell is a spell checker and morphological analyzer library and program
|
||||
designed for languages with rich morphology and complex word compounding or
|
||||
character encoding. Hunspell interfaces: Ispell-like terminal interface using
|
||||
Curses library, Ispell pipe interface, LibreOffice UNO module.
|
||||
|
||||
%package devel
|
||||
@ -102,7 +102,7 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%if 0%{?fedora} > 35
|
||||
%pretrans -p <lua>
|
||||
%pretrans filesystem -p <lua>
|
||||
-- Rename dir from myspell to hunspell
|
||||
-- DO NOT add a trailing slash at the end.
|
||||
old_path = "%{_datadir}/myspell"
|
||||
@ -113,7 +113,7 @@ if old_st and old_st.type == "directory" and not new_st then
|
||||
os.rename(old_path, new_path)
|
||||
end
|
||||
|
||||
%post -p <lua>
|
||||
%post filesystem -p <lua>
|
||||
if not posix.stat("%{_datadir}/myspell") then
|
||||
posix.symlink("%{_datadir}/hunspell", "%{_datadir}/myspell")
|
||||
end
|
||||
@ -155,6 +155,10 @@ end
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Feb 7 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-16
|
||||
- pretrans and post scriptlets should be for filesystem!
|
||||
(fixes #2051360 regression reported by Mike Fabian)
|
||||
|
||||
* Wed Jan 26 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-15
|
||||
- improve the filesystem pretrans and post scripts:
|
||||
- pretrans now checks if /usr/share/hunspell exists first
|
||||
|
Loading…
Reference in New Issue
Block a user