forked from pool/kde-cli-tools5
This commit is contained in:
committed by
Git OBS Bridge
parent
effc82ea1e
commit
e5c91ba864
@@ -3,6 +3,7 @@ Fri Aug 8 17:31:10 UTC 2014 - hrvoje.senjan@gmail.com
|
||||
|
||||
- Update to 5.0.1
|
||||
* Translation updates
|
||||
- Install kdesu via update-alternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 11 18:33:06 UTC 2014 - hrvoje.senjan@gmail.com
|
||||
|
@@ -46,7 +46,6 @@ Additional CLI tools for KDE applications and workspaces.
|
||||
|
||||
%prep
|
||||
%setup -q -n kde-cli-tools-%{version}
|
||||
sed -i '/^add_subdirectory(doc)/d' CMakeLists.txt
|
||||
|
||||
%build
|
||||
%cmake_kf5 -d build -- -DBUILD_po=OFF
|
||||
@@ -55,12 +54,29 @@ sed -i '/^add_subdirectory(doc)/d' CMakeLists.txt
|
||||
%install
|
||||
%kf5_makeinstall -C build
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
# create a dummy target for /etc/alternatives/kdesu
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives/
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/kdesu
|
||||
chmod +x %{buildroot}%{_sysconfdir}/alternatives/kdesu
|
||||
ln -s -f %{_sysconfdir}/alternatives/kdesu %{buildroot}%{_kf5_bindir}/kdesu
|
||||
ln -s -f %{_sysconfdir}/alternatives/kdesu.1%{?ext_man} %{buildroot}%{_mandir}/man1/kdesu.1%{?ext_man}
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%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}
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
if [ $1 -eq 0 ]; then
|
||||
%{_sbindir}/update-alternatives --remove kdesu \
|
||||
%{_kf5_libdir}/libexec/kdesu
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_kf5_bindir}/kdesu
|
||||
%{_kf5_bindir}/kcmshell5
|
||||
%{_kf5_bindir}/kdecp5
|
||||
%{_kf5_bindir}/kdemv5
|
||||
@@ -74,8 +90,10 @@ sed -i '/^add_subdirectory(doc)/d' CMakeLists.txt
|
||||
%{_kf5_servicesdir}/
|
||||
%{_kf5_libdir}/libkdeinit5_kcmshell5.so
|
||||
%{_kf5_libdir}/libexec/
|
||||
%ghost %{_sysconfdir}/alternatives/kdesu
|
||||
%{_kf5_plugindir}/
|
||||
#doc %{_kf5_htmldir}/
|
||||
#{_kf5_mandir}/man1/kdesu.*
|
||||
%ghost %{_sysconfdir}/alternatives/kdesu.1%{?ext_man}
|
||||
%doc %{_kf5_htmldir}/
|
||||
%{_kf5_mandir}/man1/kdesu.*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user