Changes of Revision 3
[-] | Changed | mythtv.spec |
x 1
2 Summary: A personal video recorder (PVR) application. 3 Name: mythtv 4 Version: 0.21 5 -Release: 14 6 +Release: 50 7 URL: http://www.mythtv.org/ 8 License: GPL2 9 Group: Applications/Multimedia 10
11 Source8: mythtv-setup.png 12 Source9: mythtv-setup.desktop 13 Source10: mythtv-session.desktop 14 +Source11: mythfrontend-1024x640.desktop 15 +Source12: mythfrontend-800x450.desktop 16 +Source13: mythtv-0.21-svnfixes-binaries.tar.bz2 17 Source100: mythtv-doc.configure.ac 18 Source101: mythtv-doc.Makefile.am 19 Source202: README.non-root 20 Source203: mythbackend.SuSEfirewall2 21 +Source300: profile.mythtv.sh 22 +Source301: profile.mythtv.csh 23 Patch0: mythtv-0.21-svnfixes.patch 24 Patch1: mythtv-0.15-ostreaming.patch 25 Patch4: mythtv-perl-vendor.patch 26
27 %else 28 BuildRequires: libxine1-devel 29 %endif 30 +%if 0%{suse_version} >= 1100 31 +BuildRequires: libpulse-devel 32 +%endif 33 BuildRequires: jack 34 %if 0%{suse_version} > 1000 35 BuildRequires: Mesa 36
37 %endif 38 39 %prep 40 -%setup -q 41 +%setup -q -a 13 42 %patch0 -p1 43 %patch1 -p0 44 %patch4 -p1 45
46 --enable-dvb \ 47 --dvb-path=/usr/include \ 48 --enable-audio-oss --enable-audio-alsa --enable-audio-arts \ 49 +%if 0%{suse_version} >= 1100 50 + --enable-audio-pulse \ 51 +%endif 52 %{!?_without_jack:--enable-audio-jack} \ 53 %{?_without_jack:--disable-audio-jack} \ 54 --enable-x11 \ 55
56 install -d %{buildroot}/usr/sbin 57 58 install -D mythbackend.init %{buildroot}%{_initdir}/mythbackend 59 -install -D sysconfig.mythbackend %{buildroot}/var/adm/fillup-templates/sysconfig.mythbackend 60 -install -D mythbackend.logrotate %{buildroot}%{_logrotatedir}/mythbackend 61 +install -m 644 -D sysconfig.mythbackend %{buildroot}/var/adm/fillup-templates/sysconfig.mythbackend 62 +install -m 644 -D mythbackend.logrotate %{buildroot}%{_logrotatedir}/mythbackend 63 ln -sf ../../etc/init.d/mythbackend %{buildroot}/usr/sbin/rcmythbackend 64 -install -D -m 644 %{SOURCE203} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/mythbackend 65 +install -m 644 -D %{SOURCE203} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/mythbackend 66 #install %{SOURCE201} %{buildroot}/usr/share/doc/packages/mythtv 67 pushd programs 68 for subdir in *; do 69
70 popd 71 72 # Desktop entries 73 -install -D %{_sourcedir}/mythtv.png %{buildroot}%{_datadir}/pixmaps/mythtv.png 74 -install -D %{_sourcedir}/mythfrontend.png %{buildroot}%{_datadir}/pixmaps/mythfrontend.png 75 -install -D %{_sourcedir}/mythtv-setup.png %{buildroot}%{_datadir}/pixmaps/mythtv-setup.png 76 - 77 -install -D %{_sourcedir}/mythtv.desktop %{buildroot}%{_datadir}/applications/mythtv.desktop 78 -install -D %{_sourcedir}/mythfrontend.desktop %{buildroot}%{_datadir}/applications/mythfrontend.desktop 79 -install -D %{_sourcedir}/mythtv-setup.desktop %{buildroot}%{_datadir}/applications/mythtv-setup.desktop 80 +install -m 644 -D %{_sourcedir}/mythtv.png %{buildroot}%{_datadir}/pixmaps/mythtv.png 81 +install -m 644 -D %{_sourcedir}/mythfrontend.png %{buildroot}%{_datadir}/pixmaps/mythfrontend.png 82 +install -m 644 -D %{_sourcedir}/mythtv-setup.png %{buildroot}%{_datadir}/pixmaps/mythtv-setup.png 83 + 84 +install -m 644 -D %{_sourcedir}/mythtv.desktop %{buildroot}%{_datadir}/applications/mythtv.desktop 85 +install -m 644 -D %{_sourcedir}/mythfrontend.desktop %{buildroot}%{_datadir}/applications/mythfrontend.desktop 86 +install -m 644 -D %{_sourcedir}/mythfrontend-1024x640.desktop %{buildroot}%{_datadir}/applications/mythfrontend-1024x640.desktop 87 +install -m 644 -D %{_sourcedir}/mythfrontend-800x450.desktop %{buildroot}%{_datadir}/applications/mythfrontend-800x450.desktop 88 +install -m 644 -D %{_sourcedir}/mythtv-setup.desktop %{buildroot}%{_datadir}/applications/mythtv-setup.desktop 89 90 -install -D %{_sourcedir}/mythtv-session.desktop %{buildroot}%{_datadir}/xsessions/mythtv.desktop 91 +install -m 644 -D %{_sourcedir}/mythtv-session.desktop %{buildroot}%{_datadir}/xsessions/mythtv.desktop 92 93 mkdir -p %{buildroot}%{_libdir}/mythtv/plugins 94 mkdir -p %{buildroot}%{_datadir}/mythtv/build/ 95
96 cp -r database %{buildroot}%{_docdir}/%{name}-doc 97 cp -r contrib %{buildroot}%{_docdir}/%{name}-doc 98 99 +%if 0%{suse_version} >= 1100 100 +install -d %{buildroot}%{_sysconfdir}/profile.d 101 +install -m 644 %{S:300} %{buildroot}%{_sysconfdir}/profile.d/mythtv.sh 102 +install -m 644 %{S:301} %{buildroot}%{_sysconfdir}/profile.d/mythtv.csh 103 +%endif 104 + 105 %if 0%{?suse_version} > 1020 106 %fdupes $RPM_BUILD_ROOT%{_datadir}/mythtv 107 %fdupes $RPM_BUILD_ROOT%{_docdir}/mythtv-doc 108
109 %{_datadir}/mythtv/i18n 110 %{_datadir}/xsessions/mythtv.desktop 111 %{_datadir}/applications/mythfrontend.desktop 112 +%{_datadir}/applications/mythfrontend-1024x640.desktop 113 +%{_datadir}/applications/mythfrontend-800x450.desktop 114 %{_datadir}/applications/mythtv.desktop 115 %{_datadir}/pixmaps/mythfrontend.png 116 %{_datadir}/pixmaps/mythtv.png 117 +%if 0%{suse_version} >= 1100 118 +%config %{_sysconfdir}/profile.d/* 119 +%endif 120 121 %files themes 122 %defattr(-,root,root,-) 123 |
||
[+] | Changed | mythtv-0.21-svnfixes.patch ^ |
@@ -82,7 +82,7 @@ # diff -uNr mythtv-0.21/configure mythtv/configure --- mythtv-0.21/configure 2008-03-04 22:23:23.000000000 +0100 -+++ mythtv/configure 2008-06-30 08:40:35.000000000 +0200 ++++ mythtv/configure 2009-04-19 23:30:15.000000000 +0200 @@ -163,6 +163,7 @@ echo " directory with frontend.h [$dvb_path]" echo " --disable-x11 disable X11 support" @@ -100,7 +100,7 @@ echo " --with-bindings=LIST install the bindings specified in the" echo " comma-separated list" echo " Supported bindings: perl, python" -@@ -904,6 +907,7 @@ +@@ -904,9 +907,11 @@ xvmc_vld dvdv fribidi @@ -108,7 +108,20 @@ ' MYTHTV_LIST=' -@@ -1178,6 +1182,7 @@ ++ audio_pulse + audio_alsa + audio_arts + audio_jack +@@ -1156,6 +1161,8 @@ + CONFIG_DEFINES="" + CONFIG_INCLUDEPATH="" + PROFILEFLAGS="" ++audio_pulse="default" ++audio_pulse_libs="-lpulse" + audio_alsa="default" + audio_alsa_libs="-lasound" + audio_arts="default" +@@ -1178,6 +1185,7 @@ joystick_menu="default" lamemp3="yes" lirc="yes" @@ -116,7 +129,7 @@ opengl="yes" v4l="yes" x11="yes" -@@ -1186,9 +1191,9 @@ +@@ -1186,9 +1194,9 @@ xv="yes" xvmc="yes" xvmc_lib="" @@ -127,7 +140,7 @@ # libraries enable zlib -@@ -1353,6 +1358,10 @@ +@@ -1353,6 +1361,10 @@ ;; --xvmc-lib=*) xvmc_lib="$optval" ;; @@ -138,7 +151,7 @@ --enable-mac-accel) dvdv="yes" ;; --disable-mac-accel) dvdv="no" -@@ -1382,6 +1391,10 @@ +@@ -1382,6 +1394,10 @@ # disabled due to abuse in Gentoo ebuild --disable-backend) ;; @@ -149,7 +162,23 @@ --previous|--prev) echo "No history of previous configure parameters." ;; -@@ -1599,10 +1612,13 @@ +@@ -1475,6 +1491,7 @@ + fi + fi + cmov="yes" ++ fast_cmov="yes" + ;; + # armv4l is a subset of armv[567]*l + arm|armv[4567]*l) +@@ -1586,6 +1603,7 @@ + ;; + freebsd) + append CCONFIG "freebsd" ++ disable ivtv + disable need_memalign + backend="yes" + ;; +@@ -1599,10 +1617,13 @@ enable darwin disable dvb disable ivtv @@ -166,7 +195,7 @@ disable need_memalign disable opengl_video disable opengl_vsync -@@ -1619,9 +1635,23 @@ +@@ -1619,9 +1640,23 @@ FFSERVERLDFLAGS=-Wl,-bind_at_load ;; mingw32*) @@ -192,7 +221,7 @@ shlibdir="$bindir" VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil' VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)' -@@ -1629,17 +1659,7 @@ +@@ -1629,17 +1664,7 @@ VHOOKSHFLAGS="$VHOOKSHFLAGS -L\$(BUILD_ROOT)/libswscale" VHOOKLIBS="$VHOOKLIBS -lswscale\$(BUILDSUF)" fi @@ -210,19 +239,6 @@ SLIBPREF="lib" SLIBSUF=".dll" EXESUF=".exe" -@@ -1712,7 +1732,12 @@ - HAS_IT="no" - for LIBPATH in $LIBPATHS ; do - if test x`ls $LIBPATH/$1* 2> /dev/null | head -n 1` != x"" ; then -+ echo "$1 IS at $LIBPATH" -+ expr 1 > /dev/null -+ return - HAS_IT="yes" -+ else -+ echo "$1 not at $LIBPATH" - fi - done - expr $HAS_IT : "yes" > /dev/null @@ -2034,6 +2059,8 @@ # EM64T era Intel Xeon if expr "$processor" : ".*Intel(R) Xeon(R) CPU.*5110" > /dev/null ; then @@ -232,7 +248,20 @@ # Various Intel Duo processors (EMT64T capable) elif expr "$processor" : ".*Intel(R).*Core(TM)2.*CPU" > /dev/null ; then ARCHFLAGS="-march=k8" # this would be pentium4 on 32 bit systems -@@ -2691,6 +2718,9 @@ +@@ -2528,6 +2555,12 @@ + check_header sys/soundcard.h + check_header soundcard.h + ++# PulseAudio probe ++! disabled audio_pulse && ++ check_lib pulse/version.h pa_get_library_version $audio_pulse_libs && ++ enable audio_pulse || ++ disable audio_pulse ++ + # ALSA probe + ! disabled audio_alsa && + check_lib alsa/asoundlib.h snd_asoundlib_version $audio_alsa_libs && +@@ -2691,6 +2724,9 @@ fi fi @@ -242,7 +271,7 @@ enabled x11 && has_library libX11 || disable x11 enabled xrandr && has_header X11/extensions/Xrandr.h || disable xrandr enabled xv && has_library libXv || disable xv -@@ -2702,8 +2732,6 @@ +@@ -2702,38 +2738,38 @@ check_header X11/extensions/XvMClib.h has_library libXvMCW || disable xvmcw check_header X11/extensions/vldXvMC.h @@ -251,32 +280,41 @@ if test x"$xvmc_lib" != x""; then VENDOR_XVMC_LIBS="-l"$xvmc_lib -@@ -2715,25 +2743,34 @@ - VENDOR_XVMC_LIBS="-lviaXvMCPro" - elif has_library libchromeXvMCPro ; then - VENDOR_XVMC_LIBS="-lchromeXvMCPro" -+ else -+ disable xvmc_pro - fi - elif enabled xvmc_vld; then - if has_library libviaXvMC ; then - VENDOR_XVMC_LIBS="-lviaXvMC" - elif has_library libchromeXvMC ; then - VENDOR_XVMC_LIBS="-lchromeXvMC" -+ else -+ disable xvmc_pro - fi + disable xvmcw + elif enabled xvmcw; then + VENDOR_XVMC_LIBS="-lXvMCW" +-elif enabled xvmc_pro; then +- if has_library libviaXvMCPro ; then +- VENDOR_XVMC_LIBS="-lviaXvMCPro" +- elif has_library libchromeXvMCPro ; then +- VENDOR_XVMC_LIBS="-lchromeXvMCPro" +- fi +-elif enabled xvmc_vld; then +- if has_library libviaXvMC ; then +- VENDOR_XVMC_LIBS="-lviaXvMC" +- elif has_library libchromeXvMC ; then +- VENDOR_XVMC_LIBS="-lchromeXvMC" +- fi ++elif enabled xvmc_pro && has_library libviaXvMCPro ; then ++ VENDOR_XVMC_LIBS="-lviaXvMCPro" ++elif enabled xvmc_pro && has_library libchromeXvMCPro ; then ++ VENDOR_XVMC_LIBS="-lchromeXvMCPro" ++elif enabled xvmc_vld && has_library libviaXvMC ; then | ||
[+] | Added | mythfrontend-1024x640.desktop ^ |
@@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=mythTV frontend +GenericName=PVR (medium window size) +GenericName[de]=PVR (mittlere Fenstergröße) +Comment=Record, playback and watch TV. +Icon=mythfrontend.png +Exec=mythfrontend -w -geometry 1024x640 +Terminal=false +Type=Application +Categories=Qt;AudioVideo;Video;TV; | ||
[+] | Added | mythfrontend-800x450.desktop ^ |
@@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=mythTV frontend +GenericName=PVR (small window size) +GenericName[de]=PVR (kleines Fenster) +Comment=Record, playback and watch TV. +Icon=mythfrontend.png +Exec=mythfrontend -w -geometry 800x450 +Terminal=false +Type=Application +Categories=Qt;AudioVideo;Video;TV; | ||
[+] | Changed | mythfrontend.desktop ^ |
@@ -1,9 +1,10 @@ [Desktop Entry] Encoding=UTF-8 Name=mythTV frontend +GenericName=PVR (fullscreen) Comment=Record, playback and watch TV. Icon=mythfrontend.png Exec=mythfrontend Terminal=false Type=Application -Categories=Qt;Application;AudioVideo;Video;TV +Categories=Qt;AudioVideo;Video;TV; | ||
Added | mythtv-0.21-svnfixes-binaries.tar.bz2 ^ | |
[+] | Changed | mythtv-setup.desktop ^ |
@@ -6,4 +6,4 @@ Exec=mythtv-setup Terminal=false Type=Application -Category=SystemSetup;AudioVideo; +Category=Qt;System;SystemSetup;AudioVideo; | ||
[+] | Changed | mythtv.desktop ^ |
@@ -6,4 +6,4 @@ Exec=mythtv Terminal=false Type=Application -Categories=Qt;Application;AudioVideo;Video;TV +Categories=Qt;AudioVideo;Video;TV; | ||
[+] | Added | profile.mythtv.csh ^ |
@@ -0,0 +1,4 @@ +#!/bin/csh + +# Enable pulseaudio support. Disabling it does not work +setenv EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1 | ||
[+] | Added | profile.mythtv.sh ^ |
@@ -0,0 +1,4 @@ +#!/bin/sh + +# Enable pulseaudio support. Disabling it does not work +export EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1 |