RPM: update kstreamripper spec file

pull/3/head
François Andriot 6 years ago
parent 2f28732a42
commit 2d62203f99

@ -623,10 +623,7 @@ ksquirrel: tdebase libkipi libksquirrel
$(call buildpkg,applications/ksquirrel)
kstreamripper: tdebase
# Do NOT build on Fedora 27, OpenSUSE >= 15.0 (problem with scons and python3)
ifeq (,$(filter $(DIST),.fc27 .oss150 .osstw))
$(call buildpkg,applications/kstreamripper)
endif
ksystemlog: tdebase
$(call buildpkg,applications/ksystemlog)

@ -108,22 +108,32 @@ you with managing/ripping your preferred streams.
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
# Force running 'tmoc' on all header files
for h in "src/"*".h"; do
moc="${h/.h/.moc}"
tmoc "${h}" -o "${moc}"
cpp="${h/.h/.cpp}"
echo "#include \"${moc##*/}\"" >>"${cpp}"
done
export QTDIR=/usr
scons -Q -j4
python2 /usr/bin/scons configure prefix="%{_prefix}"
python2 /usr/bin/scons %{?_smp_mflags}
%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}
# Move desktop file to XDG folder
%__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
%__mv -f "%{?buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{?buildroot}%{tde_tdeappdir}"
DESTDIR="%{?buildroot}" python2 /usr/bin/scons install
# Missing icon file will make this fail.
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
# Updates applications categories for openSUSE
%if 0%{?suse_version}
%suse_update_desktop_file kstreamripper Audio Recorder
%endif
%clean
%__rm -rf %{buildroot}
@ -137,5 +147,4 @@ echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
%{tde_tdedocdir}/HTML/en/kstreamripper/
%changelog

Loading…
Cancel
Save