rpms/mythtv/devel PACKAGE-LICENSING, NONE, 1.1 mysql.txt, NONE, 1.1 mythbackend.init.in, NONE, 1.1 mythbackend.logrotate.in, NONE, 1.1 mythbackend.sysconfig.in, NONE, 1.1 mythfrontend.desktop, NONE, 1.1 mythplugins-0.21-svnfixes.patch, NONE, 1.1 mythtv-0.20-mythstreammenu.diff, NONE, 1.1 mythtv-0.21-svnfixes.patch, NONE, 1.1 mythtv-setup.desktop, NONE, 1.1 mythtv.spec, NONE, 1.1 mythweb.conf, NONE, 1.1

Thorsten Leemhuis thl at rpmfusion.org
Sun Aug 3 17:20:03 CEST 2008


Author: thl

Update of /cvs/free/rpms/mythtv/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv26036

Added Files:
	PACKAGE-LICENSING mysql.txt mythbackend.init.in 
	mythbackend.logrotate.in mythbackend.sysconfig.in 
	mythfrontend.desktop mythplugins-0.21-svnfixes.patch 
	mythtv-0.20-mythstreammenu.diff mythtv-0.21-svnfixes.patch 
	mythtv-setup.desktop mythtv.spec mythweb.conf 
Log Message:
import (2)


--- NEW FILE PACKAGE-LICENSING ---
The mythtv sources are all distributed under the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version, with the following exceptions:

GPLv2 or QPL:
-------------
mythtv/libs/libmyth/mythwizard.*


LGPLv2:
-------
mythtv/libs/libmyth/qmdcodec.*


GPLv2+ or LGPLv2+:
----------------
mythtv/libs/libswscale/*.{c,h}


LGPLv2+:
--------
mythtv/libs/libavcodec/*
mythtv/libs/libavformat/*
mythtv/libs/libavutil/*
mythtv/libs/libmyth/bio2jack.*
mythtv/libs/libmythlivemedia/*
mythtv/libs/libmythsoundtouch/*


--- NEW FILE mysql.txt ---
DBHostName=localhost

# By default, Myth tries to ping the DB host to see if it exists.
# If your DB host or network doesn't accept pings, set this to no:
#
#DBHostPing=no

DBUserName=mythtv
DBPassword=mythtv
DBName=mythconverg
DBType=QMYSQL3

# Set the following if you want to use something other than this
# machine's real hostname for identifying settings in the database.
# This is useful if your hostname changes often, as otherwise you
# will need to reconfigure mythtv (or futz with the DB) every time.
# TWO HOSTS MUST NOT USE THE SAME VALUE
#
#LocalHostName=my-unique-identifier-goes-here

# If you want your frontend to be able to wake your MySQL server
# using WakeOnLan, have a look at the following settings:
#
#
# The time the frontend waits (in seconds) between reconnect tries.
# This should be the rough time your MySQL server needs for startup
#
#WOLsqlReconnectWaitTime=0
#
#
# This is the number of retries to wake the MySQL server
# until the frontend gives up
#
#WOLsqlConnectRetry=5
#
#
# This is the command executed to wake your MySQL server.
#
#WOLsqlCommand=echo 'WOLsqlServerCommand not set'


--- NEW FILE mythbackend.init.in ---
#!/bin/bash
#
# Startup script for mythbackend
#
# chkconfig: - 86 14
# description: mythbackend.
# processname: mythbackend
# pidfile: @rundir@/mythbackend.pid
# config:

# Source function library.
. @initdir@/functions

if [ -f @sysconfigdir@/mythbackend ]; then
        . @sysconfigdir@/mythbackend
fi

## Defaults, override them in @sysconfigdir@/mythbackend
: ${MYTHTV_HOME=@sysconfdir@/mythtv}

binary=@bindir@/mythbackend
prog=mythbackend
RETVAL=0
OPTIONS="$OPTIONS --daemon --logfile @logdir@/mythtv/$prog.log --pidfile @rundir@/$prog.pid"

start() {
  echo -n $"Starting $prog: "
  touch @rundir@/mythbackend.pid; chown mythtv:mythtv @rundir@/mythbackend.pid
  export MYTHCONFDIR="$MYTHTV_HOME"
  export HOME="$MYTHTV_HOME"
  daemon $binary $OPTIONS
  RETVAL=$?
  echo
  [ $RETVAL = 0 ] && touch @subsysdir@/$prog
  return $RETVAL
}

stop() {
  echo -n $"Stopping $prog: "
  killproc $binary
  RETVAL=$?
  echo
  [ $RETVAL = 0 ] && rm -f @subsysdir@/$prog @rundir@/$prog.pid
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  reload|restart)
	stop
	start
	;;
  status)
	status $prog
	;;
  *)
	echo $"Usage: $prog {start|stop|status|restart}"
	exit 1
esac

exit $RETVAL


--- NEW FILE mythbackend.logrotate.in ---
@logdir@/mythtv/mythbackend.log {
    notifempty
    missingok
    compress
    compresscmd /usr/bin/bzip2
    uncompresscmd /usr/bin/bunzip2
    compressext .bz2
    weekly
    rotate 4
    size 10M
    postrotate
       /bin/kill -HUP `cat /var/run/mythbackend.pid 2>/dev/null` 2> /dev/null || true
    endscript
}


--- NEW FILE mythbackend.sysconfig.in ---
#MYTHTV_HOME=@sysconfdir@/mythtv
#OPTIONS=


--- NEW FILE mythfrontend.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=mythTV frontend
Comment=Record, playback and watch TV.
Icon=mythfrontend.png
Exec=mythfrontend
Terminal=false
Type=Application

mythplugins-0.21-svnfixes.patch:

--- NEW FILE mythplugins-0.21-svnfixes.patch ---
Index: mythplugins/mythweb/modules/_shared/lang/German.lang
===================================================================
--- mythplugins/mythweb/modules/_shared/lang/German.lang	(revision 16468)
+++ mythplugins/mythweb/modules/_shared/lang/German.lang	(working copy)
@@ -17,6 +17,7 @@
 "$1 hrs"
     $1 Std.
 "$1 is not responding."
+    $1 antwortet nicht
 "$1 KB"
     $1 kB
 "$1 MB"
@@ -34,6 +35,7 @@
 "$1 recordings"
     $1 Aufnahmen
 "$1 requests pending."
+    $1 Anfragen zu bearbeiten
 "$1 Search"
     $1 Suche
 "$1 TB"
@@ -41,35 +43,50 @@
 "$1 to $2"
     $1 bis $2
 "$1 wasted"
+    $1 verschwendet
 "$1 year"
 "$1 years"
+    $1 Jahre
 "%s Song (%s)"
+    %s Lied (%s)
 "%s Songs"
+    %s Lieder
 "%s Songs (%s)"
+    %s Lieder (%s)
 "°C"
 "°F"
 "Aborted"
+    abgebrochen
 "Aborting"
+    breche ab
 "Action"
     Aktion
 "Activate"
     Aktivieren
 "Active Screens"
 "Add"
+    hinzufügen
 "Add Album to Current Playlist"
+    zur Wiedergabelsite hinzufügen
 "Add Mix"
+    Mix hinzufügen
 "Add Song to Current Playlist"
+    Lied hinzufügen
 "add string"
+    hinzufügen
 "Add this Playlist as a Subplaylist"
 "Add To Active Screens"
 "Additional Tables"
     zus. Tabellen
 "Admin Key"
 "Advanced"
+    erweitert
 "Advanced Options"
     Erweiterte Optionen
 "Advanced Search"
+    Erweiterte Suche
 "airdate"
+    Sendezeit
 "Airdate"
     Sendezeit
 "Airtime"
@@ -77,11 +94,16 @@
 "Album Listing"
 "Album Tracks"
 "Albums"
+    Alben
 "Albums with songs by %s"
+    Alben, die %s enthalten
 "All"
+    Alles
 "All Albums"
+    Alle Alben
 "All Categories"
 "All Fields"
+    Alles
 "All Genres"
 "All groups"
     Alle Gruppen
@@ -94,6 +116,7 @@
 "ALLOCINETYPE"
 "An error occured while adding your playlist."
 "and"
+    und
 "Any"
     Jeder
 "Any Category"
@@ -103,18 +126,23 @@
 "Any Program Type"
     Jeder Programmtyp
 "Append"
+    anhängen
 "Append to Current Playlist"
+    an Wiedergabeliste anhängen
 "Are you sure you want to delete the following show?"
     Diese Aufnahme wirklich löschen?
 "Are you sure you want to DELETE THIS SAVED PLAYLIST?"
 "Artist Listing"
 "Artists"
+    Künstler
 "Artists Beginning with %s"
+    Künstler mit Anfangsbuchstabe %s
 "ASX Stream"
 "Audio Bitrate"
 "Audio for Hearing Impaired"
 "Audio for Visually Impaired"
 "Auto Expire"
+    
 "Auto-expire recordings"
     Aufnahmen autom. löschen
 "Auto-flag commercials"
@@ -135,17 +163,25 @@
     Backend Status
 "Backspace"
 "Begin a New Search"
+    neue Suche
 "brightness"
     Helligkeit
 "Browse"
+    Stöbern
 "Browse = no"
 "Browse = yes"
 "Browse all"
+    Stöbere überall
 "Browse All Albums"
+    Stöbere in allen Alben
 "Browse Music"
+    Stöbern
 "Browse the Music Database"
+    Musikdatenbank durchstöbern 
 "By Artist Beginning With"
+    Anfangsbuchstabe
 "By Genre"
+    Genre
 "callsign"
     Kurzname
 "Cancel"
@@ -153,6 +189,7 @@
     Aufnahme abbrechen
 "Cancelled"
 "Caps Lock"
+    Feststellt.
 "Cast"
     Besetzung
 "category"
@@ -164,8 +201,11 @@
 "CC"
     CC
 "Chan. Callsign"
+    Sender-'Callsign'
 "Chan. Name"
+    Sendername
 "Chan. Number"
+    Sendernummer
 "Channel"
     Sender
 "channel"
@@ -175,26 +215,36 @@
 "Channel Detail"
     Details zum Sender
 "Channel Info"
+    Senderinformationen
 "Channels"
+    Sender
 "channum"
     Sender
 "Check for duplicates in"
     Nach Wdhgn. suchen in
 "Childrens Movies"
+    Kinderfilme
 "Choose Genre.."
 "Choose Type"
+    auswählen
 "Click to disable Auto Expire"
+    autom. Ablaufen ausschalten 
 "Click to enable Auto Expire"
+    autom. Ablaufen einschalten
 "Click to View Playlist"
+    Wiedergabeliste anschauen
 "Closed Captioning"
+    Untertitel
 "colour"
     Farbe
 "Commands"
     Optionen
 "Commercials Flagged"
+    Werbung markiert
 "commfree"
     Werbefrei
 "Conflict"
[...11890 lines suppressed...]
+        <translation>Anna päivitysväli käyttäen nuolinäppäimiä. Pienin arvo on 30 minuuttia.</translation>
     </message>
     <message>
         <source>Press Escape or Menu to exit.</source>
-        <translation type="unfinished"></translation>
+        <translation>Paina Escape tai Menu poistuaksesi.</translation>
     </message>
 </context>
 <context>
@@ -101,17 +101,18 @@
     <name>QObject</name>
     <message>
         <source>MythNews</source>
-        <translation type="unfinished"></translation>
+        <translation>MythUutiset</translation>
     </message>
     <message>
         <source>Are you sure you want to delete this news site
 
 %1</source>
-        <translation type="unfinished"></translation>
+        <translation>Poistetaanko varmasti tämä uutislähde
+%1</translation>
     </message>
     <message>
         <source>Downloading media...</source>
-        <translation type="unfinished"></translation>
+        <translation>Ladataan uutisia...</translation>
     </message>
 </context>
 <context>
Index: mythplugins/mythnews/i18n/mythnews_nl.qm
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: mythplugins/mythnews/i18n/mythnews_fi.qm
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: mythplugins/mythnews/i18n/mythnews_nl.ts
===================================================================
--- mythplugins/mythnews/i18n/mythnews_nl.ts	(revision 16468)
+++ mythplugins/mythnews/i18n/mythnews_nl.ts	(working copy)
@@ -1,51 +1,65 @@
-<!DOCTYPE TS><TS>
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS><TS version="1.1" language="nl">
+<defaultcodec></defaultcodec>
 <context>
     <name>MythNews</name>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="516"/>
         <source>Updated</source>
         <translation>Ververst</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="523"/>
         <source>Unknown</source>
         <translation>Onbekend</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="998"/>
         <source>Edit Site Details</source>
         <translation>Bewerk Site Details</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1000"/>
         <source>Enter Site Details</source>
         <translation>Geef Site Details</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1016"/>
         <source>Name:</source>
         <translation>Naam:</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1028"/>
         <source>URL:</source>
         <translation>URL:</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1039"/>
         <source>Icon:</source>
         <translation>Icoon:</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1051"/>
         <source>OK</source>
         <translation>OK</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1093"/>
         <source>Cancel</source>
         <translation>Annuleer</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1090"/>
         <source>Edit News Site</source>
         <translation>Bewerk Nieuws Site</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1091"/>
         <source>Add News Site</source>
         <translation>Voeg Nieuws Site Toe</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1092"/>
         <source>Delete News Site</source>
         <translation>Verwijder Nieuws Site</translation>
     </message>
@@ -53,47 +67,57 @@
 <context>
     <name>MythNewsConfig</name>
     <message>
+        <location filename="../mythnews/mythnewsconfig.cpp" line="259"/>
         <source>Press MENU to set the update frequency.</source>
         <translation>MENU kiezen om verversingsfrequentie aan te passen</translation>
     </message>
     <message>
+        <location filename="" line="7471221"/>
         <source>Set update frequency by using the up/down arrows.
 The minimum allowed value is 30 Minutes.</source>
         <translation type="obsolete">Verversingsfrequentie kiezen met pijltoetsen. 
 De minimumwaarde is 30 minuten.</translation>
     </message>
     <message>
+        <location filename="" line="7471221"/>
         <source>Press MENU to return to feed selection.</source>
         <translation type="obsolete">MENU kiezen om terug te keren.</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnewsconfig.cpp" line="308"/>
         <source>Set update frequency by using the up/down arrows.Minimum value is 30 Minutes.</source>
-        <translation type="unfinished"></translation>
+        <translation>Verversingsfrequentie kiezen met pijltoetsen. De minimumwaarde is 30 minuten.</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnewsconfig.cpp" line="313"/>
         <source>Press Escape or Menu to exit.</source>
-        <translation type="unfinished"></translation>
+        <translation>Gebruik escape of menu om af te sluiten.</translation>
     </message>
 </context>
 <context>
     <name>NewsSite</name>
     <message>
+        <location filename="../mythnews/newsengine.cpp" line="217"/>
         <source>Failed to retrieve news</source>
         <translation>Kon berichten niet ophalen</translation>
     </message>
     <message>
+        <location filename="../mythnews/newsengine.cpp" line="197"/>
         <source>Retrieve Failed. </source>
         <translation>Ophalen mislukt. </translation>
     </message>
     <message>
+        <location filename="../mythnews/newsengine.cpp" line="206"/>
         <source>No Cached News</source>
         <translation>Geen nieuws in geheugen</translation>
     </message>
     <message>
+        <location filename="../mythnews/newsengine.cpp" line="219"/>
         <source>Failed to read downloaded file</source>
         <translation>Ka opgehaalde bestand niet lezen</translation>
     </message>
     <message>
+        <location filename="../mythnews/newsengine.cpp" line="225"/>
         <source>Showing Cached News</source>
         <translation>Nieuws in geheugen wordt getoond</translation>
     </message>
@@ -101,10 +125,12 @@
 <context>
     <name>QObject</name>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1134"/>
         <source>MythNews</source>
         <translation>MythNieuws</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="1136"/>
         <source>Are you sure you want to delete this news site
 
 %1</source>
@@ -113,13 +139,15 @@
 %1</translation>
     </message>
     <message>
+        <location filename="../mythnews/mythnews.cpp" line="843"/>
         <source>Downloading media...</source>
-        <translation type="unfinished"></translation>
+        <translation>Media aan het downloaden...</translation>
     </message>
 </context>
 <context>
     <name>ThemeUI</name>
     <message>
+        <location filename="themestrings.h" line="2"/>
         <source>Minutes</source>
         <translation>Minuten</translation>
     </message>

mythtv-0.20-mythstreammenu.diff:

--- NEW FILE mythtv-0.20-mythstreammenu.diff ---
--- themes/blue/theme.xml~	2006-03-27 16:13:40.000000000 +0100
+++ themes/blue/theme.xml	2006-03-27 16:13:40.000000000 +0100
@@ -745,6 +745,11 @@
     <image>setup.png</image>
     <offset>22,10</offset>
   </buttondef>
+  
+  <buttondef name="STREAM">
+    <image>stream.png</image>
+    <offset>60,30</offset>
+  </buttondef>  
 
 </myththeme>
 
--- programs/mythfrontend/library.xml~	2006-03-27 16:12:24.000000000 +0100
+++ programs/mythfrontend/library.xml	2006-03-27 16:12:24.000000000 +0100
@@ -139,5 +139,12 @@
      <action>PLUGIN mythgame</action>
      <depends>mythgame</depends>
    </button>
+   
+   <button>
+     <type>STREAM</type>
+     <text>Internet streams</text>
+     <action>PLUGIN mythstream</action>
+     <depends>mythstream</depends>
+   </button>
 
 </mythmenu>
--- programs/mythfrontend/media_settings.xml~	2006-03-27 16:13:09.000000000 +0100
+++ programs/mythfrontend/media_settings.xml	2006-03-27 16:13:09.000000000 +0100
@@ -141,4 +141,11 @@
       <depends>mythburn</depends>
    </button>
 
+   <button>
+      <type>STREAM</type>
+      <text>Stream settings</text>
+      <action>CONFIGPLUGIN mythstream</action>
+      <depends>mythstream</depends>
+  </button>
+
 </mythmenu>

mythtv-0.21-svnfixes.patch:

--- NEW FILE mythtv-0.21-svnfixes.patch ---
Index: mythtv/i18n/mythfrontend_nb.ts
===================================================================
--- mythtv/i18n/mythfrontend_nb.ts	(revision 16468)
+++ mythtv/i18n/mythfrontend_nb.ts	(working copy)
@@ -151,7 +151,7 @@
     </message>
     <message>
         <source>Use channel scanner to find channels for this input.</source>
-        <translation>Bruk kanalsøkeren for å finne kanaler fro denne inndatakilden.</translation>
+        <translation>Bruk kanalsøkeren for å finne kanaler for denne inndatakilden.</translation>
     </message>
     <message>
         <source>This uses the listings data source to provide the channels for this input.</source>
@@ -391,7 +391,7 @@
     </message>
     <message>
         <source>Anytime on a specific day of the week</source>
-        <translation>Nårr som helst på en bestemt ukedag</translation>
+        <translation>Når som helst på en bestemt ukedag</translation>
     </message>
     <message>
         <source>Only on weekdays (Monday through Friday)</source>
@@ -1165,7 +1165,7 @@
     </message>
     <message>
         <source>The connection to the master backend server has gone away for some reason.. Is it running?</source>
-        <translation>Tilkoblingen til hovedtjeneren har av en eller anenn grunn forsvunnet. Kjører den?</translation>
+        <translation>Tilkoblingen til hovedtjeneren har av en eller annen grunn forsvunnet. Kjører den?</translation>
     </message>
     <message>
         <source>There are also other clients using this database. They should be shut down first.</source>
@@ -1216,7 +1216,7 @@
         <source>The theme you are using is missing the &apos;file_browser_background&apos; element. 
 
 Returning to the previous menu.</source>
-        <translation>Temaet som brukes mangler elementet «file_borwsser_background». 
+        <translation>Temaet som brukes mangler elementet «file_browser_background». 
 
 GÃ¥r tilbake til forrige meny.</translation>
     </message>
@@ -1224,7 +1224,7 @@
         <source>The theme you are using is missing the &apos;file_browser&apos; element. 
 
 Returning to the previous menu.</source>
-        <translation>Temaet som brukes mangler elementet «file_borwser». 
+        <translation>Temaet som brukes mangler elementet «file_browser». 
 
 GÃ¥r tilbake til forrige meny.</translation>
     </message>
@@ -1559,7 +1559,7 @@
     </message>
     <message>
         <source>Commercials are flagged</source>
-        <translation>Reklamer blir markert</translation>
+        <translation>Reklamer er markert</translation>
     </message>
     <message>
         <source>An editing cutlist is present</source>
@@ -1949,7 +1949,7 @@
     </message>
     <message>
         <source>Reverse Time</source>
-        <translation>Omvendt kronoligisk rekkefølge</translation>
+        <translation>Omvendt kronologisk rekkefølge</translation>
     </message>
     <message>
         <source>Sort by Title</source>
@@ -2388,7 +2388,7 @@
     </message>
     <message>
         <source>If this frontend&apos;s host name changes often, check this box and provide a network-unique name to identify it. If unchecked, the frontend machine&apos;s local host name will be used to save preferences in the database.</source>
-        <translation>Hvis klientens vertsnavn enders ofte, kryss av denne boksen og oppgi et unikt nettverksnavn for å identifisere den. Er dette ikke avkrysset, vil klientens lokale vertsnavn bli brukt for å lagre innstillinger i databasen.</translation>
+        <translation>Hvis klientens vertsnavn endres ofte, kryss av denne boksen og oppgi et unikt nettverksnavn for å identifisere den. Er dette ikke avkrysset, vil klientens lokale vertsnavn bli brukt for å lagre innstillinger i databasen.</translation>
     </message>
     <message>
         <source>Custom identifier</source>
@@ -3163,7 +3163,7 @@
     </message>
     <message>
         <source>This showing will be recorded.</source>
-        <translation>Denne sendingen vil bil tatt opp.</translation>
+        <translation>Denne sendingen vil bli tatt opp.</translation>
     </message>
     <message>
         <source>This showing is being recorded.</source>
@@ -3183,7 +3183,7 @@
     </message>
     <message>
         <source>This showing was not recorded because </source>
-        <translation>Denne sendingen vil ikke bli tatt opp fordi </translation>
+        <translation>Denne sendingen ble ikke tatt opp fordi </translation>
     </message>
     <message>
         <source>it was manually set to not record.</source>
@@ -3818,7 +3818,7 @@
     </message>
     <message>
         <source>Match duplicates using subtitle</source>
-        <translation>Finn duplisering ved hejlp av undertittel</translation>
+        <translation>Finn duplisering ved hjelp av undertittel</translation>
     </message>
     <message>
         <source>Match duplicates using description</source>
@@ -3850,7 +3850,7 @@
     </message>
     <message>
         <source>Allow auto expire</source>
-        <translation>Tillatt automatisk utløing</translation>
+        <translation>Tillat automatisk utløping</translation>
     </message>
     <message>
         <source>Don&apos;t allow auto expire</source>
@@ -3866,11 +3866,11 @@
     </message>
     <message>
         <source>Delete oldest if this would exceed the max episodes</source>
-        <translation>Slett den eldste hvis denne overstiger tillate episoder</translation>
+        <translation>Slett den eldste hvis denne overstiger antall tillatte episoder</translation>
     </message>
     <message>
         <source>Don&apos;t record if this would exceed the max episodes</source>
-        <translation>Ikke ta opp hvis denne overstiger tillate episoder</translation>
+        <translation>Ikke ta opp hvis denne overstiger antall tillatte episoder</translation>
     </message>
     <message>
         <source>No episode limit</source>
@@ -3956,7 +3956,7 @@
         <source>You MUST run &apos;mythfilldatabase --manual the first time,
  instead of just &apos;mythfilldatabase&apos;.
 Your grabber does not provide channel numbers, so you have to set them manually.</source>
-        <translation>Første gangen MÅ «mythfilldatabase --manual» kjøres i stedet for bare «mythfilldatabase». Henteren tildeler ikke kanalnumbre, så disse må angis manuelt.</translation>
+        <translation>Første gangen MÅ «mythfilldatabase --manual» kjøres i stedet for bare «mythfilldatabase». Henteren tildeler ikke kanalnummer, så disse må angis manuelt.</translation>
     </message>
     <message>
         <source>Video source setup</source>
@@ -4242,7 +4242,7 @@
     </message>
     <message>
         <source>Enable this setting if MythTV is playing &quot;crackly&quot; audio and you are using hardware encoding. This setting will have no effect on MPEG-4 or RTJPEG video. MythTV will keep extra audio data in its internal buffers to workaround this bug.</source>
-        <translation>Slå på denne innstillingen hvis MythTV spiller hakkete lyd og det brukes maskinvarekoding. Innstillingen har ingen effekt på MPEG-4- eller RTJPEG-video. Hakkingen fjernes ved at MythTV beholde ekstra lyddata i dets interne hurtigminne.</translation>
+        <translation>Slå på denne innstillingen hvis MythTV spiller hakkete lyd og det brukes maskinvarekoding. Innstillingen har ingen effekt på MPEG-4- eller RTJPEG-video. Hakkingen fjernes ved at MythTV beholder ekstra lyddata i dets interne hurtigminne.</translation>
     </message>
     <message>
         <source>PIP Video Location</source>
@@ -4410,7 +4410,7 @@
     </message>
     <message>
         <source>New Recording Free Disk Space Threshold (in Megabytes)</source>
-        <translation>MInimum ledig diskplass for å ta opp (i MB)</translation>
+        <translation type="unfinished">Minimum ledig diskplass for å ta opp (i MB)</translation>
     </message>
     <message>
         <source>MythTV will stop scheduling new recordings on a backend when its free disk space falls below this value.</source>
@@ -4418,7 +4418,7 @@
     </message>
     <message>
         <source>Time to record before start of show (in seconds)</source>
-        <translation>TId å ta opp før programstart (i sekunder)</translation>
+        <translation type="unfinished">Tid å ta opp før programstart (i sekunder)</translation>
     </message>
     <message>
         <source>This global setting allows the recorder to start before the scheduled start time. It does not affect the scheduler. It is ignored when two shows have been scheduled without enough time in between.</source>
@@ -4430,7 +4430,7 @@
     </message>
     <message>
         <source>This global setting allows the recorder to record beyond the scheduled end time. It does not affect the scheduler. It is ignored when two shows have been scheduled without enough time in between.</source>
-        <translation>Denne globale innstillingen tillater opptakeren å ta opp etter den planlagte sluttiden. Dette påvirker ikke planlaggeren, og ignoreres når to opptak er planlagt uten nok tid mellom dem.</translation>
+        <translation>Denne globale innstillingen tillater opptakeren å ta opp etter den planlagte sluttiden. Dette påvirker ikke planleggeren, og ignoreres når to opptak er planlagt uten nok tid mellom dem.</translation>
     </message>
     <message>
         <source>List Newest Recording First</source>
@@ -4470,7 +4470,7 @@
     </message>
     <message>
         <source>If enabled, pressing the sticky rewind key in fast forward mode switches to rewind mode, and vice versa.  If disabled, it will decrease the current speed or switch to play mode if the speed can&apos;t be decreased further.</source>
-        <translation>Hvis på vil et trykk på den treige spole tilbake-knappen i framoverspillingsmodues bytte til bakoverspoling, og omvendt. Hvis av vil den nevnte handlingen senke farten eller bytte til avspillingsmodues hvis farten ikke kan reduseres mer.</translation>
+        <translation>Hvis på vil et trykk på den treige spole tilbake-knappen i framoverspillingsmodus bytte til bakoverspoling, og omvendt. Hvis av vil den nevnte handlingen senke farten eller bytte til avspillingsmodus hvis farten ikke kan reduseres mer.</translation>
     </message>
     <message>
         <source>Menu theme</source>
@@ -4578,7 +4578,7 @@
     </message>
     <message>
         <source>UDP Notify Port</source>
-        <translation>UPD-notifiseringsport</translation>
+        <translation>UDP-notifiseringsport</translation>
     </message>
     <message>
         <source>During playback, MythTV will listen for connections from the &quot;mythtvosd&quot; or &quot;mythudprelay&quot; programs on this port.  See the README in contrib/mythnotify/ for additional information.</source>
@@ -4662,7 +4662,7 @@
     </message>
     <message>
         <source>&quot;Fill&quot; is the quickest shading method. &quot;Image&quot; is somewhat slow, but has a higher visual quality. No shading will be the fastest.</source>
-        <translation>«Fyll» er den raskeste skyggeleggingsmetoden, mens «Bilde» er treigere men ser bedre ut. Ingen skyggelegging er raskest.</translation>
+        <translation>«Fyll» er den raskeste skyggeleggingsmetoden, mens «Bilde» er treigere, men ser bedre ut. Ingen skyggelegging er raskest.</translation>
     </message>
     <message>
         <source>System Exit key</source>
@@ -4690,7 +4690,7 @@
[...23978 lines suppressed...]
   + *

Index: mythtv/contrib/Win32/run/mythfrontend.cmd
===================================================================
--- mythtv/contrib/Win32/run/mythfrontend.cmd	(revision 0)
+++ mythtv/contrib/Win32/run/mythfrontend.cmd	(revision 17338)
@@ -0,0 +1,57 @@
+ at Echo off
+::
+:: Script to run mythfrontend through gdb (easily?)
+:: There is likely a more efficient way of doing this, 
+:: but we have to start somewhere.
+::
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: This script is used for gathering backtraces using gdb
+Echo COMMENTS: See: http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.2
+Echo COMMENTS: See: http://www.mythtv.org/wiki/index.php/Windows_Port
+Echo COMMENTS: --------------------------------------
+Echo.
+::
+:gdbcommands
+::
+:: Check for and Create if needed the .\gdbcommands.txt 
+::
+:: syntax taken from [ http://www.mythtv.org/docs/mythtv-HOWTO.html#toc22.2 ] 
+::
+if not exist ./gdbcommands.txt (
+    echo handle SIGPIPE nostop noprint > .\gdbcommands.txt
+    echo handle SIG33   nostop noprint >> .\gdbcommands.txt
+    echo set logging on     >> .\gdbcommands.txt
+    echo set pagination off >> .\gdbcommands.txt
+    echo set args -l myth.log -d -v all >> .\gdbcommands.txt
+    echo run >> .\gdbcommands.txt
+    echo thread apply all bt full >> .\gdbcommands.txt
+    echo set logging off >> .\gdbcommands.txt )
+ at Echo off
+
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: Clearing old gdb.txt before running gdb again.
+Echo COMMENTS: --------------------------------------
+Echo. 
+::
+:: add current data/time to gdb.txt 
+:: will this be a bad idea? who knows? =) 
+::
+date /t > .\gdb.txt
+time /t >> .\gdb.txt
+
+:gdb
+::
+:: gdb should be in the path. 
+::
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: If you need to add any switches to mythfrontend edit gdbcommands.txt
+Echo COMMENTS: see: "mythfrontend.exe --help" for options
+Echo COMMENTS: --------------------------------------
+Echo.
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: Starting: gdb
+Echo COMMENTS: --------------------------------------
+gdb .\mythfrontend.exe -x .\gdbcommands.txt 
+Echo.
+Echo The backtrace can be found in .\gdb.txt
+Echo.
Index: mythtv/contrib/Win32/run/mythbackend.cmd
===================================================================
--- mythtv/contrib/Win32/run/mythbackend.cmd	(revision 0)
+++ mythtv/contrib/Win32/run/mythbackend.cmd	(revision 17338)
@@ -0,0 +1,58 @@
+ at Echo off
+::
+:: Script to run mythbackend through gdb (easily?)
+:: There is likely a more efficient way of doing this, 
+:: but we have to start somewhere.
+::
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: This script is used for gathering backtraces using gdb
+Echo COMMENTS: See: http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.2
+Echo COMMENTS: See: http://www.mythtv.org/wiki/index.php/Windows_Port
+Echo COMMENTS: --------------------------------------
+Echo.
+::
+:gdbcommands
+::
+:: Check for and Create if needed the .\gdbcommands.txt 
+::
+:: syntax taken from [ http://www.mythtv.org/docs/mythtv-HOWTO.html#toc22.2 ] 
+::
+if not exist ./gdbcommands.txt (
+    echo handle SIGPIPE nostop noprint > .\gdbcommands.txt
+    echo handle SIG33   nostop noprint >> .\gdbcommands.txt
+    echo set logging on     >> .\gdbcommands.txt
+    echo set pagination off >> .\gdbcommands.txt
+    echo set args -l myth.log --noupnp --nosched --nojobqueue --nohousekeeper --noautoexpire -v all >> .\gdbcommands.txt
+    echo run >> .\gdbcommands.txt
+    echo thread apply all bt full >> .\gdbcommands.txt
+    echo set logging off >> .\gdbcommands.txt )
+ at Echo off
+
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: Clearing old gdb.txt before running gdb again.
+Echo COMMENTS: --------------------------------------
+Echo. 
+::
+:: add current data/time to gdb.txt 
+:: will this be a bad idea? who knows? =) 
+::
+date /t > .\gdb.txt
+time /t >> .\gdb.txt
+
+:gdb
+::
+:: gdb should be in the path. 
+::
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: If you need to add any switches to mythbackend edit gdbcommands.txt
+Echo COMMENTS: see: "mythbackend.exe --help" for options
+Echo COMMENTS: --------------------------------------
+Echo.
+Echo COMMENTS: --------------------------------------
+Echo COMMENTS: Starting: gdb
+Echo COMMENTS: --------------------------------------
+gdb .\mythbackend.exe -x .\gdbcommands.txt
+
+Echo.
+Echo The backtrace can be found in .\gdb.txt
+Echo.
Index: mythtv/contrib/OSX/osx-packager.pl
===================================================================
--- mythtv/contrib/OSX/osx-packager.pl	(revision 16468)
+++ mythtv/contrib/OSX/osx-packager.pl	(working copy)
@@ -1041,6 +1041,13 @@
 if ( $OPT{'verbose'} )
 {   push @bundler, '--verbose'   }
 
+### Framework that has a screwed up link dependency path
+my $AVCfw = '/Developer/FireWireSDK*/Examples/' .
+            'Framework/AVCVideoServices.framework';
+my @AVCfw = split / /, `ls -d $AVCfw`;
+my $AVCfw = pop @AVCfw;
+chop $AVCfw;
+
 ### Create each package.
 ### Note that this is a bit of a waste of disk space,
 ### because there are now multiple copies of each library.
@@ -1072,6 +1079,9 @@
   # Remove copy of binary
   unlink "$SCRIPTDIR/$target" or die;
 
+  if ( $AVCfw )
+  {  &RecursiveCopy($AVCfw, "$finalTarget/Contents/Frameworks")  }
+
  if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ )
  {
   my $res  = "$finalTarget/Contents/Resources";
Index: mythtv/contrib/channel_changers/6200ch.c
===================================================================
--- mythtv/contrib/channel_changers/6200ch.c	(revision 16468)
+++ mythtv/contrib/channel_changers/6200ch.c	(working copy)
@@ -76,13 +76,14 @@
 #define DCT6416_VENDOR_ID2 0x00001a66 
 #define DCT6416_MODEL_ID1  0x0000646b
 
-#define AVC1394_SUBUNIT_TYPE_6200 (9 << 19)  /* uses a reserved subunit type */ 
+#define PACE_VENDOR_ID1    0x00005094 /* 550 & 779 */
+#define PACE550_MODEL_ID1  0x00010551
+#define PACE779_MODEL_ID1  0x00010755
 
-#define AVC1394_6200_COMMAND_CHANNEL 0x000007C00   /* 6200 subunit command */
 #define AVC1394_6200_OPERAND_SET 0x20      /* 6200 subunit command operand */
 
-#define CTL_CMD0 AVC1394_CTYPE_CONTROL | AVC1394_SUBUNIT_TYPE_6200 | \
-        AVC1394_SUBUNIT_ID_0 | AVC1394_6200_COMMAND_CHANNEL | \
+#define CTL_CMD0 AVC1394_CTYPE_CONTROL | AVC1394_SUBUNIT_TYPE_PANEL | \
+        AVC1394_SUBUNIT_ID_0 | AVC1394_PANEL_COMMAND_PASS_THROUGH | \
         AVC1394_6200_OPERAND_SET
 
 #define STARTING_NODE 1  /* skip 1394 nodes to avoid error msgs */
@@ -240,7 +241,8 @@
             (dir.vendor_id == DCT6412_VENDOR_ID1) ||
             (dir.vendor_id == DCT6412_VENDOR_ID2) ||
             (dir.vendor_id == DCT6416_VENDOR_ID1) || 
-            (dir.vendor_id == DCT6416_VENDOR_ID2)) &&
+            (dir.vendor_id == DCT6416_VENDOR_ID2) ||
+            (dir.vendor_id == PACE_VENDOR_ID1)) &&
            ((dir.model_id == DCH3200_MODEL_ID1) ||
             (dir.model_id == DCT3412_MODEL_ID1) ||
             (dir.model_id == DCT3416_MODEL_ID1) ||
@@ -250,7 +252,10 @@
             (dir.model_id == DCT6200_MODEL_ID2) ||
             (dir.model_id == DCT6412_MODEL_ID1) ||
             (dir.model_id == DCT6412_MODEL_ID2) ||
-            (dir.model_id == DCT6416_MODEL_ID1)) ) {
+            (dir.model_id == DCT6416_MODEL_ID1) ||
+            (dir.model_id == PACE550_MODEL_ID1) ||
+            (dir.model_id == PACE779_MODEL_ID1)) )
+      {
             if (dir.unit_spec_id != DCT6200_SPEC_ID)
                fprintf(stderr, "Warning: Unit Spec ID different.\n");
             if (dir.unit_sw_version != DCT6200_SW_VERSION)


--- NEW FILE mythtv-setup.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=mythTV setup
Comment=Setup for mythTV.
Icon=mythtv-setup.png
Exec=mythtv-setup
Terminal=false
Type=Application


--- NEW FILE mythtv.spec ---
# svn revision number
%define _svnver r17859
%define branch release-0-21-fixes
# Nb: base 0.21 svn rev is r16468
#define branch trunk

# disabled options
%define with_debug      %{?_with_debug:      1} %{?!_with_debug:      0}
%define with_directfb   %{?_with_directfb:   1} %{?!_with_directfb:   0}
%define with_festival   %{?_with_festival:   1} %{?!_with_festival:   0}
%define with_xvmcnvidia %{?_with_xvmcnvidia: 1} %{?!_with_xvmcnvidia: 0}

%define desktop_applications mythfrontend mythtv-setup
%define desktop_vendor RPMFusion

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]')}

Summary: A digital video recorder (DVR) application
Name: mythtv
Version: 0.21
%if "%{branch}" == "trunk"
Release: 0.2.%{_svnver}%{?dist}
%else
Release: 7%{?dist}
%endif
URL: http://www.mythtv.org/
# The primary license is GPLv2+, but bits are borrowed from a number of
# projects... For a breakdown of the licensing, see PACKAGE-LICENSING.
License: GPLv2+ and LGPLv2+ and LGPLv2 and (GPLv2 or QPL) and (GPLv2+ or LGPLv2+)
Group: Applications/Multimedia
Source0: http://www.mythtv.org/mc/mythtv-%{version}.tar.bz2
Source1: http://www.mythtv.org/mc/mythplugins-%{version}.tar.bz2
Source10: PACKAGE-LICENSING
Source101: mythbackend.sysconfig.in
Source102: mythbackend.init.in
Source103: mythbackend.logrotate.in
Source106: mythfrontend.png
Source107: mythfrontend.desktop
Source108: mythtv-setup.png
Source109: mythtv-setup.desktop
Source110: mysql.txt
Source401: mythweb.conf
# Patches
Patch100: mythtv-0.21-svnfixes.patch
Patch101: mythtv-0.20-mythstreammenu.diff
#Patch102: mythtv-0.21-fedora-settings.patch
Patch200: mythplugins-0.21-svnfixes.patch
#Patch201: mythplugins-0.21-fedora-settings.patch
#
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: freetype-devel >= 2
BuildRequires: qt3-devel, mysql-devel >= 5
# Audio framework support
BuildRequires: alsa-lib-devel, arts-devel
BuildRequires: jack-audio-connection-kit-devel
# Need dvb headers to build in dvb support
BuildRequires: kernel-headers
# Remote control support
BuildRequires: lirc-devel
# X, Xv, and XvMC video support
BuildRequires: libXxf86vm-devel, libXmu-devel
BuildRequires: libXvMC-devel, libXv-devel
BuildRequires: xorg-x11-proto-devel
%ifarch %{ix86} x86_64
BuildRequires: xorg-x11-drv-i810-devel, xorg-x11-drv-openchrome-devel
%endif
%if %with_xvmcnvidia
BuildRequires: xorg-x11-drv-nvidia-devel
%endif
# OpenGL video output and vsync support
BuildRequires: libGL-devel, libGLU-devel
# DirectFB (disabled by default)
%if %with_directfb
BuildRequires: directfb-devel
%endif
# FireWire cable box support
BuildRequires: libiec61883-devel, libraw1394-devel, libavc1394-devel
#
BuildRequires: desktop-file-utils
BuildRequires: lm_sensors-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(DBD::mysql), perl(Date::Manip), perl(HTTP::Request)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: python-devel
# Misc A/V format support
BuildRequires: lame-devel
BuildRequires: libogg-devel, libvorbis-devel, libtheora-devel
BuildRequires: faad2-devel
BuildRequires: faac-devel
BuildRequires: x264-devel
BuildRequires: xvidcore-devel
BuildRequires: a52dec-devel
BuildRequires: libdca-devel
BuildRequires: gsm-devel
# mythmusic
BuildRequires: libmad-devel, taglib-devel >= 1.4
BuildRequires: libvorbis-devel >= 1.0, flac-devel >= 1.0.4
BuildRequires: libcdaudio-devel >= 0.99.6, cdparanoia-devel
BuildRequires: fftw2-devel >= 2.1.3, fftw2-devel < 3
BuildRequires: lame-devel
BuildRequires: libGL-devel
BuildRequires: SDL-devel
BuildRequires: faad2-devel
BuildRequires: libvisual-devel
# mythgallery
BuildRequires: libtiff-devel
BuildRequires: libexif-devel >= 0.6.9
# mythgame
BuildRequires: zlib-devel
# mythvideo (nb: mythdvd and mythvideo merged)
BuildRequires: libdvdnav-devel
BuildRequires: libdvdread-devel >= 0.9.4, nasm
BuildRequires: mjpegtools-devel >= 1.6.1, xvidcore-devel >= 0.9.1
BuildRequires: libfame-devel >= 0.9.0
BuildRequires: transcode >= 0.6.8
BuildRequires: libdvdcss-devel >= 1.2.7
# mythbrowser
BuildRequires: kdelibs3-devel
# mythphone
%if 0%{?fedora} >= 9
BuildRequires: ncurses-devel
%else
BuildRequires: libtermcap-devel
%endif
%if %with_festival
BuildRequires: festival-devel
%endif
#
# Requirements for the mythtv meta-package
Requires: mythtv-backend = %{version}-%{release}
Requires: mythtv-frontend = %{version}-%{release}
Requires: mythtv-setup = %{version}-%{release}
Requires: mythplugins = %{version}-%{release}
Requires: mythtv-base-themes = %{version}-%{release}
Requires: mythtv-themes = %{version}
Requires: mythtv-docs
Requires: perl-MythTV, python-MythTV
Requires: mysql-server, mysql
# Not yet packaged for rpmfusion
#Requires: xmltv
Requires: wget >= 1.9.1
# faad2-devel.ppc64 no available, so:
ExcludeArch: ppc64

%define mythfeapiver %(echo %{version} | awk -F. '{print $1 "." $2}')

%description
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv package for more information.

There are also several add-ons and themes available. In order to faciliate
installations with smart/apt-get/yum and other related package
resolvers this meta-package can be used to install all in one sweep.

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

%package docs
Summary: MythTV documentation
Group: Documentation

%description docs
The MythTV documentation, contrib files, database initialization file
and miscellaneous other bits and pieces.

%package -n libmyth
Summary: Library providing mythtv support
Group: System Environment/Libraries
Requires: lame, qt3
Requires: qt3-MySQL

%description -n libmyth
Common library code for MythTV and add-on modules (development)
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv package for more information.

%package -n libmyth-devel
Summary: Development files for libmyth
Group: Development/Libraries
Requires: libmyth = %{version}-%{release}
Requires: freetype-devel >= 2, lame-devel, qt3-devel,
Requires: mysql-devel
Requires: alsa-lib-devel, arts-devel
Requires: libGL-devel, libGLU-devel
Requires: kernel-headers
Requires: lirc-devel
Requires: xorg-x11-proto-devel
Requires: libXxf86vm-devel, libXmu-devel
Requires: libXvMC-devel, libXv-devel
Requires: libGL-devel, libGLU-devel
Requires: libiec61883-devel, libraw1394-devel, libavc1394-devel
Requires: alsa-lib-devel, arts-devel
Requires: jack-audio-connection-kit-devel
%if %with_directfb
Requires: directfb-devel
%endif

%description -n libmyth-devel
This package contains the header files and libraries for developing
add-ons for mythtv.

%package base-themes
Summary: Core user interface themes for mythtv
Group: Applications/Multimedia

%description base-themes
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv-docs package for more information.

This package contains the base themes for the mythtv user interface.

%package frontend
Summary: Client component of mythtv (a PVR)
Group: Applications/Multimedia
Requires: freetype, lame
Requires: mythtv-common = %{version}-%{release}
Requires: mythtv-base-themes = %{version}
Provides: mythtv-frontend-api = %{mythfeapiver}

%description frontend
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv package for more information.

This package contains only the client software, which provides a
front-end for playback and configuration.  It requires access to a
mythtv-backend installation, either on the same system or one
reachable via the network.

%package backend
Summary: Server component of mythtv (a PVR)
Group: Applications/Multimedia
Requires: lame
Requires: mythtv-common = %{version}-%{release}
Conflicts: xmltv-grabbers < 0.5.37

%description backend
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv package for more information.

This package contains only the server software, which provides video
and audio capture and encoding services.  In order to be useful, it
requires a mythtv-frontend installation, either on the same system or
one reachable via the network.

%package setup
Summary: Setup the mythtv backend
Group: Applications/Multimedia
Requires: freetype
Requires: mythtv-backend = %{version}-%{release}
Requires: mythtv-base-themes = %{version}

%description setup
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv package for more information.

This package contains only the setup software for configuring the
mythtv backend.

%package common
Summary: Common components needed by multiple other MythTV components
Group: Applications/Multimedia

%description common
MythTV provides a unified graphical interface for recording and viewing
television programs.  Refer to the mythtv package for more information.

This package contains components needed by multiple other MythTV components.

%package -n mythplugins
Summary: Main MythTV plugins
Group: Applications/Multimedia
Requires: mythmusic = %{version}-%{release}, mythvideo = %{version}-%{release}
Requires: mythweather = %{version}-%{release}, mythgallery = %{version}-%{release}
Requires: mythgame = %{version}-%{release}, mythnews = %{version}-%{release}
Requires: mythbrowser = %{version}-%{release}, mythphone = %{version}-%{release}
Requires: mythcontrols = %{version}-%{release}, mythflix = %{version}-%{release}
Requires: mytharchive = %{version}-%{release}, mythzoneminder = %{version}-%{release}
Requires: mythmovies = %{version}-%{release}
Requires: mythweb = %{version}-%{release}

%description -n mythplugins
This is a consolidation of all the official MythTV plugins that used to be
distributed as separate downloads from mythtv.org.

%package -n mythmovies
Summary: A module for MythTV for providing local show times and cinema listings
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythmovies
MythZoneMinder is a plugin to provide show times and cinema listings
based on Zip/Post code and a given radius. It uses external scripts to
grab times and so can be used in any country so long as a script is
written for a local data source. It ships with a grabber for the USA
which uses the ignyte website.

%package -n mythmusic
Summary: The music player add-on module for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythmusic
Music add-on for mythtv.

%package -n mythvideo
Summary: A generic video player frontend module for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}
Requires: mplayer
Requires: transcode >= 0.6.8
Provides: mythdvd = %{version}-%{release}
Obsoletes: mythdvd < %{version}-%{release}

%description -n mythvideo
MythVideo is a MythTV module that allows you to play videos, DVDs and
(optionally) VCDs. It can also be configured to let you rip DVDs and
transcode their video and audio content to other (generally smaller)
formats. The player can either use the MythTV internal software (which
now supports DVD menus), or simply to invoke your favorite DVD/XVCD
playing software (mplayer, ogle, xine, etc) as an external
command. The transcoding is based on and derived from the excellent
transcode package.

%package -n mythweather
Summary: A MythTV module that displays a weather forcast
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythweather
A MythTV module that displays a weather forcast.

%package -n mythgallery
Summary: A gallery/slideshow module for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythgallery
A gallery/slideshow module for MythTV.

%package -n mythgame
Summary: A game frontend (xmame, nes, snes, pc) for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythgame
A game frontend (xmame, nes, snes, pc) for MythTV.

%package -n mythgame-emulators
Summary: Meta-package requiring emulators for game types mythgame knows about
Group: Applications/Multimedia
Requires: mythgame = %{version}-%{release}
# Multi Arcade Machine Emulator, Amiga, Atari 2600
Requires: sdlmame, e-uae, stella
# Nintendo, Super Nintendo, Nintendo 64
Requires: fceultra, zsnes, mupen64, mupen64-ricevideo
# Sega Genesis, Sega Master System, Game Gear
Requires: gens, dega-sdl, osmose
# TurboGraphx 16 (and others)
Requires: mednafen

%description -n mythgame-emulators
Meta-package requiring emulators for game types mythgame knows about.

%package -n mythnews
Summary: An RSS news feed plugin for MythTV

Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythnews
An RSS news feed reader plugin for MythTV.

%package -n mythbrowser
Summary: A small web browser module for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythbrowser
MythBrowser is a full fledged web-browser (multiple tabs) to display
webpages in full-screen mode. Simple page navigation is
possible. Starting with version 0.13 it also has full support for
mouse driven navigation (right mouse opens and clos es the popup
menu).

MythBrowser also contains a BookmarkManager to manage the website
links in a simple mythplugin.

%package -n mythphone
Summary: A video conferencing module for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythphone
Mythphone is a phone and videophone capability on MYTH using the
standard SIP protocol.  It is compatible with Microsoft XP Messenger
and with SIP Service Providers such as Free World Dialup
(fwd.pulver.com).

%package -n mythcontrols
Summary: A key bindings editor for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythcontrols
MythControls is a key bindings editor for MythTV.

%package -n mythflix
Summary: A NetFlix module for MythTV
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythflix
MythFlix is a NetFlix queue manager for MythTV.

%package -n mytharchive
Summary: A module for MythTV for creating and burning DVDs
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}
Requires: python >= 2.3, MySQL-python, python-imaging
Requires: mjpegtools >= 1.6.2, dvdauthor >= 0.6.11
Requires: ffmpeg >= 0.4.9, dvd+rw-tools >= 5.21.4.10.8
Requires: cdrecord >= 2.01, mkisofs >= 2.01
Requires: transcode >= 1.0.2

%description -n mytharchive
MythArchive is a new plugin for MythTV that lets you create DVDs from
your recorded shows, MythVideo files and any video files available on
your system.

%package -n mythzoneminder
Summary: A module for MythTV for camera security and surveillance
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{mythfeapiver}

%description -n mythzoneminder
MythZoneMinder is a plugin to interface to some of the features of
ZoneMinder. You can use it to view a status window similar to the
console window in ZM. Also there are screens to view live camera shots
and replay recorded events.

%package -n mythweb
Summary: The web interface to MythTV
Group: Applications/Multimedia
Requires: httpd >= 1.3.26, php >= 4.2.2, php-mysql >= 4.2.2

%description -n mythweb
The web interface to MythTV.

%package -n perl-MythTV
Summary: MythTV perl bindings
Group: System Environment/Libraries

%description -n perl-MythTV
MythTV perl bindings.

%package -n python-MythTV
Summary: MythTV python bindings
Group: System Environment/Libraries
Requires: MySQL-python

%description -n python-MythTV
MythTV python bindings.

%prep
%setup -q -c -a 1

cd mythtv-%{version}
%patch100 -p1 -b .svnfixes
#patch101 -p0 -b .mythstreammenu
#patch102 -p1 -b .settings

# Drop execute permissions on contrib bits, since they'll be %doc
find contrib/ -type f -exec chmod -x "{}" \;
# Nuke Windows and Mac OS X build scripts
rm -rf contrib/Win32 contrib/OSX
# Put perl bits in the right place and set opt flags
sed -i -e 's#perl Makefile.PL#%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"#' \
    bindings/perl/perl.pro

cp -a %{SOURCE10} %{SOURCE101} %{SOURCE102} %{SOURCE103} .
for file in mythbackend.init \
            mythbackend.sysconfig \
            mythbackend.logrotate; do
  sed -e's|@logdir@|%{_localstatedir}/log|g' \
      -e's|@rundir@|%{_localstatedir}/run|g' \
      -e's|@sysconfdir@|%{_sysconfdir}|g' \
      -e's|@sysconfigdir@|%{_sysconfdir}/sysconfig|g' \
      -e's|@initdir@|%{_sysconfdir}/init.d|g' \
      -e's|@bindir@|%{_bindir}|g' \
      -e's|@sbindir@|%{_sbindir}|g' \
      -e's|@subsysdir@|%{_localstatedir}/lock/subsys|g' \
      -e's|@varlibdir@|%{_localstatedir}/lib|g' \
      -e's|@varcachedir@|%{_localstatedir}/cache|g' \
      -e's|@logrotatedir@|%{_sysconfdir}/logrotate.d|g' \
  < $file.in > $file
done

cp -a %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} .
cd ..

temp=`pwd`/temp

cd mythplugins-%{version}
%patch200 -p1 -b .svnfixes
#patch201 -p1 -b .settings

mv mytharchive/mythburn/themes/Simple\ -\ Autoplay \
   mytharchive/mythburn/themes/Simple_-_Autoplay
mv mytharchive/mythburn/themes/MythCenter\ -\ Autoplay \
   mytharchive/mythburn/themes/MythCenter_-_Autoplay

find . -name \*.pro |\
  xargs perl -pi -e's,\$\${PREFIX}/include/mythtv,'$temp%{_includedir}/mythtv,
cat >> settings.pro << EOF
INCLUDEPATH += $temp%{_includedir}
LIBS *= -L$temp%{_libdir}
EOF

cd mythmusic
# Fix /mnt/store -> /var/lib/mythmusic
perl -pi -e's|/mnt/store/music|%{_localstatedir}/lib/mythmusic|' mythmusic/globalsettings.cpp
cd ..

cd mythvideo
# Fix /mnt/store -> /var/lib/mythmusic
perl -pi -e's|/share/Movies/dvd|%{_localstatedir}/lib/mythvideo|' mythvideo/globalsettings.cpp
cd ..

cd mythweb
# Fix up permissions
chmod -R g-w ./*
cd ..

echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro

cd ..


%build
cd mythtv-%{version}
./configure \
%if %with_debug
  --compile-type=debug \
%else
  --compile-type=release \
%endif
  --enable-debug \
%ifarch ppc
  --extra-cflags="%{optflags} -maltivec -fomit-frame-pointer" \
  --extra-cxxflags="%{optflags} -maltivec -fomit-frame-pointer" \
%else
  --extra-cflags="%{optflags} -fomit-frame-pointer" \
  --extra-cxxflags="%{optflags} -fomit-frame-pointer" \
%endif
%ifarch %{ix86}
  --cpu=i686 --tune=i686 --enable-mmx \
%endif
  --prefix=%{_prefix} \
  --libdir-name=%{_lib} \
  --enable-pthreads --enable-ffmpeg-pthreads \
  --enable-joystick-menu \
  --enable-lirc \
  --enable-ivtv \
  --enable-firewire \
  --enable-dvb \
  --enable-audio-oss --enable-audio-alsa --enable-audio-arts \
  --enable-audio-jack \
  --enable-xvmc --enable-xvmcw \
%if %with_xvmcnvidia
  --xvmc-lib=XvMCNVIDIA_dynamic --enable-xvmc-opengl \
%else
%ifarch %{ix86} x86_64
  --enable-xvmc-vld --enable-xvmc-pro \
%endif
%endif
  --enable-x11 --x11-path=%{_includedir} \
  --enable-xrandr \
  --enable-xv \
  --enable-opengl-video --enable-opengl-vsync \
%if %with_directfb
  --enable-directfb \
%else
  --disable-directfb \
%endif
  --enable-liba52 --enable-libmp3lame \
  --enable-libfaac --enable-libfaad \
  --enable-libtheora --enable-libvorbis \
  --enable-libx264 --enable-libxvid \
  --with-bindings="perl, python"

echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro

qmake mythtv.pro

# Insert rpm version-release for mythbackend --version output
find . -name version.pro | xargs perl -pi -e 's|svnversion \$\${SVNTREEDIR}|echo "%{version}-%{release}"|g'

make %{?_smp_mflags}
cd ..

mkdir temp
temp=`pwd`/temp
make -C mythtv-%{version} install INSTALL_ROOT=$temp
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$temp%{_libdir}

cd mythplugins-%{version}
./configure \
  --prefix=${temp}%{_prefix} \
  --libdir-name=%{_lib} \
  --enable-opengl \
  --enable-mytharchive \
  --enable-create-dvd \
  --enable-create-archive \
  --enable-mythbrowser \
  --enable-mythcontrols \
  --enable-mythflix \
  --enable-mythgallery \
  --enable-exif \
  --enable-new-exif \
  --enable-mythgame \
  --enable-mythmovies \
  --enable-mythmusic \
  --enable-libvisual \
  --enable-fftw \
  --enable-sdl \
  --enable-aac \
  --enable-mythnews \
  --enable-mythphone \
%if %with_festival
  --enable-festival \
%endif
  --enable-mythvideo \
  --enable-mythweather \
  --enable-mythzoneminder
qmake mythplugins.pro
make %{?_smp_mflags}
cd ..

%install
rm -rf %{buildroot}
cd mythtv-%{version}
make install INSTALL_ROOT=%{buildroot}

ln -s mythtv-setup %{buildroot}%{_bindir}/mythtvsetup
mkdir -p %{buildroot}%{_localstatedir}/lib/mythtv
mkdir -p %{buildroot}%{_localstatedir}/cache/mythtv
mkdir -p %{buildroot}%{_localstatedir}/log/mythtv
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/init.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/mythtv

# Fix permissions on executable python bindings
chmod +x %{buildroot}%{python_sitelib}/MythTV/Myth{DB,TV}.py

install -m 644 %{SOURCE110} %{buildroot}%{_sysconfdir}/mythtv/
echo "# to be filled in by mythtv-setup" > %{buildroot}%{_sysconfdir}/mythtv/config.xml
install -p -m 755 mythbackend.init %{buildroot}%{_sysconfdir}/init.d/mythbackend
install -p -m 644 mythbackend.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mythbackend
install -p -m 644 mythbackend.logrotate  %{buildroot}%{_sysconfdir}/logrotate.d/mythbackend

# Desktop entries
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/applications
for file in %{desktop_applications}; do
  install -p $file.png %{buildroot}%{_datadir}/pixmaps/$file.png
  desktop-file-install --vendor %{desktop_vendor} \
    --dir %{buildroot}%{_datadir}/applications    \
    --add-category X-Fedora-Extra     \
    --add-category Application        \
    --add-category AudioVideo         \
    $file.desktop
done

mkdir -p %{buildroot}%{_libdir}/mythtv/plugins

mkdir -p %{buildroot}%{_datadir}/mythtv/build/
install -p -m 644 settings.pro %{buildroot}%{_datadir}/mythtv/build/

cd ..

cd mythplugins-%{version}
make install INSTALL_ROOT=%{buildroot}

mkdir -p %{buildroot}%{_localstatedir}/lib/mythmusic
mkdir -p %{buildroot}%{_localstatedir}/lib/mythvideo
mkdir -p %{buildroot}%{_localstatedir}/lib/pictures
mkdir -p %{buildroot}%{_datadir}/mythtv/games/nes/{roms,screens}
mkdir -p %{buildroot}%{_datadir}/mythtv/games/snes/{roms,screens}
#mkdir -p %{buildroot}%{_datadir}/mythtv/games/mame/{roms,screens,flyers,cabs}
mkdir -p %{buildroot}%{_datadir}/mythtv/games/PC/screens
mkdir -p %{buildroot}%{_datadir}/mame
ln -s ../../mame %{buildroot}%{_datadir}/mythtv/games/xmame
mkdir -p %{buildroot}%{_datadir}/mame/flyers
ln -s snap %{buildroot}%{_datadir}/mythtv/games/xmame/screens

mkdir -p %{buildroot}%{_sysconfdir}/mythgame
cp -a mythgame/gamelist.xml %{buildroot}%{_sysconfdir}/mythgame/
ln -s ../../../../../%{_sysconfdir}/mythgame/ \
    %{buildroot}%{_datadir}/mythtv/games/PC/gamelist.xml

cd mythweb
mkdir -p %{buildroot}%{_datadir}/mythweb
cp -a * %{buildroot}%{_datadir}/mythweb/
mkdir -p %{buildroot}%{_datadir}/mythweb/{image_cache,php_sessions}
# fix up permissions
chmod -R g-x %{buildroot}%{_datadir}/mythweb

mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
cp %{SOURCE401} %{buildroot}%{_sysconfdir}/httpd/conf.d/
# drop .htaccess file, settings handled in the above
rm -f %{buildroot}%{_datadir}/mythweb/data/.htaccess

cd ..

cd ..

%clean
rm -rf %{buildroot}

%pre backend
# Add the "mythtv" user
/usr/sbin/useradd -c "mythtvbackend User" \
  -s /sbin/nologin -r -d %{_localstatedir}/lib/mythtv mythtv 2> /dev/null || :

%post -n libmyth -p /sbin/ldconfig

%postun -n libmyth -p /sbin/ldconfig

%post backend
/sbin/chkconfig --add mythbackend

%preun backend
if [ $1 = 0 ]; then
  /sbin/service mythbackend stop > /dev/null 2>&1
  /sbin/chkconfig --del mythbackend
fi

%files
%defattr(-,root,root,-)

%files docs
%defattr(-,root,root,-)
%doc mythtv-%{version}/README* mythtv-%{version}/UPGRADING
%doc mythtv-%{version}/AUTHORS mythtv-%{version}/COPYING mythtv-%{version}/FAQ
%doc mythtv-%{version}/database mythtv-%{version}/keys.txt
%doc mythtv-%{version}/docs/*.html mythtv-%{version}/docs/*.png
%doc mythtv-%{version}/docs/*.txt mythtv-%{version}/contrib
%doc mythtv-%{version}/PACKAGE-LICENSING

%files common
%defattr(-,root,root,-)
%dir %{_sysconfdir}/mythtv
%config(noreplace) %{_sysconfdir}/mythtv/mysql.txt
%config(noreplace) %{_sysconfdir}/mythtv/config.xml
%{_bindir}/mythcommflag
%{_bindir}/mythtranscode

%files backend
%defattr(-,root,root,-)
%{_bindir}/mythbackend
%{_bindir}/mythfilldatabase
%{_bindir}/mythjobqueue
%{_bindir}/mythreplex
%attr(-,mythtv,mythtv) %dir %{_localstatedir}/lib/mythtv
%attr(-,mythtv,mythtv) %dir %{_localstatedir}/cache/mythtv
%{_sysconfdir}/init.d/mythbackend
%config(noreplace) %{_sysconfdir}/sysconfig/mythbackend
%config(noreplace) %{_sysconfdir}/logrotate.d/mythbackend
%attr(-,mythtv,mythtv) %dir %{_localstatedir}/log/mythtv

%files setup
%defattr(-,root,root,-)
%{_bindir}/mythtv-setup
%{_bindir}/mythtvsetup
%{_datadir}/mythtv/setup.xml
%{_datadir}/applications/*mythtv-setup.desktop

%files frontend
%defattr(-,root,root,-)
%{_datadir}/mythtv/devicemaster.xml
%{_datadir}/mythtv/deviceslave.xml
%{_datadir}/mythtv/CDS_scpd.xml
%{_datadir}/mythtv/CMGR_scpd.xml
%{_datadir}/mythtv/MSRR_scpd.xml
%{_datadir}/mythtv/info_menu.xml
%{_datadir}/mythtv/info_settings.xml
%{_datadir}/mythtv/library.xml
%{_datadir}/mythtv/main_settings.xml
%{_datadir}/mythtv/mainmenu.xml
%{_datadir}/mythtv/manage_recordings.xml
%{_datadir}/mythtv/media_settings.xml
%{_datadir}/mythtv/optical_menu.xml
%{_datadir}/mythtv/recpriorities_settings.xml
%{_datadir}/mythtv/setup.xml
%{_datadir}/mythtv/tv_lists.xml
%{_datadir}/mythtv/tv_schedule.xml
%{_datadir}/mythtv/tv_search.xml
%{_datadir}/mythtv/tv_settings.xml
%{_datadir}/mythtv/tvmenu.xml
%{_datadir}/mythtv/util_menu.xml
%{_bindir}/mythfrontend
%{_bindir}/mythtv
%{_bindir}/mythtvosd
%{_bindir}/mythlcdserver
%{_bindir}/mythshutdown
%{_bindir}/mythwelcome
%{_libdir}/mythtv/filters
%dir %{_libdir}/mythtv/plugins
%{_datadir}/mythtv/*.ttf
%dir %{_datadir}/mythtv/i18n
%{_datadir}/mythtv/i18n/mythfrontend_*.qm
%{_datadir}/applications/*mythfrontend.desktop
%{_datadir}/pixmaps/myth*.png

%files base-themes
%defattr(-,root,root,-)
%dir %{_datadir}/mythtv/themes
%{_datadir}/mythtv/themes/*

%files -n libmyth
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files -n libmyth-devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%exclude %{_libdir}/*.a
%{_datadir}/mythtv/build/settings.pro

%files -n mythplugins
%defattr(-,root,root,-)
%doc mythplugins-%{version}/COPYING

%files -n mythmovies
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythmovies/COPYING
%doc mythplugins-%{version}/mythmovies/README
%doc mythplugins-%{version}/mythmovies/TODO
%{_bindir}/ignyte
%{_datadir}/mythtv/themes/default/movies-ui.xml
%{_libdir}/mythtv/plugins/libmythmovies.so

%files -n mythmusic
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythmusic/AUTHORS
%doc mythplugins-%{version}/mythmusic/COPYING
%doc mythplugins-%{version}/mythmusic/README
%{_libdir}/mythtv/plugins/libmythmusic.so
%{_localstatedir}/lib/mythmusic
%{_datadir}/mythtv/musicmenu.xml
%{_datadir}/mythtv/music_settings.xml
%{_datadir}/mythtv/MXML_scpd.xml
%{_datadir}/mythtv/i18n/mythmusic_*.qm

%files -n mythvideo
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythvideo/COPYING
%doc mythplugins-%{version}/mythvideo/README*
%{_libdir}/mythtv/plugins/libmythvideo.so
%{_datadir}/mythtv/mythvideo
%{_datadir}/mythtv/i18n/mythvideo_*.qm
%{_datadir}/mythtv/video_settings.xml
%{_datadir}/mythtv/videomenu.xml
%{_localstatedir}/lib/mythvideo
%{_bindir}/mtd

%files -n mythweather
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythweather/AUTHORS
%doc mythplugins-%{version}/mythweather/COPYING
%doc mythplugins-%{version}/mythweather/README
%{_libdir}/mythtv/plugins/libmythweather.so
%{_datadir}/mythtv/i18n/mythweather_*.qm
%{_datadir}/mythtv/weather_settings.xml
%{_datadir}/mythtv/mythweather

%files -n mythgallery
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythgallery/AUTHORS
%doc mythplugins-%{version}/mythgallery/COPYING
%doc mythplugins-%{version}/mythgallery/README
%{_libdir}/mythtv/plugins/libmythgallery.so
%{_datadir}/mythtv/i18n/mythgallery_*.qm
%{_localstatedir}/lib/pictures

%files -n mythgame
%defattr(-,root,root,-)
%dir %{_sysconfdir}/mythgame
%config(noreplace) %{_sysconfdir}/mythgame/gamelist.xml
%{_libdir}/mythtv/plugins/libmythgame.so
%{_datadir}/mythtv/games
%exclude %{_datadir}/mythtv/games/xmame
%{_datadir}/mythtv/game_settings.xml
%{_datadir}/mythtv/i18n/mythgame_*.qm

%files -n mythgame-emulators
%defattr(-,root,root,-)
%{_datadir}/mythtv/games/xmame
%{_datadir}/mame/screens
%{_datadir}/mame/flyers

%files -n mythnews
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythnews/AUTHORS
%doc mythplugins-%{version}/mythnews/COPYING
%doc mythplugins-%{version}/mythnews/README
%{_libdir}/mythtv/plugins/libmythnews.so
%{_datadir}/mythtv/mythnews
%{_datadir}/mythtv/i18n/mythnews_*.qm

%files -n mythbrowser
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythbrowser/AUTHORS
%doc mythplugins-%{version}/mythbrowser/COPYING
%doc mythplugins-%{version}/mythbrowser/README
%{_bindir}/mythbrowser
%{_libdir}/mythtv/plugins/libmythbookmarkmanager.so
%{_datadir}/mythtv/i18n/mythbrowser_*.qm

%files -n mythphone
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythphone/AUTHORS
%doc mythplugins-%{version}/mythphone/COPYING
%doc mythplugins-%{version}/mythphone/README
%doc mythplugins-%{version}/mythphone/TODO
%{_libdir}/mythtv/plugins/libmythphone.so
%{_datadir}/mythtv/i18n/mythphone_*.qm

%files -n mythcontrols
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythcontrols/AUTHORS
%doc mythplugins-%{version}/mythcontrols/COPYING
%doc mythplugins-%{version}/mythcontrols/README
%doc mythplugins-%{version}/mythcontrols/TODO
%{_libdir}/mythtv/plugins/libmythcontrols.so
%{_datadir}/mythtv/i18n/mythcontrols_*.qm

%files -n mythflix
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythflix/AUTHORS
%doc mythplugins-%{version}/mythflix/COPYING
%doc mythplugins-%{version}/mythflix/README
%{_libdir}/mythtv/plugins/libmythflix.so
%{_datadir}/mythtv/mythflix
%{_datadir}/mythtv/i18n/mythflix_*.qm
%{_datadir}/mythtv/i18n/mythflix_*.ts
%{_datadir}/mythtv/netflix_menu.xml

%files -n mytharchive
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mytharchive/AUTHORS
%doc mythplugins-%{version}/mytharchive/COPYING
%doc mythplugins-%{version}/mytharchive/README
%doc mythplugins-%{version}/mytharchive/TODO
%{_bindir}/mytharchivehelper
%{_libdir}/mythtv/plugins/libmytharchive.so
%{_datadir}/mythtv/archiveformat.xml
%{_datadir}/mythtv/archivemenu.xml
%{_datadir}/mythtv/archiveutils.xml
%{_datadir}/mythtv/mytharchive
%{_datadir}/mythtv/i18n/mytharchive_*.qm

%files -n mythzoneminder
%defattr(-,root,root,-)
%{_libdir}/mythtv/plugins/libmythzoneminder.so
%{_datadir}/mythtv/zonemindermenu.xml
%{_bindir}/mythzmserver

%files -n mythweb
%defattr(-,root,root,-)
%doc mythplugins-%{version}/mythweb/README
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mythweb.conf
%defattr(-,apache,apache,0775)
%dir %{_datadir}/mythweb
%{_datadir}/mythweb/*

%files -n perl-MythTV
%defattr(-,root,root,-)
%{perl_vendorlib}/MythTV.pm
%dir %{perl_vendorlib}/MythTV
%{perl_vendorlib}/MythTV/*.pm
%{perl_vendorlib}/IO/Socket/INET/MythTV.pm
%exclude %{perl_vendorarch}/auto/MythTV/.packlist

%files -n python-MythTV
%defattr(-,root,root,-)
%dir %{python_sitelib}/MythTV/
%{python_sitelib}/MythTV/*
%if 0%{?fedora} >= 9
%{python_sitelib}/MythTV-*.egg-info
%endif

%changelog
* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.21-7
- rebuild

* Sun Jul 20 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-7
- Disable XvMC VLD and Pro support on ppc due to lack of
  openchrome driver.

* Sat Jul 19 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-6
- Fix spec typo
- Disable mythstream patch for now, too much fuzz, revisit later

* Fri Jul 18 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-5
- Update release-0-21-fixes patches (r17859)
- Don't use %%bcond, breaks on some older buildsystems
- Put several bits in -common sub-package, as both backend
  and frontend may need them for one reason or another

* Fri May 16 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-4
- Add BR: xorg-x11-drv-i810-devel, xorg-x11-drv-openchrome-devel
- Make building with nVidia XvMC an available custom option, fix up
  conflict between it and other XvMC implementations
- Update release-0-21-fixes patches (r17338)

* Sat Apr 05 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-3
- Fix up PACKAGE-LICENSING inclusion

* Sat Apr 05 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-2
- RPMFusion package review cleanups
- Put mythtv-setup.desktop in mythtv-setup package
- Fix up initscript to start properly
- Drop unused %%ghostattr define
- Attempt to clarify licensing
- Clean up assorted Requires and BuildRequires
- Update release-0-21-fixes patches (r16965)

* Sun Mar 09 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-1
- MythTV 0.21 (r16468)
- Add release-0-21-fixes for DVD menu display fix (r16486)

* Tue Mar 04 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.17.r16394
- Update to latest release-0-21-fixes pre-release branch code (16394).

* Fri Feb 29 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.16.r16316
- Update to latest release-0-21-fixes pre-release branch code (16316).
- Add mythgame-emulators meta-package that requires a bunch of
  emulators for roms mythgame knows about.
- Account for python egg on f9+
- Enable gsm support by default

* Wed Feb 27 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.15.r16307
- Update to latest release-0-21-fixes pre-release branch code (16307).
- Try to fix up a bunch of rpmlint warnings and errors.

* Sat Feb 23 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.14.r16238
- Update to latest svn trunk (16238).
- Package up python bits.

* Thu Feb 14 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.13.r16019
- Update to latest svn trunk (16019).

* Mon Feb 11 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.12.r15914
- Update to latest svn trunk (15914).
- Turn on multi-threaded video decoding.

* Thu Jan 31 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.11.r15699
- More spec file overhauling, make it build in Fedora 9

* Thu Jan 31 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.10.r15699
- Update to latest svn trunk (15699).
- Misc spec reformatting.

* Sat Jan 26 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.9.r15614
- Update to latest svn trunk (15614).

* Tue Jan 01 2008 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.8.r15281
- Update to latest svn trunk (15281).
- Fix up version-release insertion in mythbackend --version output

* Fri Dec 07 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.7.r15081
- Update to latest svn trunk (15081).

* Sat Nov 17 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.6.r14888
- Update to latest svn trunk (14888).

* Wed Oct 17 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.6.r14695
- Update to latest svn trunk (14695).

* Fri Oct 12 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.6.r14667
- Update to latest svn trunk (14667).
- Build dvb support against kernel-headers instead
- Drop unnecessary patches
- Tweak BR: to not use any file deps (I only care about recent distros)
- Rework mythweb bits to be compliant w/Fedora packaging guidelines
- Enable OpenGL video output support
- Make dvb and opengl bits non-conditional (always enabled)

* Wed Oct 10 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.5.r14658
- Update to latest svn trunk (14658).
- Tweak configure options a bit more

* Tue Oct 02 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.4.r14589
- Update to latest svn trunk (14589).
- Restructure how optflags are passed into build
- Nuke some extra non-standard macros
- Drop ancient dvb tarball, create with_dvb option, always using v4l-devel

* Wed Sep 12 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.4.r14488
- Update to latest svn trunk (14488).

* Tue Aug 28 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.3.r14346
- Update to latest svn trunk (14346).

* Mon Aug 27 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.3.r14337
- Update to latest svn trunk (14337).

* Tue May 22 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.2.r13492
- Update to latest svn trunk (13492).
- More non-standard macro nuking

* Mon May 21 2007 Jarod Wilson <jarod at wilsonet.com> - 0.21-0.1.r13487
- Update to latest svn trunk (13487).
- Reshuffle theme files
- Credit where credit is due: forking this off the current ATrpms spec


--- NEW FILE mythweb.conf ---
#
# Apache configuration directives for MythWeb.  Please read INSTALL for setup
# requirements and troubleshooting, along with the comments in this file.
#

#
# CHANGE THIS PATH TO MATCH YOUR MYTHWEB INSTALLATION DIRECTORY!  e.g.
#
#    /var/www
#    /home/www/htdocs
#    /var/www/html/mythweb
#    /srv/www/htdocs/mythweb
#
Alias /mythweb/ "/usr/share/mythweb/"
<Directory "/usr/share/mythweb">

    ############################################################################
    # I *strongly* urge you to turn on authentication for MythWeb.  It is disabled
    # by default because it requires you to set up your own password file.  Please
    # see the man page for htdigest and then configure the folowing four directives
    # to suit your authentication needs.
    #
    #    AuthType           Digest
    #    AuthName           "MythWeb"
    #    AuthUserFile       /etc/httpd/conf.d/mythweb-htdigest
    #    Require            valid-user
    #    BrowserMatch       "MSIE"      AuthDigestEnableQueryStringHack=On
    #    Order              allow,deny
    #    Satisfy            any
    #
    #  * If you're running Apache earlier than 2.2, you will need to use
    #    the AuthDigestFile command instead of AuthUserFile (3rd line above).
    #

    ############################################################################
    # Some special instructions for the MythWeb controller files
    #
        <Files mythweb.*>

        #
        # Use the following environment settings to tell MythWeb where you want it to
        # look to connect to the database, the name of the database to connect to, and
        # the authentication info to use to connect.  The defaults will usually work
        # fine unless you've changed mythtv's mysql.txt file, or are running MythWeb on
        # a different server from your main backend.  Make sure you have mod_env enabled.
        #
            setenv db_server        "localhost"
            setenv db_name          "mythconverg"
            setenv db_login         "mythtv"
            setenv db_password      "mythtv"

        #
        # By default, MythWeb uses the hostname program to look up the hostname of the
        # machine it runs on.  If this reports incorrect data, or you run MythWeb on a
        # machine without the hostname program, set this to your current hostname.
        #
        #   setenv hostname         "my_mythbox"
        #

        # By default, php will always search the current directory for include files,
        # but if you wish to install these directories outside of the current path
        # (eg. for security reasons), set this variable to the directory that
        # contains the directories like languages and templates.  eg.
        #
        #   setenv include_path      "/usr/share/mythweb"

        # If you want MythWeb to email php/database errors (and a backtrace) to you,
        # uncomment and set the email address below.
        #
        #   setenv error_email       "mythweb_errors at example.com"
        #

        # If your local file system is something other than UTF-8, set this variable
        # so that the music and video portions of MythWeb can provide proper links
        # to your downloadable files.
        #
        #   setenv fs_encoding       "ISO-8859-1"

        </Files>

    ############################################################################
    # The following settings relate to PHP config.
    #

        <Files *.php>

        #  These settings are intended for apache 2.x.  If your version of apache
        #  doesn't support php_value, or things like memory_limit aren't working
        #  as expected, then use these settings as examples for your own php.ini
        #  files.
            php_value safe_mode                     0

            php_value memory_limit                  32M

            php_value register_globals              0
            php_value magic_quotes_gpc              0
            php_value file_uploads                  0
            php_value allow_url_fopen               On

            php_value zlib.output_handler           Off
            php_value output_handler                NULL

        # Note: php_flag does not work in older versions of php
            php_flag output_handler                 "NULL"

        </Files>

    ############################################################################
    # The settings below relate specifically to mod_rewrite and the rewrite
    # engine used to make the MythWeb user experience a little easier to deal
    # with by simplifying the URLs needed to access the various sections.  Do
    # not touch these settings unless you really know what you're doing..
    #

    # Turn on the rewrite engine
        RewriteEngine  on

    # If MythWeb is installed outside of the document root (eg. using Alias) then
    # you will need to set this directive to the base URL that MythWeb is visible
    # from externally.  If you do not, the web server will return 'not found'.
        RewriteBase    /mythweb

    # Skip out early if we've already been through rewrites,
    # or if this is a /css/, /js/ or /cache/ directory request.
        RewriteRule    ^(css|data|images|js|themes|skins|[a-z_]+\.(php|pl))(/|$)     -     [L]

    # Redirect /pl/ requests to the perl cgi handler.
        RewriteRule     ^(pl(/.*)?)$            mythweb.pl/$1               [QSA,L]

    # Redirect most of the remaining URL requests to the main mythweb script.
    # It will then handle any requests given to it.
        RewriteRule     ^(.+)$                  mythweb.php/$1              [QSA,L]

    # If you're experiencing trouble with the previous two lines in your copy of
    # apache, you could instead use something like:
    #    RewriteRule     ^(pl(/.*)?)$           mythweb.pl?PATH_INFO=/$1    [L,QSA]
    #    RewriteRule     ^(.+)$                 mythweb.php?PATH_INFO=/$1   [L,QSA]

    # Catch anything else that comes through and send it to mythweb.php with no parameters.
        RewriteRule     ^(.*)$                  mythweb.php                 [QSA,L]

    ############################################################################
    # You really shouldn't need to edit anything below this line, so please
    # don't unless you know what you're doing.
    #

    # Allow .htaccess to override whatever it wants from the server config.
        AllowOverride   All

    # Allow browsers to follow symlinks that point outside of the web document
    # tree.  This is how we access music, videos, etc.
        Options         FollowSymLinks

    # MythTV now uses the correct file suffix for mpeg files, so all .nuv files
    # should actually be NuppleVideo.  However, apache probably doesn't know what
    # those are, so we should tell it.
        AddType video/nuppelvideo   .nuv

    # Specify the MIME type for favicon.ico in case the server configuration
    # doesn't or in case the server configuration uses the IANA-approved MIME type
    # (image/vnd.microsoft.icon)--which most browsers won't recognize.
        AddType image/x-icon        .ico

    # Enable mod_deflate.  This works MUCH more reliably than PHP's built-in
    # gzip/Zlib compressors.  It is disabled here because many distros seem not
    # to enable mod_deflate by default, but I strongly recommend that you
    # enable this section.
    #
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    #
        AddOutputFilterByType DEFLATE text/html
        AddOutputFilterByType DEFLATE text/css
        AddOutputFilterByType DEFLATE application/x-javascript

    # This is helpful for mod_deflate -- it prevents proxies from changing
    # the user agent to/from this server, which can prevent compression from
    # being enabled.  It is disabled here because many distros seem not to
    # enable mod_headers by default, but I recommend that you enable it.
    #
        Header append Vary User-Agent env=!dont-vary

    # Set up the perl handler so we can stream properly.
    #
    # IMPORTANT!!  Please see the note in INSTALL section 5.1 that explains why
    # this may not always properly detect mod_perl.
    #
        <Files *.pl>
            <IfModule mod_perl.c>
                SetHandler perl-script
                PerlResponseHandler ModPerl::Registry
                PerlOptions +ParseHeaders
            </IfModule>
            <IfModule !mod_perl.c>
                SetHandler cgi-script
            </IfModule>
            Options +ExecCGI
        </Files>

</Directory>

<Directory "/usr/share/mythweb/data">
    Options -All +FollowSymLinks +IncludesNoExec
</Directory>

# You will probably also want to uncomment the following rules, which
# disable authentication for MythWeb's download URLs so you can properly
# stream to media players that don't work with authenticated servers.
#
<LocationMatch .*/pl/stream/[0-9]+/[0-9]+>
    Allow from all
</LocationMatch>

<LocationMatch .*/music/stream.php>
    Allow from all
</LocationMatch>



More information about the rpmfusion-commits mailing list