fix double %_bindir in %post scripts

epel9
Jens Petersen 10 years ago
parent a964910d3d
commit 223303d9fb

@ -45,10 +45,10 @@ lex or flex for C/C++.
%if %{with static} %if %{with static}
%package common %package common
Summary: Common files for alex Summary: Common files for %{name}
%description common %description common
This provides the common files for alex. This provides the common files for %{name}.
%package static %package static
@ -102,7 +102,7 @@ rm %{buildroot}%{_pkgdocdir}/LICENSE
%if %{with static} %if %{with static}
%post %post
%{_sbindir}/update-alternatives --install %{_bindir}/%{name} \ %{_sbindir}/update-alternatives --install %{_bindir}/%{name} \
%{name} %{_bindir}/%{_bindir}/%{name}.dynamic 70 %{name} %{_bindir}/%{name}.dynamic 70
%postun %postun
@ -113,7 +113,7 @@ fi
%post static %post static
%{_sbindir}/update-alternatives --install %{_bindir}/%{name} \ %{_sbindir}/update-alternatives --install %{_bindir}/%{name} \
%{name} %{_bindir}/%{_bindir}/%{name}.static 30 %{name} %{_bindir}/%{name}.static 30
%postun static %postun static

Loading…
Cancel
Save