mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 02:34:52 +00:00
Move post/postun out of install.spec
These start new sections and the following code is no longer executed as part of %install.
This commit is contained in:
parent
082429fcd5
commit
ee476f9583
2 changed files with 6 additions and 14 deletions
|
@ -216,14 +216,6 @@ rm -Rvf %{buildroot}%{install_docdir}/LLVM/lld/html
|
||||||
touch %{buildroot}%{_bindir}/ld
|
touch %{buildroot}%{_bindir}/ld
|
||||||
|
|
||||||
install -D -m 644 -t %{buildroot}%{_mandir}/man1/ lld/docs/ld.lld.1
|
install -D -m 644 -t %{buildroot}%{_mandir}/man1/ lld/docs/ld.lld.1
|
||||||
|
|
||||||
%post -n %{pkg_name_lld}
|
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1
|
|
||||||
|
|
||||||
%postun -n %{pkg_name_lld}
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
%{_sbindir}/update-alternatives --remove ld %{_bindir}/ld.lld
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
12
llvm.spec
12
llvm.spec
|
@ -239,13 +239,13 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without compat_build}
|
%if %{without compat_build}
|
||||||
#%post -n %{pkg_name_lld}
|
%post -n %{pkg_name_lld}
|
||||||
#%{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1
|
%{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1
|
||||||
|
|
||||||
#%postun -n %{pkg_name_lld}
|
%postun -n %{pkg_name_lld}
|
||||||
#if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
# %{_sbindir}/update-alternatives --remove ld %{_bindir}/ld.lld
|
%{_sbindir}/update-alternatives --remove ld %{_bindir}/ld.lld
|
||||||
#fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%include %{_sourcedir}/files.spec.inc
|
%include %{_sourcedir}/files.spec.inc
|
||||||
|
|
Loading…
Reference in a new issue