- 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:
parent
812c84809b
commit
bbdea7124b
@ -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
|
Mon Mar 18 10:04:58 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -468,6 +468,16 @@ sed -i 's:%{buildroot}::' %{buildroot}/%{_libdir}/ImageMagick-%{mfr_version}/con
|
|||||||
%post -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
|
%post -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
|
||||||
%postun -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
|
%post %{config_spec}-upstream
|
||||||
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-upstream 1
|
%{_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
|
%{_sbindir}/update-alternatives --remove %{config_dir} %{_sysconfdir}/%{config_dir}-upstream
|
||||||
fi
|
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
|
%post %{config_spec}-SUSE
|
||||||
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-SUSE 10
|
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-SUSE 10
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user