Name : mythtv Relocations: (not relocatable)
Version : 0.19 Vendor: Penguin Liberation Front
Release : 1plf Build Date: Tue 21 Feb 2006
08:47:54 PM CET
Install Date: (not installed) Build Host: kone.anssi.be
Group : Video Source RPM: (none)
Size : 10186173 License: GPL
Signature : (none)
Packager : Anssi Hannula <[EMAIL PROTECTED]>
URL : http://www.mythtv.org/
Summary : A personal video recorder (PVR) application
Description :
MythTV implements the following PVR features, and more, with a
unified graphical interface:
- Basic 'live-tv' functionality. Pause/Fast Forward/Rewind "live" TV.
- Video compression using RTjpeg or MPEG-4
- Program listing retrieval using XMLTV
- Themable, semi-transparent on-screen display
- Electronic program guide
- Scheduled recording of TV programs
- Resolution of conflicts between scheduled recordings
- Basic video editing
This package is in PLF because it requires Lame which includes patented
technology.
---------------
Anssi Hannula <[EMAIL PROTECTED]> 0.19-1plf
- enable dvd by default
- clean spec
- drop patch0, don't force O_STREAMING if not supported by kernel/headers
- drop patch4, patch5, fixed upstream
- fix icons
- drop patch1, unneeded
- fix requires qt3-mysql
- convert to README.urpmi
- use dts_pic (patch0)
- mythtv user created by backend only
- mythbackend runs as user mythtv, add notice to README.urpmi
- fix build with arts
- drop broken nvidia/via renaming thing, use xvmcw by default
- apply default recordings dir of /var/lib/mythtv/recordings
- add mythtv user to video group
---------------
---------------
Index: mythbackend.init.in
===================================================================
RCS file: /home/projects/plf/cvs/SPECS/free/mythtv/mythbackend.init.in,v
retrieving revision 1.4
diff -u -r1.4 mythbackend.init.in
--- mythbackend.init.in 24 Jul 2005 20:26:19 -0000 1.4
+++ mythbackend.init.in 21 Feb 2006 20:25:16 -0000
@@ -26,9 +26,7 @@
start() {
echo -n $"Starting $prog: "
touch @rundir@/mythbackend.pid; chown mythtv:mythtv @rundir@/mythbackend.pid
- # Does not work on Red Hat, do to to missing audio/video groups.
-# cd $MYTHTV_HOME && daemon --user mythtv $binary $OPTIONS
- cd $MYTHTV_HOME && daemon $binary $OPTIONS
+ cd $MYTHTV_HOME && daemon --user mythtv $binary $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch @subsysdir@/$prog
Index: mythtv.spec
===================================================================
RCS file: /home/projects/plf/cvs/SPECS/free/mythtv/mythtv.spec,v
retrieving revision 1.16
diff -u -r1.16 mythtv.spec
--- mythtv.spec 22 Aug 2005 21:51:54 -0000 1.16
+++ mythtv.spec 21 Feb 2006 20:25:16 -0000
@@ -1,22 +1,22 @@
-#define nameorig mythtv
+
%define name mythtv
-%define version 0.18.1
-%define cvsrel 20050618
-%define release %mkrel %{cvsrel}.5
+%define version 0.19
+%define rel 1
+%define release %mkrel %rel
%define distsuffix plf
%define lib_name_orig libmyth
-%define lib_major 0.18
+%define lib_major 0.19
%define lib_name %mklibname myth %{lib_major}
-%if %mdkversion >= 1020
-%define maenable 1
-%endif
-
%if %mdkversion <= 1020
%define _logdir /var/log
%endif
+%if %mdkversion >= 1020
+%define maenable 1
+%endif
+
#set default build options
%define build_alsa 1
%define build_arts 1
@@ -37,9 +37,8 @@
%define build_x11 1
%define build_xrandr 1
%define build_xv 1
-%define build_xvmcnvidia 0
-%define build_xvmcvld 0
-%define build_dvd 0
+%define build_xvmc 1
+%define build_dvd 1
#enable/disable building for certain hardware
%{?_without_alsa: %global build_alsa 0}
@@ -58,8 +57,7 @@
%{?_without_x11: %global build_x11 0}
%{?_without_xrandr: %global build_xrandr 0}
%{?_without_xv: %global build_xv 0}
-%{?_without_xvmcnvidia: %global build_xvmcnvidia 0}
-%{?_without_xvmcvld: %global build_xvmcvld 0}
+%{?_without_xvmc: %global build_xvmc 0}
%{?_with_alsa: %global build_alsa 1}
%{?_with_arts: %global build_arts 1}
@@ -76,23 +74,8 @@
%{?_with_x11: %global build_x11 1}
%{?_with_xrandr: %global build_xrandr 1}
%{?_with_xv: %global build_xv 1}
-%{?_with_xvmcnvidia: %global build_xvmcnvidia 1}
-%{?_with_xvmcvld: %global build_xvmcvld 1}
+%{?_with_xvmc: %global build_xvmc 1}
-#Make sure that only one of them is used
-#and that there will be a specific mythtv version.
-%if %{build_xvmcnvidia}
-%define name mythtv-nvidia
-%define xvmcvld 0
-%define lib_major 0
-%define lib_name %mklibname myth_nvidia %{lib_major}
-%else
- %if %{build_xvmcvld}
- %define name mythtv-via
- %define lib_major 0
- %define lib_name %mklibname myth_via %{lib_major}
- %endif
-%endif
Summary: A personal video recorder (PVR) application
Name: %{name}
@@ -101,27 +84,15 @@
URL: http://www.mythtv.org/
License: GPL
Group: Video
-Source0: http://www.mythtv.org/mc/%{name}-%{version}-cvs%{cvsrel}.tar.bz2
+Source0: %{name}-%{version}.tar.bz2
Source1: mythbackend.sysconfig.in
Source2: mythbackend.init.in
Source3: mythbackend.logrotate.in
-Source4: mythtv.png
-Source6: mythfrontend.png
-Source8: mythepg.png
-Source10: mythprogfind.png
-Source100: mythtv-doc.configure.ac
-Source101: mythtv-doc.Makefile.am
-Patch0: mythtv-0.15-ostreaming.patch.bz2
-Patch1: mythtv-0.17-mixeddeclarations.patch.bz2
-Patch2: mythtv-0.16-math.patch.bz2
-#Patch3: mythtv-0.16-nodeinterlace.patch
-Patch4: mythtv-0.16-dvbdiseqc.patch.bz2
+Patch0: mythtv-dts-pic.patch.bz2
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: ImageMagick
-%if %maenable
-BuildRequires: multiarch-utils
-%endif
+
BuildRequires: lame-devel
# qt3-devel needed for qmake
BuildRequires: qt3-devel
@@ -152,17 +123,12 @@
BuildRequires: MesaGLU-devel
%endif
%if %{build_x11}
-BuildRequires: X11
-%endif
-%if %{build_xvmcnvidia}
-BuildRequires: NVIDIA_GLX
-BuildRequires: libxfree86-devel
+BuildRequires: X11-devel
%endif
-%if %{build_xvmcvld}
-BuildRequires: libddmpeg-devel
+%if %maenable
+BuildRequires: multiarch-utils
%endif
-#Included in 2.6.7 kernel
-#%{?build_dvb:BuildRequires: linuxtv-dvb-devel}
+Requires: %mklibname qt3-mysql
%description
MythTV implements the following PVR features, and more, with a
@@ -203,12 +169,6 @@
%package themes
Summary: Base themes for mythtv's frontend
Group: Video
-%if %{build_xvmcnvidia}
-Provides: %{name}-themes
-%endif
-%if %{build_xvmcvld}
-Provides: %{name}-themes
-%endif
%description themes
MythTV provides a unified graphical interface for recording and viewing
@@ -222,12 +182,6 @@
Group: Video
Requires: %{name} = %{version}
Requires: mythtv-themes = %{version}
-%if %{build_xvmcnvidia}
-Provides: %{name}-frontend
-%endif
-%if %{build_xvmcvld }
-Provides: %{name}-frontend
-%endif
%description frontend
MythTV provides a unified graphical interface for recording and viewing
@@ -241,14 +195,8 @@
%package backend
Summary: Server component of mythtv (a PVR)
Group: Video
-Requires: %{lib_name} = %{version}, %{name} = %{version}
-Requires: libqt3-mysql
-%if %{build_xvmcnvidia}
-Provides: %{name}-backend
-%endif
-%if %{build_xvmcvld }
-Provides: %{name}-backend
-%endif
+Requires: %{lib_name} = %{version}
+Requires: %{name} = %{version}
%description backend
MythTV provides a unified graphical interface for recording and viewing
@@ -259,15 +207,7 @@
requires a mythtv-frontend installation, either on the same system or
one reachable via the network.
-%if %{build_xvmcnvidia}
-%package setup_nvidia
-%else
-%if %{build_xvmcvld }
-%package setup_via
-%else
%package setup
-%endif
-%endif
Summary: Setup the mythtv backend
Group: Video
Requires: %{name} = %{version}
@@ -275,22 +215,8 @@
Requires: mythtv-themes = %{version}
Obsoletes: mythtvsetup
Provides: mythtvsetup
-%if %{build_xvmcnvidia}
-Provides: mythtv-setup
-%endif
-%if %{build_xvmcvld }
-Provides: mythtv-setup
-%endif
-%if %{build_xvmcnvidia}
-%description setup_nvidia
-%else
-%if %{build_xvmcvld }
-%description setup_via
-%else
%description setup
-%endif
-%endif
MythTV provides a unified graphical interface for recording and viewing
television programs. Refer to the mythtv package for more information.
@@ -298,22 +224,17 @@
backend.
%prep
-%setup -q -n mythtv
-rm -fr `find -name CVS`
-rm -fr `find -name .cvsignore`
-%patch0 -p0 -b .ostreaming
-%patch1 -p0 -b .c99
-#patch2 -p0 -b .math
-#patch3 -p0 -b .nodeinterlace
-%patch4 -p1
+%setup -q
+%patch0 -p1
+
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi
-e's,/lib/mythtv/,/%{_lib}/mythtv/,'
+find . -type f | xargs grep -l /usr/local | xargs perl -pi
-e's|/usr/local|%{_prefix}|g'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi
-e's,/lib$,/%{_lib},'
+
echo "QMAKE_PROJECT_DEPTH = 0" >> mythtv.pro
echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro
-cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} \
- %{SOURCE4} %{SOURCE6} %{SOURCE8} \
- %{SOURCE10} .
+cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} .
for file in mythbackend.init \
mythbackend.sysconfig \
mythbackend.logrotate; do
@@ -330,31 +251,22 @@
< $file.in > $file
done
-# Fix /usr/local -> %{_prefix}
-grep -rl /usr/local . | xargs -r echo perl -pi.local
"-e's|/usr/local|'%{_prefix}'|g'" | sh -x
+# Fix the has_library function in myth configure for lib64
+perl -pi -e's|echo \$LIBPATHS /lib /usr/lib|echo \$LIBPATHS /%{_lib}
%{_libdir}|g' configure
-%ifarch x86_64
- %define march k8
- # Fix the has_library function in myth configure for x86_64
- perl -pi -e's|echo \$LIBPATHS /lib /usr/lib|echo \$LIBPATHS /lib64
/usr/lib64|g' configure
-#%else
-# %define march pentiumpro
-%endif
-
-cat >> settings.pro << EOF
-PREFIX = %{_prefix}
-CONFIG -= debug
-CONFIG += release
-QMAKE_CXXFLAGS_RELEASE += %{optflags}
-QMAKE_CXXFLAGS_RELEASE -= -march=%{march}
-QMAKE_CFLAGS_RELEASE += %{optflags}
-QMAKE_CFLAGS_RELEASE -= -march=%{march}
-EOF
+# Fix the arts detection
+perl -pi -e's|\$audio_arts_cflags|\$audio_arts_tmp|' configure
+
+# default recordings dir
+perl -pi -e's|/mnt/store|%{_localstatedir}/mythtv/recordings|'
setup/backendsettings.cpp
%build
-export QTDIR=/usr/lib/qt3
-export PATH=$PATH:/usr/lib/qt3/bin
-%configure \
+export QTDIR=%{_prefix}/lib/qt3
+export QTLIB=$QTDIR/%{_lib}
+export CFLAGS="%optflags"
+export CXXFLAGS="%optflags"
+
+./configure --prefix=%{_prefix} \
%if !%{build_alsa}
--disable-audio-alsa \
%endif
@@ -374,7 +286,6 @@
--enable-directx \
%endif
%if %{build_dvb}
- --dvb-path=/usr/include \
--enable-dvb \
--enable-dvb-eit \
%endif
@@ -405,35 +316,25 @@
%if !%{build_xv}
--disable-xv \
%endif
-%if %{build_xvmcnvidia}
- --enable-xvmc \
-%endif
-%if %{build_xvmcvld}
- --disable-xvmc-vld
+%if %{build_xvmc}
+ --enable-xvmc --enable-xvmc-pro
%endif
-#Fix Mandrake 10.0 compile bug
-perl -pi -e's|-g -O3|-g -O2|g' \
- ./config.mak
-/usr/lib/qt3/bin/qmake ./mythtv.pro
%make
-find contrib -type f | xargs -r chmod a-x
+#find contrib -type f | xargs -r chmod a-x
%install
-export QTDIR=/usr/lib/qt3
-export PATH=$PATH:/usr/lib/qt3/bin
-[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
-for dir in %{_bindir} %{_libdir}/mythtv/filters %{_datadir}/mythtv/themes/blue
%{_includedir}/mythtv; do
- mkdir -p %{buildroot}$dir
-done
+rm -rf %{buildroot}
+
INSTALL_ROOT=%{buildroot}; export INSTALL_ROOT
%makeinstall
+
%if %maenable
-%multiarch_includes %buildroot/%_includedir/mythtv/mythconfig.h
+%multiarch_includes %{buildroot}%_includedir/mythtv/mythconfig.h
%endif
-install -p setup/mythtv-setup %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_localstatedir}/mythtv
+mkdir -p %{buildroot}%{_localstatedir}/mythtv/recordings
mkdir -p %{buildroot}%{_var}/cache/mythtv
mkdir -p %{buildroot}%{_logdir}/mythtv
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
@@ -444,14 +345,13 @@
install -p mythbackend.sysconfig %{buildroot}%{_sysconfdir}/mythtv/mythbackend
install -p mythbackend.logrotate %{buildroot}%{_sysconfdir}/logrotate.d
-
# icon
mkdir -p %{buildroot}/%{_miconsdir}
-convert -size 16x16 programs/mythuitest/images/tv.png
%buildroot/%{_miconsdir}/%name.png
+convert programs/mythuitest/images/tv.png -resize 16x16
%buildroot/%{_miconsdir}/%name.png
mkdir -p %{buildroot}/%{_iconsdir}
-convert -size 32x32 programs/mythuitest/images/tv.png
%buildroot/%{_iconsdir}/%name.png
+convert programs/mythuitest/images/tv.png -resize 32x32
%buildroot/%{_iconsdir}/%name.png
mkdir -p %{buildroot}/%{_liconsdir}
-convert -size 48x48 programs/mythuitest/images/tv.png
%buildroot/%{_liconsdir}/%name.png
+convert programs/mythuitest/images/tv.png -resize 48x48
%buildroot/%{_liconsdir}/%name.png
mkdir -p %{buildroot}%{_menudir}
# Mandrake Menu entrys
@@ -461,7 +361,7 @@
section="Multimedia/Video" \
title="MythTV" \
longtitle="Record, playback and watch TV" \
-command="/usr/bin/mythfrontend" \
+command="%{_prefix}/mythfrontend" \
icon="%name.png" \
terminal="false"
EOF
@@ -472,45 +372,51 @@
section="Multimedia/Video" \
title="MythTV Setup" \
longtitle="Setup MythTV backend" \
-command="/usr/bin/mythtv-setup" \
+command="%{_prefix}/mythtv-setup" \
icon="%name.png" \
terminal="false"
EOF
+cat > README.urpmi <<EOF
+If this is a new install (NOT an upgrade), you can import the
+initial database by running:
+mysql -u root < %{_docdir}/mythtv-%{version}/database/mc.sql
+
+IMPORTANT NOTICE IF UPGRADING TO MYTHTV 0.19:
+As of mythtv-backend-0.19-1plf, the mythbackend is run as user
+mythtv instead of root for increased security. If you're upgrading
+from pre-0.19 PLF release, you have to chown the old mythtv files
+to the ownership of mythtv:mythtv.
+You have to do the following as root:
+chown -R mythtv:mythtv %{_localstatedir}/mythtv %{_var}/cache/mythtv
%{_logdir}/mythtv
+You also have to chown any recording dirs etc you have.
+EOF
+
mkdir -p %{buildroot}%{_libdir}/mythtv/plugins
-mkdir -p %{buildroot}%{_datadir}/mythtv/build/
-install -p settings.pro %{buildroot}%{_datadir}/mythtv/build/
+#mkdir -p %{buildroot}%{_datadir}/mythtv/build/
+#install -p settings.pro %{buildroot}%{_datadir}/mythtv/build/
%clean
-[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
+rm -rf %{buildroot}
-%pre
+%pre backend
# Add the "mythtv" user
-/usr/sbin/useradd -c "mythtvbackend User" \
- -s /sbin/nologin -r -d %{_localstatedir}/mythtv mythtv 2> /dev/null ||
:
+%_pre_useradd mythtv %{_localstatedir}/mythtv /sbin/nologin
+%{_bindir}/gpasswd -a mythtv video &>/dev/null
-%post
+%postun backend
+%_postun_userdel mythtv
%post -n %{lib_name} -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig
%post backend
-/sbin/chkconfig --add mythbackend
-if [ -f /var/lock/subsys/mythbackend ]; then
- service mythbackend reload >/dev/null 2>&1 || :
-fi
-cat <<EOF
-Run "mysql -u root < %{_docdir}/mythtv-%{version}/database/mc.sql".
-Then run %{_bindir}/mythtv-setup.
-EOF
+%_post_service mythbackend
%preun backend
-if [ $1 = 0 ]; then
- /sbin/service mythbackend stop > /dev/null 2>&1
- /sbin/chkconfig --del mythbackend
-fi
+%_preun_service mythbackend
%post frontend
%{update_menus}
@@ -526,20 +432,20 @@
%files
%defattr(-,root,root,-)
-%doc README* UPGRADING AUTHORS COPYING FAQ
+%doc README UPGRADING AUTHORS COPYING FAQ
%doc database keys.txt
-%doc docs/*.html docs/*.png docs/*.txt contrib
+%doc docs/*.html docs/*.png docs/*.txt docs/i18n contrib
%doc configfiles
-%define ghostattr %attr(0644,root,root) %verify(not md5 size mtime) %ghost
%config(missingok,noreplace)
-
%files backend
%defattr(-,root,root,-)
+%doc README.urpmi
#%config(noreplace) %{_datadir}/mythtv/mysql.txt
%{_bindir}/mythbackend
%{_bindir}/mythfilldatabase
%{_bindir}/mythjobqueue
%attr(-,mythtv,mythtv) %dir %{_localstatedir}/mythtv
+%attr(-,mythtv,mythtv) %dir %{_localstatedir}/mythtv/recordings
%attr(-,mythtv,mythtv) %dir %{_var}/cache/mythtv
%{_initrddir}/mythbackend
%config(noreplace) %{_sysconfdir}/mythtv/mythbackend
@@ -551,28 +457,21 @@
%defattr(-,root,root,-)
#%config(noreplace) %{_datadir}/mythtv/mysql.txt
%{_datadir}/mythtv/*.xml
+%{_bindir}/mythwelcome
%{_bindir}/mythfrontend
%{_bindir}/mythtv
-%{_bindir}/mythepg
-%{_bindir}/mythprogfind
%{_bindir}/mythcommflag
+%{_bindir}/mythlcdserver
%{_bindir}/mythtranscode
%{_bindir}/mythtvosd
+%{_bindir}/mythshutdown
%{_libdir}/mythtv/filters
%{_libdir}/mythtv/plugins
%{_datadir}/mythtv/*.ttf
%{_datadir}/mythtv/i18n/*.qm
%{_menudir}/mythtv-frontend
-%if %{build_xvmcnvidia}
-%files setup_nvidia
-%else
-%if %{build_xvmcvld}
-%files setup_via
-%else
%files setup
-%endif
-%endif
%defattr(-,root,root,-)
%{_bindir}/mythtv-setup
%{_menudir}/mythtv-setup
@@ -593,16 +492,41 @@
%if %maenable
%multiarch %{multiarch_includedir}/mythtv/mythconfig.h
%endif
-%{_includedir}/mythtv/*.h
-%{_includedir}/mythtv/ffmpeg/*.h
-%{_includedir}/mythtv/mpeg2dec/*.h
-%{_includedir}/mythtv/mythconfig.mak
-%{_includedir}/mythui/*.h
+%{_includedir}/mythtv
+# FIXME: Manually multiarch mythconfig.mak
+%{_includedir}/mythui
%{_libdir}/*.so
%{_libdir}/*.a
-%{_datadir}/mythtv/build/settings.pro
+#%{_datadir}/mythtv/build/settings.pro
%changelog
+* Tue Feb 21 2006 Anssi Hannula <[EMAIL PROTECTED]> 0.19-1plf
+- enable dvd by default
+- clean spec
+- drop patch0, don't force O_STREAMING if not supported by kernel/headers
+- drop patch4, patch5, fixed upstream
+- fix icons
+- drop patch1, unneeded
+- fix requires qt3-mysql
+- convert to README.urpmi
+- use dts_pic (patch0)
+- mythtv user created by backend only
+- mythbackend runs as user mythtv, add notice to README.urpmi
+- fix build with arts
+- drop broken nvidia/via renaming thing, use xvmcw by default
+- apply default recordings dir of /var/lib/mythtv/recordings
+- add mythtv user to video group
+
+* Sat Oct 15 2005 Anssi Hannula <[EMAIL PROTECTED]> 0.18.2-0.7467.2plf
+- fix requires qt3-MySQL
+
+* Thu Oct 13 2005 Anssi Hannula <[EMAIL PROTECTED]> 0.18.2-0.7467.1plf
+- upgrade to release-0-18-fixes svn branch revision 7467
+
+* Mon Oct 10 2005 Anssi Hannula <[EMAIL PROTECTED]> 0.18.1-20050618.6plf
+- fix x86_64 build (patch5)
+- use %%_post_service %%_preun_service %%_pre_useradd %%_postun_userdel
+
* Mon Aug 22 2005 Stefan van der Eijk <[EMAIL PROTECTED]> 0.18.1-20050618.5plf
- fix menu's
- add menu entry to setup package
_______________________________________________
PLF-announce mailing list
[email protected]
https://www.zarb.org/mailman/listinfo/plf-announce