update %%files, use %%ldconfig_scriptlets %%make_build

epel9
Rex Dieter 7 years ago
parent 32bff64da8
commit 8beae6c435

@ -119,7 +119,7 @@ pushd %{_target_platform}
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd popd
make %{?_smp_mflags} -C %{_target_platform} %make_build -C %{_target_platform}
%install %install
@ -131,13 +131,17 @@ install -p -m644 -D %{SOURCE1} %{buildroot}%{_prefix}/lib/sysctl.d/97-kde-baloo-
%find_lang kio5_tags %find_lang kio5_tags
%find_lang kio5_timeline %find_lang kio5_timeline
%find_lang balooctl5 %find_lang balooctl5
%find_lang baloodb5
%find_lang balooengine5
%find_lang baloosearch5 %find_lang baloosearch5
%find_lang balooshow5 %find_lang balooshow5
%find_lang baloo_file5 %find_lang baloo_file5
%find_lang baloo_file_extractor5 %find_lang baloo_file_extractor5
%find_lang baloomonitorplugin %find_lang baloomonitorplugin
cat kio5_tags.lang kio5_baloosearch.lang kio5_timeline.lang balooctl5.lang baloosearch5.lang balooshow5.lang baloomonitorplugin.lang \ cat kio5_tags.lang kio5_baloosearch.lang kio5_timeline.lang \
balooctl5.lang baloodb5.lang balooengine5.lang baloosearch5.lang \
balooshow5.lang baloomonitorplugin.lang \
> %{name}.lang > %{name}.lang
cat baloo_file5.lang baloo_file_extractor5.lang \ cat baloo_file5.lang baloo_file_extractor5.lang \
@ -156,6 +160,7 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%files -f %{name}.lang %files -f %{name}.lang
%license COPYING %license COPYING
%{_kf5_bindir}/baloodb
%{_kf5_bindir}/baloosearch %{_kf5_bindir}/baloosearch
%{_kf5_bindir}/balooshow %{_kf5_bindir}/balooshow
%{_kf5_bindir}/balooctl %{_kf5_bindir}/balooctl
@ -167,19 +172,7 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%{_kf5_bindir}/baloo_file_extractor %{_kf5_bindir}/baloo_file_extractor
%{_kf5_sysconfdir}/xdg/autostart/baloo_file.desktop %{_kf5_sysconfdir}/xdg/autostart/baloo_file.desktop
%post libs %ldconfig_scriptlets libs
/sbin/ldconfig
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || :
%posttrans libs
gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || :
gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
fi
%files libs %files libs
%license COPYING.LIB %license COPYING.LIB

Loading…
Cancel
Save