1
0
Hrvoje Senjan 2014-08-08 21:40:31 +00:00 committed by Git OBS Bridge
parent 6618995ab2
commit 0829a990b2

View File

@ -60,14 +60,14 @@ Additional CLI tools for KDE applications and workspaces.
chmod +x %{buildroot}%{_sysconfdir}/alternatives/kdesu
ln -s -f %{_sysconfdir}/alternatives/kdesu %{buildroot}%{_kf5_bindir}/kdesu
touch %{buildroot}%{_sysconfdir}/alternatives/kdesu.1%{?ext_man}
mv %{buildroot}%{_mandir}/man1/kdesu.1 %{buildroot}%{_mandir}/man1/kdesu-4.1
mv %{buildroot}%{_mandir}/man1/kdesu.1 %{buildroot}%{_mandir}/man1/kdesu-5.1
ln -s -f %{_sysconfdir}/alternatives/kdesu.1%{?ext_man} %{buildroot}%{_mandir}/man1/kdesu.1%{?ext_man}
%post
/sbin/ldconfig
%{_sbindir}/update-alternatives \
--install %{_kf5_bindir}/kdesu kdesu %{_kf5_libdir}/libexec/kdesu 15 \
--slave %{_kf5_mandir}/man1/kdesu.1.gz kdesu.1%{?ext_man} %{_kf5_mandir}/man1/kdesu.1%{?ext_man}
--slave %{_kf5_mandir}/man1/kdesu.1.gz kdesu.1%{?ext_man} %{_kf5_mandir}/man1/kdesu-5.1%{?ext_man}
%postun
/sbin/ldconfig