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) $(call buildpkg,applications/ksquirrel)
kstreamripper: tdebase 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) $(call buildpkg,applications/kstreamripper)
endif
ksystemlog: tdebase ksystemlog: tdebase
$(call buildpkg,applications/ksystemlog) $(call buildpkg,applications/ksystemlog)

@ -108,22 +108,32 @@ you with managing/ripping your preferred streams.
unset QTDIR QTINC QTLIB unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}" 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 export QTDIR=/usr
scons -Q -j4 python2 /usr/bin/scons configure prefix="%{_prefix}"
python2 /usr/bin/scons %{?_smp_mflags}
%install %install
export PATH="%{tde_bindir}:${PATH}" export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot} %__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot} DESTDIR="%{?buildroot}" python2 /usr/bin/scons install
# Move desktop file to XDG folder
%__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
%__mv -f "%{?buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{?buildroot}%{tde_tdeappdir}"
# Missing icon file will make this fail. # Missing icon file will make this fail.
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop" 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 %clean
%__rm -rf %{buildroot} %__rm -rf %{buildroot}
@ -137,5 +147,4 @@ echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
%{tde_tdedocdir}/HTML/en/kstreamripper/ %{tde_tdedocdir}/HTML/en/kstreamripper/
%changelog %changelog

Loading…
Cancel
Save