This commit is contained in:
parent
699584c193
commit
0ce0852bfc
15
k3b.spec
15
k3b.spec
@ -137,7 +137,22 @@ CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
%if %{with lang}
|
%if %{with lang}
|
||||||
%find_lang %{name} --with-man --all-name
|
%find_lang %{name} --with-man --all-name
|
||||||
|
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120300
|
||||||
%kf5_find_htmldocs
|
%kf5_find_htmldocs
|
||||||
|
%else
|
||||||
|
# %%kf5_find_htmldocs is only defined since Leap 42.3
|
||||||
|
CURDIR=`pwd`
|
||||||
|
pushd %{buildroot}%{_kf5_htmldir}
|
||||||
|
for i in *; do
|
||||||
|
if ! [ -d "/usr/share/locale/${i}" ]; then
|
||||||
|
echo "Removing unsupported translation %{_kf5_htmldir}/${i}"
|
||||||
|
rm -rf "$i"
|
||||||
|
elif [ "$i" != "en" ]; then
|
||||||
|
echo "%doc %lang($i) %{_kf5_htmldir}/${i}" >> $CURDIR/%{name}.lang
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%suse_update_desktop_file -r org.kde.k3b Qt KDE AudioVideo DiscBurning
|
%suse_update_desktop_file -r org.kde.k3b Qt KDE AudioVideo DiscBurning
|
||||||
|
Loading…
Reference in New Issue
Block a user