diff options
Diffstat (limited to 'redhat/applications')
-rw-r--r-- | redhat/applications/kstreamripper/kstreamripper-14.0.0.spec | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/redhat/applications/kstreamripper/kstreamripper-14.0.0.spec b/redhat/applications/kstreamripper/kstreamripper-14.0.0.spec index 9af509ede..58b1d9be9 100644 --- a/redhat/applications/kstreamripper/kstreamripper-14.0.0.spec +++ b/redhat/applications/kstreamripper/kstreamripper-14.0.0.spec @@ -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 |