- added temporary %pretrans to ImageMagick-config-upstream and

ImageMagick-config-SUSE [bsc#1122033comment#37]

OBS-URL: https://build.opensuse.org/package/show/graphics/ImageMagick?expand=0&rev=422
This commit is contained in:
Petr Gajdos 2019-03-18 13:06:52 +00:00 committed by Git OBS Bridge
parent 812c84809b
commit bbdea7124b
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 18 13:05:19 UTC 2019 - pgajdos@suse.com
- added temporary %pretrans to ImageMagick-config-upstream and
ImageMagick-config-SUSE [bsc#1122033comment#37]
-------------------------------------------------------------------
Mon Mar 18 10:04:58 UTC 2019 - pgajdos@suse.com

View File

@ -468,6 +468,16 @@ sed -i 's:%{buildroot}::' %{buildroot}/%{_libdir}/ImageMagick-%{mfr_version}/con
%post -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
%postun -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
%pretrans %{config_spec}-upstream -p <lua>
# this %pretrans be removed soon
# https://bugzilla.suse.com/show_bug.cgi?id=1122033#c37
path = "%{_sysconfdir}/%{config_dir}"
st = posix.stat(path)
if st and st.type == "directory" then
os.remove(path .. ".rpmmoved")
os.rename(path, path .. ".rpmmoved")
end
%post %{config_spec}-upstream
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-upstream 1
@ -476,6 +486,16 @@ if [ ! -d %{_sysconfdir}/%{config_dir}-upstream ] ; then
%{_sbindir}/update-alternatives --remove %{config_dir} %{_sysconfdir}/%{config_dir}-upstream
fi
%pretrans %{config_spec}-SUSE -p <lua>
# this %pretrans be removed soon
# https://bugzilla.suse.com/show_bug.cgi?id=1122033#c37
path = "%{_sysconfdir}/%{config_dir}"
st = posix.stat(path)
if st and st.type == "directory" then
os.remove(path .. ".rpmmoved")
os.rename(path, path .. ".rpmmoved")
end
%post %{config_spec}-SUSE
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-SUSE 10