|
|
@ -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
|
|
|
|