pretrans and post scriptlets should be for filesystem! (#2051360)
This commit is contained in:
parent
b3b504b133
commit
80770886a5
@ -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: 15%{?dist}
|
Release: 16%{?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
|
||||||
@ -102,7 +102,7 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%if 0%{?fedora} > 35
|
%if 0%{?fedora} > 35
|
||||||
%pretrans -p <lua>
|
%pretrans filesystem -p <lua>
|
||||||
-- Rename dir from myspell to hunspell
|
-- Rename dir from myspell to hunspell
|
||||||
-- DO NOT add a trailing slash at the end.
|
-- DO NOT add a trailing slash at the end.
|
||||||
old_path = "%{_datadir}/myspell"
|
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)
|
os.rename(old_path, new_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
%post -p <lua>
|
%post filesystem -p <lua>
|
||||||
if not posix.stat("%{_datadir}/myspell") then
|
if not posix.stat("%{_datadir}/myspell") then
|
||||||
posix.symlink("%{_datadir}/hunspell", "%{_datadir}/myspell")
|
posix.symlink("%{_datadir}/hunspell", "%{_datadir}/myspell")
|
||||||
end
|
end
|
||||||
@ -155,6 +155,10 @@ end
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jan 26 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-15
|
||||||
- improve the filesystem pretrans and post scripts:
|
- improve the filesystem pretrans and post scripts:
|
||||||
- pretrans now checks if /usr/share/hunspell exists first
|
- pretrans now checks if /usr/share/hunspell exists first
|
||||||
|
Loading…
Reference in New Issue
Block a user