Sophie

Sophie

distrib > Mageia > 6 > i586 > media > tainted-release-src > by-pkgid > 17b7302a93ec7bfb19b5889c080ff34f > files > 14

mythtv-0.28.1-20170528.6.mga6.tainted.src.rpm

# Note: When updating version, also update the update-fixes.sh script's version
# and rerun it. This will generate a new fixes patch and update the spec
# automatically.
%define gitversion v0.28.1-23-gaf9826
%define fixesdate 20170528
%define rel 6

%if %{fixesdate}
%define release %mkrel %fixesdate.%rel
%else
%define release %mkrel %rel
%endif

%define lib_name_orig   libmyth
%define lib_major       0.28
%define lib_name        %mklibname myth %{lib_major}
%define lib_name_devel  %mklibname myth -d

%define maenable 1

#set default build options
# disabled as overrides xv
%define build_directfb          0
%define build_dts               0
%define build_faac              0
%define build_faad              0
#lame is no longer tainted
%define build_lame              1
%define build_x264              0
%define build_xvid              0

# --with plf
%if "%distro_section" == "tainted"
%global build_tainted 1
%else
%global build_tainted 0
%endif
%if %{build_tainted}
%define build_dts               1
%define build_faac              0
%define build_faad              1
%define build_lame              1
# build broken against current x264 as of 2010-01, re-enable when fixed
# (eatdirt) works for me for 0.28.1, re-enabling
%define build_x264              1
%define build_xvid              1
%endif

#enable/disable building for certain hardware
%{?_without_directfb:           %global build_directfb 0}
%{?_without_dts:                %global build_dts 0}
%{?_without_faac:               %global build_faac 0}
%{?_without_faad:               %global build_faad 0}
%{?_without_lame:               %global build_lame 0}
%{?_without_x264:               %global build_x264 0}
%{?_without_xvid:               %global build_xvid 0}

%{?_with_directfb:              %global build_directfb 1}
%{?_with_dts:                   %global build_dts 1}
%{?_with_faac:                  %global build_faac 1}
%{?_with_faad:                  %global build_faad 1}
%{?_with_lame:                  %global build_lame 1}
%{?_with_x264:                  %global build_x264 1}
%{?_with_xvid:                  %global build_xvid 1}

# The filters in mythfrontend shouldn't really be exposed as provides.
%global _exclude_files_from_autoprov %{?_exclude_files_from_autoprov:%_exclude_files_from_autoprov|}%{_libdir}/%{name}/filters/.*\\.so$

Summary:        A personal video recorder (PVR) application
Name:           mythtv
Version:        0.28.1
Release:        %{release}
URL:            http://www.mythtv.org/
License:        GPLv2 + GPLv3
Group:          Video/Television
Source0:        https://github.com/MythTV/mythtv/archive/mythtv-%{version}.tar.gz
Source1:        mythbackend.sysconfig.in
Source2:        mythbackend.init.in
Source3:        mythbackend.logrotate.in
Source4:        mythfrontend.desktop
Source5:        %name-16.png
Source6:        %name-32.png
Source7:        %name-48.png
Source8:        mythbackend.service.in
Source9:        update-fixes.sh
%if %{fixesdate}
Patch001: fixes-%{gitversion}.patch
%endif
# (cg) git format-patch --start-number 100 fixes/0.27..mga-0.27
Patch102: 0102-pulse-Do-not-suspend-PA-when-using-alsa-default.patch
Patch103: 0103-Fix-dns-sd-detection.patch
#add CFLAGS and LDFLAGS to QMAKE
Patch104: mythtv-0.28.1-qmake-mgaflags.patch

BuildRequires:  imagemagick
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5WebKit)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  libalsa-devel
BuildRequires:  libdvdnav-devel
BuildRequires:  libjack-devel
BuildRequires:  lirc-devel
BuildRequires:  libx11-devel
BuildRequires:  libxext-devel
BuildRequires:  libxinerama-devel
BuildRequires:  libxrandr-devel
BuildRequires:  libxv-devel
BuildRequires:  libxvmc-devel
BuildRequires:  libxxf86vm-devel
BuildRequires:  python-devel
BuildRequires:  python-mysql
BuildRequires:  python-lxml
BuildRequires:  python-urlgrabber
BuildRequires:  pulseaudio-devel
BuildRequires:  fftw3-devel
BuildRequires:  vdpau-devel
BuildRequires:  libva-devel
BuildRequires:  crystalhd-devel
BuildRequires:  cec-devel
BuildRequires:  libass-devel
BuildRequires:  avahi-compat-libdns_sd-devel
BuildRequires:  libvpx-devel
BuildRequires:  gdb
BuildRequires:  yasm
BuildRequires:  pkgconfig(exiv2)
%if %build_lame
BuildRequires:  lame-devel
%endif
%if %build_dts
BuildRequires:  dtsdec-devel
%endif
%if %build_x264
BuildRequires:  x264-devel
%endif
%if %build_xvid
BuildRequires:  xvid-devel
%endif
%if %build_faac
BuildRequires:  libfaac-devel
%endif
%if %build_faad
BuildRequires:  libfaad2-devel
%endif
%if %{build_directfb}
BuildRequires:  libdirectfb-devel
%endif
BuildRequires:  libavc1394-devel
BuildRequires:  libiec61883-devel
BuildRequires:  mesagl-devel
BuildRequires:  mesaglu-devel
%if %maenable
BuildRequires:  multiarch-utils
%endif
BuildRequires:  perl(Net::UPnP::QueryResponse)
BuildRequires:  perl(Net::UPnP::ControlPoint)

# For Plugins
BuildRequires:  libvisual-devel
BuildRequires:  fftw-devel
BuildRequires:  SDL-devel
BuildRequires:  libdvdread-devel
BuildRequires:  libexif-devel
BuildRequires:  id3tag-devel
BuildRequires:  libvorbis-devel
BuildRequires:  libflac-devel
BuildRequires:  libcdaudio-devel
BuildRequires:  libcdda-devel
BuildRequires:  tiff-devel
BuildRequires:  mysql-devel
BuildRequires:  taglib-devel
BuildRequires:  python-curl
BuildRequires:  python-oauth
BuildRequires:  perl-XML-XPath
BuildRequires:  perl-Image-Size
BuildRequires:  perl-Date-Manip
BuildRequires:  perl-DateTime-Format-ISO8601
BuildRequires:  perl-SOAP-Lite
BuildRequires:  perl-XML-Simple
BuildRequires:  perl(Class::Factory::Util)



%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

%if %{build_tainted}
This package is in the "tainted" section because it contains software that supports
codecs that may be covered by software patents.
%endif
%if !%build_lame
Note that this build does not support MP3 encoding when recording
into the NuppelVideo format.
%endif
%if %{fixesdate}
This package is based on the MythTV "fixes" branch at revision %{gitversion}
%endif

%package -n %{lib_name}
Summary:        Library providing mythtv support
Group:          System/Libraries
Provides:       %{lib_name_orig} = %{version}-%{release}

%description -n %{lib_name}
Common library code for MythTV and add-on modules (development)
MythTV provides a unified graphical interface for recording and viewing
television programs.

%if %{build_tainted}
This package is in the "tainted" section because it contains software that supports
codecs that may be covered by software patents.
%endif
%if %{fixesdate}
This package is based on the MythTV "fixes" branch at revision %{gitversion}
%endif

%package -n %{lib_name_devel}
Summary:        Development files for libmyth
Group:          Development/Other
Requires:       %{lib_name} = %{version}-%{release}
Provides:       %{lib_name_orig}-devel = %{version}-%{release}
Provides:       myth-devel = %{version}-%{release}

%description -n %{lib_name_devel}
This package contains the header files and libraries for developing
add-ons for mythtv.

%if %{build_tainted}
This package is in the "tainted" section because it contains software that supports
codecs that may be covered by software patents.
%endif
%if %{fixesdate}
This package is based on the MythTV "fixes" branch at revision %{gitversion}
%endif

%package themes-base
Summary:        Base themes for mythtv's frontend
Group:          Video/Television
BuildArch:      noarch

%description themes-base
MythTV provides a unified graphical interface for recording and viewing
television programs.

This package contains only the base themes used by mythtv-frontend and
mythtv-setup.

%package common
Summary:        Common components needed by multiple other MythTV components
Group:          Video/Television
Requires:       perl-DBD-mysql
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-backend < 0.27.4-20141022.9

%description common
MythTV provides a unified graphical interface for recording and viewing
television programs.

This package contains components needed by multiple other MythTV components.

%package frontend
Summary:        Client component of mythtv (a PVR)
Group:          Video/Television
Requires:       mythtv-themes-base = %{version}-%{release}
Requires:       mythtv-common = %{version}-%{release}
Requires:       qt5-database-plugin-mysql
Requires:       mplayer
%if %{build_tainted}
Requires:       transcode
Requires:       %mklibname dvdcss 2
%endif

%description frontend
MythTV provides a unified graphical interface for recording and viewing
television programs.

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.

%if %{build_tainted}
This package is in the "tainted" section because it contains software that supports
codecs that may be covered by software patents.
%endif
%if %{fixesdate}
This package is based on the MythTV "fixes" branch at revision %{gitversion}
%endif

%package backend
Summary:        Server component of mythtv (a PVR)
Group:          Video/Television
Requires:       %{lib_name} = %{version}-%{release}
Requires:       mythtv-common = %{version}-%{release}
Requires:       qt5-database-plugin-mysql
Requires(post):  rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1
Recommends:       mysql

%description backend
MythTV provides a unified graphical interface for recording and viewing
television programs.

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.

%if %{build_tainted}
This package is in the "tainted" section because it contains software that supports
codecs that may be covered by software patents.
%endif
%if !%build_lame
Note that this build does not support MP3 encoding when recording
into the NuppelVideo format.
%endif
%if %{fixesdate}
This package is based on the MythTV "fixes" branch at revision %{gitversion}
%endif

%package setup
Summary:        Setup the mythtv backend
Group:          Video/Television
Requires:       mythtv-backend = %{version}-%{release}
Requires:       mythtv-themes-base = %{version}-%{release}
Obsoletes:      mythtvsetup < 0.19
Provides:       mythtvsetup
Requires:       qt5-database-plugin-mysql

%description setup
MythTV provides a unified graphical interface for recording and viewing
television programs.

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

%if %{build_tainted}
This package is in the "tainted" section because it contains software that supports
codecs that may be covered by software patents.
%endif
%if !%build_lame
Note that this build does not support MP3 encoding when recording
into the NuppelVideo format.
%endif
%if %{fixesdate}
This package is based on the MythTV "fixes" branch at revision %{gitversion}
%endif

%package doc
Summary:        MythTV documentation
Group:          Video/Television
BuildArch:      noarch

%description doc
MythTV provides a unified graphical interface for recording and viewing
television programs.

This package contains the documentation and contributed additional
scripts for MythTV.

%package -n perl-MythTV
Summary:        Perl bindings for MythTV
Group:          Development/Perl

%description -n perl-MythTV
MythTV provides a unified graphical interface for recording and viewing
television programs.

This package contains the perl bindings for MythTV.

%package -n python-mythtv
Summary:        Python bindings for MythTV
Group:          Development/Python
Requires:       python-mysql
Requires:       python-lxml

%description -n python-mythtv
MythTV provides a unified graphical interface for recording and viewing
television programs.

This package contains the python bindings for MythTV.

%package -n php-mythtv
Summary:        PHP bindings for MythTV
Group:          Development/PHP
BuildArch:      noarch
Requires:       php-mysql

%description -n php-mythtv
MythTV provides a unified graphical interface for recording and viewing
television programs.

This package contains the PHP bindings for MythTV.

%package plugin-browser
Summary:        Full web browser for MythTV
URL:            http://www.mythtv.org/
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-browser
MythBrowser is a full web browser for MythTV.

%package plugin-gallery
Summary:        Gallery/slideshow module for MythTV
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-gallery
A gallery/slideshow module for MythTV.

%package plugin-game
Summary:        Game frontend for MythTV
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-game
A game frontend for MythTV.

%package plugin-music
Summary:        The music player add-on module for MythTV
Group:          Video/Television
#Requires:       cdparanoia
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-music
The music player add-on module for MythTV.

%if %{build_tainted}
This package is in the tainted section because it contains software that supports
codecs that may be covered by software patents.
%endif

%package plugin-netvision
Summary:        NetVision for MythTV
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-netvision
NetVision for MythTV. View popular media website content.

%package plugin-news
Summary:        RSS News feed plugin for MythTV
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-news
An RSS News feed plugin for MythTV.

%package plugin-weather
Summary:        MythTV module that displays a weather forecast
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

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

%package plugin-zoneminder
Summary:        Security camera plugin for MythTV
Group:          Video/Television
Requires:       mythtv-frontend >= %{version}
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-zoneminder
A security camera plugin for MythTV.

%package plugin-archive
Summary:        Creates DVDs from your recorded shows
Group:          Video/Television
Requires:       dvd+rw-tools
Requires:       dvdauthor
Requires:       ffmpeg
Requires:       mjpegtools
Requires:       python-imaging
Requires:       python-mysql
Requires:       mythtv-frontend >= %{version}
%if %{build_tainted}
Requires:       transcode
%endif
Requires:       cdrkit-genisoimage
# ease upgrade (can be removed for mga7)
Conflicts:      mythtv-frontend < 0.27.4-20141022.9

%description plugin-archive
MythArchive is a plugin for MythTV that lets you create DVDs
from your recorded shows, MythVideo files and any video files
available on your system. It can also archive recordings in a
proprietary format that archives not only the file but also all the
associated metadata like title, description and cut list information
which will mean you can create backups of myth recordings which can
later be restored or it will also allow you to move recordings
between myth systems without losing any of the metadata. It is a
complete rewrite of the old MythBurn bash scripts, now using python,
and the mythfrontend UI plugin.



%prep
%setup -q
%autopatch -p1

# (cg) The install scripts are pretty dumb at times and include these files
# so lets trash them early
find \( -name .gitignore -o -name "*.[0-9][0-9][0-9][0-9]" \) -delete

pushd mythtv
# (cg) As of 0.21, only contrib scripts are affected.
find contrib -type f | xargs grep -l /usr/local | xargs perl -pi -e's|/usr/local|%{_prefix}|g'

echo "QMAKE_PROJECT_DEPTH = 0" >> mythtv.pro
echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro

cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE8} .
for file in mythbackend.init \
            mythbackend.service \
            mythbackend.sysconfig \
            mythbackend.logrotate; do
  sed -e's|@logdir@|%{_logdir}|g' \
      -e's|@rundir@|%{_var}/run|g' \
      -e's|@sysconfdir@|%{_sysconfdir}|g' \
      -e's|@sysconfigdir@|%{_sysconfdir}/sysconfig|g' \
      -e's|@initdir@|%{_initrddir}|g' \
      -e's|@bindir@|%{_bindir}|g' \
      -e's|@sbindir@|%{_sbindir}|g' \
      -e's|@subsysdir@|%{_var}/lock/subsys|g' \
      -e's|@varlibdir@|%{_localstatedir}/lib|g' \
      -e's|@varcachedir@|%{_var}/cache|g' \
      -e's|@logrotatedir@|%{_sysconfdir}/logrotate.d|g' \
  < $file.in > $file
done

# default recordings dir
perl -pi -e's|/mnt/store|%{_localstatedir}/lib/mythtv/recordings|' programs/mythtv-setup/backendsettings.cpp

# do not set hardcoded archflags
perl -pi -e's|^echo "ARCHFLAGS=|# echo "ARCHFLAGS=|' configure

# Fix the version reporting (which assumes git clone)
perl -pi -e"s|SOURCE_VERSION=.*|SOURCE_VERSION='%{version}-%{release} (aka %{gitversion})'\nBRANCH='fixes/%{version}'|" version.sh
popd

#(eatdirt) added -DHAVE_PTHREAD_H to fix udfreac.c for armv5. There is a
#conditional in there using either atomic, or fall back to pthread if
#HAVE_PTHREAD_H is defined.

%build
pushd mythtv
./configure \
  --prefix=%{_prefix} \
  --libdir-name=%{_lib} \
  --enable-runtime-cpudetect \
  --enable-dvb \
  --without-bindings=perl \
  --extra-cxxflags="%{optflags} -fno-devirtualize" \
  --extra-cflags="%{optflags} -DHAVE_PTHREAD_H" \
  --extra-ldflags="%{ldflags}" \
%ifarch %arm
  --disable-vdpau \
  --disable-vaapi \
  --disable-opengl-video \
%else
  --enable-vdpau \
  --enable-vaapi \
  --enable-opengl-video \
%endif
  --enable-crystalhd \
  --enable-libfftw3 \
  --enable-libdns-sd \
  --enable-libvpx \
%if %{build_tainted}
  --enable-nonfree \
%endif
%if %{build_x264}
  --enable-libx264 \
%endif
%if %{build_xvid}
  --enable-libxvid \
%endif
%if %{build_faac}
  --enable-libfaac \
%endif
%if %{build_lame}
  --enable-libmp3lame \
%endif
  --enable-firewire \
  --disable-mythlogserver

%make_build

# This is easier to do ourselves
pushd bindings/perl
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build
popd
popd

# Install temporarily to compile plugins
mkdir temp
temp=$(pwd)/temp
make -C mythtv install INSTALL_ROOT=$temp
export LD_LIBRARY_PATH=$temp%{_libdir}:$LD_LIBRARY_PATH

pushd mythplugins

# Fix things up so they can find our "temp" install location for mythtv libs
echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro
find . -name \*.pro \
  -exec sed -i -e "s,INCLUDEPATH += .\+/include/mythtv,INCLUDEPATH += $temp%{_includedir}/mythtv," {} \; \
  -exec sed -i -e "s,DEPLIBS = \$\${LIBDIR},DEPLIBS = $temp%{_libdir}," {} \; \
  -exec sed -i -e "s,\$\${PREFIX}/include/mythtv,$temp%{_includedir}/mythtv," {} \;
echo "INCLUDEPATH -= \$\${PREFIX}/include" >> settings.pro
echo "INCLUDEPATH -= \$\${SYSROOT}/\$\${PREFIX}/include" >> settings.pro
echo "INCLUDEPATH -= %{_includedir}" >> settings.pro
echo "INCLUDEPATH += $temp%{_includedir}" >> settings.pro
echo "INCLUDEPATH += %{_includedir}" >> settings.pro
echo "LIBS *= -L$temp%{_libdir}" >> settings.pro
echo "QMAKE_LIBDIR += $temp%{_libdir}" >> targetdep.pro

./configure \
  --prefix=${temp}%{_prefix} \
  --libdir=${_libdir} \
  --libdir-name=${_lib} \
  --enable-all \
  --libdir-name=%{_lib}

%make_build

popd



%install
export INSTALL_ROOT=%{buildroot}

pushd mythtv
%make_install

pushd bindings/perl
%make_install
popd


%if %maenable
%multiarch_includes %{buildroot}%_includedir/mythtv/mythconfig.h
%endif

mkdir -p %{buildroot}%{_localstatedir}/lib/mythtv
mkdir -p %{buildroot}%{_localstatedir}/lib/mythtv/recordings
mkdir -p %{buildroot}%{_var}/cache/mythtv
mkdir -p %{buildroot}%{_logdir}/mythtv
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig

install -p mythbackend.init %{buildroot}%{_initrddir}/mythbackend
install -p mythbackend.service %{buildroot}%{_unitdir}/mythbackend.service
install -p mythbackend.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mythbackend
install -p mythbackend.logrotate  %{buildroot}%{_sysconfdir}/logrotate.d

# wmsession.d for mythfrontend
mkdir -p %{buildroot}%{_datadir}/xsessions
install -p %{SOURCE4} %{buildroot}%{_datadir}/xsessions

# icon
install -d -m755 %{buildroot}/%{_miconsdir}
install -m755 %{SOURCE5} %{buildroot}/%{_miconsdir}/%name.png

install -d -m755 %{buildroot}/%{_iconsdir}
install -m755 %{SOURCE6} %{buildroot}/%{_iconsdir}/%name.png

install -d -m755 %{buildroot}/%{_liconsdir}
install -m755 %{SOURCE7} %{buildroot}/%{_liconsdir}/%name.png


# Menu entries
install -d -m755 %{buildroot}%{_datadir}/applications
cat <<EOF > %{buildroot}%{_datadir}/applications/%{_real_vendor}-mythtv-frontend.desktop
[Desktop Entry]
Name=MythTV
Comment=Record, playback and watch TV
Exec=mythfrontend
Icon=%{name}
Terminal=false
Type=Application
Categories=Qt;AudioVideo;Video;TV;Recorder;
EOF
cat <<EOF > %{buildroot}%{_datadir}/applications/%{_real_vendor}-mythtv-setup.desktop
[Desktop Entry]
Name=MythTV Setup
Comment=Setup MythTV backend
Exec=mythtv-setup
Icon=%{name}
Terminal=false
Type=Application
Categories=Qt;AudioVideo;Video;TV;Recorder;
EOF

cat > README.install.urpmi <<EOF
You can import the initial database by running:
mysql -u root -p < %{_datadir}/mythtv/initialdb/mc.sql
(you can omit -p if you do not have the password set)
EOF

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

install -d -m755 %{buildroot}%{_datadir}/mythtv/initialdb
install -m644 database/* %{buildroot}%{_datadir}/mythtv/initialdb

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

# install a few useful contrib scripts
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -ar contrib %{buildroot}%{_datadir}/%{name}

popd

pushd mythplugins
%make_install

#mythgallery
mkdir -p %{buildroot}%{_localstatedir}/lib/pictures
#mythmusic
mkdir -p %{buildroot}%{_localstatedir}/lib/mythmusic

mkdir -p %{buildroot}{%_docdir}/mythtv-plugin-{browser,gallery,game,music,netvision,news,weather,video,zoneminder}

popd

# Remove python egg-info as it's pointless
rm -f %{buildroot}%{python2_sitelib}/MythTV-*.egg-info

# (cg) We cover the package license so no need to include it separately
rm -f %{buildroot}%{_datadir}/%{name}/fonts/tiresias_gpl3.txt

# (cg) This is needed for the %%doc stuff on the subpackages for some reason...
mkdir -p %{buildroot}%{_docdir}/%{name}-backend
mkdir -p %{buildroot}%{_docdir}/%{name}-doc

# (cg) For some reason the FFmpeg stuff is included in two build roots :s
if [ -d %{buildroot}%{buildroot}%{_includedir}/%{name} ]; then
  mv %{buildroot}%{buildroot}%{_includedir}/%{name}/* %{buildroot}%{_includedir}/%{name}
  rmdir -p %{buildroot}%{buildroot}%{_includedir}/%{name} || /bin/true
fi
if [ -f %{buildroot}%{buildroot}%{_bindir}/mythffmpeg ]; then
  mv %{buildroot}%{buildroot}%{_bindir}/mythff* %{buildroot}%{_bindir}
  rmdir -p %{buildroot}%{buildroot}%{_bindir} || /bin/true
fi

# (cg) The mythzeromq stuff is not needed in our -devel package.
rm -f %{buildroot}%{_includedir}/zmq*.h* %{buildroot}%{_libdir}/pkgconfig/libmythzmq.pc
rmdir %{buildroot}%{_libdir}/pkgconfig 2>/dev/null || :

# (cg) Clean up some other stuff we don't want to include
rm -f %{buildroot}%{_libdir}/libmythqjson.prl

find %{buildroot} -name *.la -delete
find %{buildroot} -name *.a -delete

%pre backend
# Add the "mythtv" user
%_pre_useradd mythtv %{_localstatedir}/lib/mythtv /sbin/nologin
%{_bindir}/gpasswd -a mythtv audio &>/dev/null
%{_bindir}/gpasswd -a mythtv video &>/dev/null

%postun backend
%_postun_userdel mythtv

%post backend
%_post_service mythbackend

%preun backend
%_preun_service mythbackend

%files doc
%doc mythtv/README mythtv/UPGRADING mythtv/AUTHORS mythtv/COPYING mythtv/FAQ
%doc mythtv/keys.txt
#%%doc docs/*.html docs/*.png docs/*.txt docs/i18n
%doc mythtv/contrib
%{_datadir}/%{name}/fonts/*.txt
%{_datadir}/%{name}/contrib
%{_datadir}/%{name}/html


%files common
#%%dir %%{_sysconfdir}/%%{name}
#%%config(noreplace) %%{_sysconfdir}/%%{name}/mysql.txt
#%%config(noreplace) %%{_sysconfdir}/%%{name}/config.xml
%{_bindir}/mythccextractor
%{_bindir}/mythcommflag
%{_bindir}/mythpreviewgen
%{_bindir}/mythtranscode
%{_bindir}/mythwikiscripts
%{_bindir}/mythmetadatalookup
%{_bindir}/mythutil
%{_bindir}/mythfilerecorder
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/mythconverg_backup.pl
%{_datadir}/%{name}/mythconverg_restore.pl
%dir %{_datadir}/%{name}/locales
%{_datadir}/%{name}/locales/*
%dir %{_datadir}/%{name}/metadata
%{_datadir}/%{name}/metadata/*
%dir %{_datadir}/%{name}/hardwareprofile
%{_datadir}/%{name}/hardwareprofile/*

%files backend
%doc mythtv/README.install.urpmi
%{_bindir}/mythbackend
%{_bindir}/mythhdhomerun_config
%{_bindir}/mythfilldatabase
%{_bindir}/mythjobqueue
%{_bindir}/mythmediaserver
%{_bindir}/mythreplex
%attr(-,mythtv,mythtv) %dir %{_localstatedir}/lib/mythtv
%attr(-,mythtv,mythtv) %dir %{_localstatedir}/lib/mythtv/recordings
%attr(-,mythtv,mythtv) %dir %{_var}/cache/mythtv
%{_unitdir}/mythbackend.service
%{_initrddir}/mythbackend
%config(noreplace) %{_sysconfdir}/sysconfig/mythbackend
%config(noreplace) %{_sysconfdir}/logrotate.d/*
%attr(-,mythtv,mythtv) %dir %{_logdir}/mythtv
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/backend-config
%dir %{_datadir}/%{name}/initialdb
%{_datadir}/%{name}/initialdb/mc.sql
%dir %{_datadir}/mythtv/internetcontent
%{_datadir}/mythtv/internetcontent/*

%files frontend
%config(noreplace) %{_datadir}/xsessions/mythfrontend.desktop
%{_datadir}/mythtv/*.xml
%{_bindir}/mythwelcome
%{_bindir}/mythfrontend
%{_bindir}/mythff*
%{_bindir}/mythlcdserver
%{_bindir}/mythscreenwizard
%{_bindir}/mythshutdown
%{_bindir}/mythavtest
%dir %{_libdir}/mythtv
%{_libdir}/mythtv/filters
%dir %{_libdir}/mythtv/plugins
%dir %{_datadir}/mythtv
%dir %{_datadir}/mythtv/fonts
%{_datadir}/mythtv/fonts/*.ttf
%{_datadir}/mythtv/fonts/*.otf
%{_datadir}/mythtv/i18n
%{_datadir}/applications/%{_real_vendor}-mythtv-frontend.desktop

%files setup
%{_bindir}/mythtv-setup
%{_datadir}/applications/%{_real_vendor}-mythtv-setup.desktop
%dir %{_datadir}/mythtv
%{_datadir}/mythtv/setup.xml

%files themes-base
%dir %{_datadir}/mythtv
%{_datadir}/mythtv/themes
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png
%{_liconsdir}/%name.png

%files -n %{lib_name}
%{_libdir}/*.so.*

%files -n %{lib_name_devel}
%if %maenable
%multiarch %{multiarch_includedir}/mythtv/mythconfig.h
%endif
%{_includedir}/mythtv
# FIXME: Manually multiarch mythconfig.mak
%{_libdir}/*.so
#%%{_datadir}/mythtv/build/settings.pro

%files -n perl-MythTV
%{perl_vendorlib}/MythTV.pm
%{perl_vendorlib}/MythTV
%{perl_vendorlib}/IO/Socket/INET/MythTV.pm

%files -n python-mythtv
%{_bindir}/mythpython
%dir %{python2_sitelib}/MythTV
%{python2_sitelib}/MythTV/*

%files -n php-mythtv
%dir %{_datadir}/%{name}/bindings
%{_datadir}/%{name}/bindings/php

%files plugin-browser
%doc mythplugins/mythbrowser/README mythplugins/mythbrowser/COPYING mythplugins/mythbrowser/AUTHORS
%{_libdir}/mythtv/plugins/libmythbrowser.so
%{_datadir}/mythtv/i18n/mythbrowser_*.qm
%{_datadir}/mythtv/themes/default*/browser-ui.xml
%{_datadir}/mythtv/themes/default*/mb_*.png

%files plugin-gallery
%doc mythplugins/mythgallery/README*
%{_libdir}/mythtv/plugins/libmythgallery.so
%{_datadir}/mythtv/i18n/mythgallery_*.qm
%{_datadir}/mythtv/themes/default*/gallery*
%{_localstatedir}/lib/pictures

%files plugin-game
%doc mythplugins/mythgame/romdb*
%{_libdir}/mythtv/plugins/libmythgame.so
%{_datadir}/mythtv/i18n/mythgame_*.qm
%{_datadir}/mythtv/game_settings.xml
%{_datadir}/mythtv/themes/default*/game*
%dir %{_datadir}/mythtv/metadata
%{_datadir}/mythtv/metadata/Game

%files plugin-music
%doc mythplugins/mythmusic/AUTHORS mythplugins/mythmusic/COPYING mythplugins/mythmusic/README* mythplugins/mythmusic/musicdb
%{_datadir}/mythtv/music_settings.xml
%{_datadir}/mythtv/musicmenu.xml
#{_datadir}/mythtv/mythmusic/streams.xml
%{_libdir}/mythtv/plugins/libmythmusic.so
%{_localstatedir}/lib/mythmusic
%{_datadir}/mythtv/i18n/mythmusic_*.qm
%{_datadir}/mythtv/themes/default/ff_button*.png
%{_datadir}/mythtv/themes/default*/mm_*.png
%{_datadir}/mythtv/themes/default*/mm-*.png
%{_datadir}/mythtv/themes/default/music-*.png
%{_datadir}/mythtv/themes/default*/*music*.xml
%{_datadir}/mythtv/themes/default/next_button*.png
%{_datadir}/mythtv/themes/default/pause_button*.png
%{_datadir}/mythtv/themes/default/play_button*.png
%{_datadir}/mythtv/themes/default/prev_button*.png
%{_datadir}/mythtv/themes/default/rew_button*.png
%{_datadir}/mythtv/themes/default/selectionbar.png
%{_datadir}/mythtv/themes/default/stop_button*.png
%{_datadir}/mythtv/themes/default/track_info_background.png
%{_datadir}/mythtv/themes/default/miniplayer_background.png
%{_datadir}/mythtv/themes/default/stream-ui.xml
%{_datadir}/mythtv/themes/default-wide/music-sel-bg.png
%{_datadir}/mythtv/themes/default-wide/stream-ui.xml

%files plugin-netvision
%doc mythplugins/mythnetvision/README mythplugins/mythnetvision/ChangeLog mythplugins/mythnetvision/AUTHORS
%{_bindir}/mythfillnetvision
%{_libdir}/mythtv/plugins/libmythnetvision.so
%{_datadir}/mythtv/i18n/mythnetvision_*.qm
%{_datadir}/mythtv/mythnetvision
%{_datadir}/mythtv/netvisionmenu.xml
%{_datadir}/mythtv/themes/default*/netvision*.xml

%files plugin-news
%doc mythplugins/mythnews/AUTHORS mythplugins/mythnews/COPYING mythplugins/mythnews/ChangeLog mythplugins/mythnews/README*
%{_libdir}/mythtv/plugins/libmythnews.so
%{_datadir}/mythtv/i18n/mythnews_*.qm
%{_datadir}/mythtv/mythnews
%{_datadir}/mythtv/themes/default*/news*
%{_datadir}/mythtv/themes/default/enclosures.png
%{_datadir}/mythtv/themes/default/need-download.png
%{_datadir}/mythtv/themes/default/podcast.png

%files plugin-weather
%doc mythplugins/mythweather/AUTHORS mythplugins/mythweather/COPYING mythplugins/mythweather/README*
%{_libdir}/mythtv/plugins/libmythweather.so
%{_datadir}/mythtv/i18n/mythweather_*.qm
%{_datadir}/mythtv/mythweather
%{_datadir}/mythtv/themes/default/cloudy.png
%{_datadir}/mythtv/themes/default/fair.png
%{_datadir}/mythtv/themes/default/flurries.png
%{_datadir}/mythtv/themes/default/fog.png
%{_datadir}/mythtv/themes/default/logo.png
%{_datadir}/mythtv/themes/default/lshowers.png
%{_datadir}/mythtv/themes/default/mcloudy.png
%{_datadir}/mythtv/themes/default/pcloudy.png
%{_datadir}/mythtv/themes/default/rainsnow.png
%{_datadir}/mythtv/themes/default/showers.png
%{_datadir}/mythtv/themes/default/snowshow.png
%{_datadir}/mythtv/themes/default/sunny.png
%{_datadir}/mythtv/themes/default/thunshowers.png
%{_datadir}/mythtv/themes/default/unknown.png
%{_datadir}/mythtv/themes/default*/mw*.png
%{_datadir}/mythtv/themes/default*/weather-ui.xml
%{_datadir}/mythtv/weather_settings.xml

%files plugin-zoneminder
%doc mythplugins/mythzoneminder/README mythplugins/mythzoneminder/COPYING mythplugins/mythzoneminder/AUTHORS
%{_bindir}/mythzmserver
%{_libdir}/mythtv/plugins/libmythzoneminder.so
%{_datadir}/mythtv/zonemindermenu.xml
%{_datadir}/mythtv/themes/default*/zoneminder*.xml
%{_datadir}/mythtv/themes/default*/mz_*.png
%{_datadir}/mythtv/i18n/mythzoneminder_*.qm

%files plugin-archive
%{_bindir}/mytharchivehelper
%{_libdir}/mythtv/plugins/libmytharchive.so
%{_datadir}/mythtv/archive*.xml
%{_datadir}/mythtv/mytharchive
%{_datadir}/mythtv/themes/default/ma_*.png
%{_datadir}/mythtv/themes/default/mytharchive-ui.xml
%{_datadir}/mythtv/themes/default/mythburn-ui.xml
%{_datadir}/mythtv/themes/default/mythnative-ui.xml
%{_datadir}/mythtv/themes/default-wide/mytharchive-ui.xml
%{_datadir}/mythtv/themes/default-wide/mythburn-ui.xml
%{_datadir}/mythtv/themes/default-wide/mythnative-ui.xml
%{_datadir}/mythtv/i18n/mytharchive_*.qm



%changelog
* Sat Jun 24 2017 tmb <tmb> 0.28.1-20170528.6.mga6
+ Revision: 1108353
- rebuild for exiv2

* Tue Jun 20 2017 neoclust <neoclust> 0.28.1-20170528.5.mga6
+ Revision: 1107998
- Rebuild against new exiv2

* Thu Jun 01 2017 eatdirt <eatdirt> 0.28.1-20170528.4.mga6.tainted
+ Revision: 1105717
- Commenting spec files, resubmit for segfault on armv5

* Tue May 30 2017 eatdirt <eatdirt> 0.28.1-20170528.3.mga6.tainted
+ Revision: 1105626
- Tentative fix for armv5 build

* Tue May 30 2017 eatdirt <eatdirt> 0.28.1-20170528.2.mga6
+ Revision: 1105583
- Upgrade to version 0.28.1 + fixes since

* Tue Jan 10 2017 luigiwalser <luigiwalser> 0.27.4-20141022.11.mga6.tainted
+ Revision: 1080923
- rebuild for libass

* Sat Oct 15 2016 daviddavid <daviddavid> 0.27.4-20141022.10.mga6.tainted
+ Revision: 1060982
- submit to tainted

* Sat Oct 15 2016 daviddavid <daviddavid> 0.27.4-20141022.9.mga6
+ Revision: 1060971
- fix conflicting plugin files (mga#19588)
- add a missing requires on perl-DBD-mysql (mga#19589)
- fix conflicting perl script files (mga#19589)
- add also adequate Conflicts to ease upgrade

* Fri Oct 14 2016 daviddavid <daviddavid> 0.27.4-20141022.8.mga6.tainted
+ Revision: 1060717
- submit to tainted

* Fri Oct 14 2016 daviddavid <daviddavid> 0.27.4-20141022.7.mga6
+ Revision: 1060709
- fix desktop file Categories (mga#2449)

* Sat Jun 18 2016 pterjan <pterjan> 0.27.4-20141022.6.mga6.tainted
+ Revision: 1022163
- Rebuild for perl 5.22.2

* Wed Mar 02 2016 umeabot <umeabot> 0.27.4-20141022.5.mga6
+ Revision: 983781
- Rebuild for openssl

* Sun Jan 10 2016 wally <wally> 0.27.4-20141022.4.mga6.tainted
+ Revision: 921213
- add slightly modified patch via Arch Linux to fix build with new libvpx

  + tv <tv>
    - rebuild for new libvpx

  + daviddavid <daviddavid>
    - rebuild for new libvpx 1.5.0

* Sat Jun 27 2015 cjw <cjw> 0.27.4-20141022.2.mga6.tainted
+ Revision: 846289
- rebuild for libvpx 1.4

* Wed Oct 22 2014 colin <colin> 0.27.4-20141022.1.mga5.tainted
+ Revision: 792509
- New version: 0.27.4+fixes to b305eb5

* Wed Oct 15 2014 umeabot <umeabot> 0.27.3-20140728.3.mga5.tainted
+ Revision: 739939
- Second Mageia 5 Mass Rebuild

* Sat Sep 27 2014 tv <tv> 0.27.3-20140728.2.mga5.tainted
+ Revision: 727447
- rebuild for missing pythoneggs deps
- s/uggests:/Recommends:/

* Mon Jul 28 2014 colin <colin> 0.27.3-20140728.1.mga5.tainted
+ Revision: 657796
- Update to latest fixes

* Thu Jul 10 2014 colin <colin> 0.27.3-20140710.1.mga5.tainted
+ Revision: 651063
- Update to 0.27.3 + latest fixes
- Update to latest fixes
- Add note to spec about how to update to latest fixes

* Thu Jun 05 2014 fwang <fwang> 0.27.1-1.mga5.tainted
+ Revision: 633357
- add switch to build correctly
- 0.27.1

  + pterjan <pterjan>
    - Rebuild for new Python

* Sun Mar 30 2014 daviddavid <daviddavid> 0.27-20131222.5.mga5.tainted
+ Revision: 610580
- rebuild for new x264

* Mon Feb 17 2014 luigiwalser <luigiwalser> 0.27-20131222.4.mga5
+ Revision: 593269
- rebuild for x264

* Sat Feb 15 2014 luigiwalser <luigiwalser> 0.27-20131222.3.mga5.tainted
+ Revision: 592221
- rebuild for libass

* Sat Dec 28 2013 colin <colin> 0.27-20131222.2.mga4.tainted
+ Revision: 562892
- Disable the logserver (it's only recommended for developers)

* Sun Dec 22 2013 colin <colin> 0.27-20131222.1.mga4.tainted
+ Revision: 559914
- Update to latest fixes

* Tue Sep 24 2013 colin <colin> 0.27-20130922.2.mga4.tainted
+ Revision: 484758
- Really fix the version reported

* Mon Sep 23 2013 colin <colin> 0.27-20130922.1.mga4.tainted
+ Revision: 484359
- Fix version reporting
- Fix plugin build
- Properly fix zeromq install path
- Build and package the plugins too.
- New version: 0.27
- Change build to cope with mythtv subdir in new upstream tarball format
- Rediff patches and combine plugins patches (currently unused)
- Update to latest fixes

* Tue Aug 20 2013 fwang <fwang> 0.26.1-2.mga4.tainted
+ Revision: 468077
- use system build flags

* Tue Aug 20 2013 fwang <fwang> 0.26.1-1.mga4
+ Revision: 468070
- use libvaapi compat
- new version 0.26.1

* Fri Mar 29 2013 colin <colin> 0.26.0-20130328.1.mga3.tainted
+ Revision: 406445
- Add yasm as a Build Require
- Add support for libcec 2.x
- New version: 0.26

* Sun Jan 20 2013 barjac <barjac> 0.25.2-20120829.3.mga3.tainted
+ Revision: 390279
- update group

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Aug 30 2012 colin <colin> 0.25.2-20120829.1.mga3.tainted
+ Revision: 285584
- Update to 0.25.2 + latest fixes branch

* Fri Jun 29 2012 colin <colin> 0.25-20120602.3.mga3.tainted
+ Revision: 264947
- Rebuild against new libudev major
- Add suggests for mysql to the backend.

* Sat Jun 02 2012 colin <colin> 0.25-20120602.1.mga3.tainted
+ Revision: 253376
- Remove cflags patch as it causes segv's on i586 (mga#5716)
- Update to latest fixes.

* Sat Apr 28 2012 tmb <tmb> 0.25-20120418.3.mga2.tainted
+ Revision: 233806
- Require rpm-helper >= 0.24.8-1 for systemd support

* Sun Apr 22 2012 colin <colin> 0.25-20120418.2.mga2.tainted
+ Revision: 232578
- Fix upgrade

* Sun Apr 22 2012 colin <colin> 0.25-20120418.1.mga2.tainted
+ Revision: 232535
- Fix dns sd support
- Add missing build requires and enable missing features.
- New Version: 0.25

  + tmb <tmb>
    - BR gdb

* Thu Apr 05 2012 fwang <fwang> 0.24.2-4.mga2.tainted
+ Revision: 228630
- use our own build flags for qmake base libs

* Thu Apr 05 2012 fwang <fwang> 0.24.2-3.mga2
+ Revision: 228626
- use our own lflags

* Thu Apr 05 2012 fwang <fwang> 0.24.2-2.mga2.tainted
+ Revision: 228595
- bump rel to fix missing packages
- set corresponding noarch package

* Tue Jan 24 2012 fwang <fwang> 0.24.2-1.mga2.tainted
+ Revision: 200546
- new verison 0.24.2

* Sun Dec 18 2011 fwang <fwang> 0.24.1-20111019.3.mga2.tainted
+ Revision: 183601
- add br for qtwebkit

* Sat Dec 10 2011 eatdirt <eatdirt> 0.24.1-20111019.2.mga2
+ Revision: 180354
- Rebuilt for fftw-3.3

* Wed Oct 19 2011 colin <colin> 0.24.1-20111019.1.mga2.tainted
+ Revision: 156724
- Disable faac (it's no longer provided - revisit in mga2)
- Update to latest fixes

* Sun Sep 18 2011 colin <colin> 0.24.1-20110909.1.mga2.tainted
+ Revision: 145088
- Support tainted build

* Fri Sep 09 2011 colin <colin> 0.24.1-20110909.1.mga2
+ Revision: 141864
- %%make_session is deprecated. Replaced by file triggers.
- Update to latest fixes.

* Tue Jul 12 2011 colin <colin> 0.24.1-20110710.2.mga2
+ Revision: 123046
- Fix the lib major

* Mon Jul 11 2011 colin <colin> 0.24.1-20110710.1.mga2
+ Revision: 122165
- New version: 0.24.1+fixes

* Sun May 15 2011 pterjan <pterjan> 0.24-20110303.4.mga1
+ Revision: 99022
- Rebuild for fixed find-requires

* Tue Apr 26 2011 wally <wally> 0.24-20110303.3.mga1
+ Revision: 91781
- fix desktop file names (mga#954)
- fix exec lines in desktop files

* Sat Mar 05 2011 colin <colin> 0.24-20110303.2.mga1
+ Revision: 64865
- Bump release (previous package eaten by monster)

* Fri Mar 04 2011 colin <colin> 0.24-20110303.1.mga1
+ Revision: 64030
- Update to latest fixes
- imported package mythtv


* Mon Nov 15 2010 Colin Guthrie <cguthrie@mandriva.org> 0.24-27162.2mdv2011.0
+ Revision: 597804
- Fix PLF build

* Fri Nov 12 2010 Colin Guthrie <cguthrie@mandriva.org> 0.24-27162.1mdv2011.0
+ Revision: 596470
- Add some missing python build deps
- New version 0.24

* Thu Jun 17 2010 Colin Guthrie <cguthrie@mandriva.org> 0.23-25073.1mdv2010.1
+ Revision: 548207
- Update to latest fixes
- Add World Cup 2010 Vuvuzela audio filter

* Wed Jun 02 2010 Colin Guthrie <cguthrie@mandriva.org> 0.23-24821.2mdv2010.1
+ Revision: 546932
- Move mythcommflag to the backend package (mdv #59600)

* Tue May 25 2010 Colin Guthrie <cguthrie@mandriva.org> 0.23-24821.1mdv2010.1
+ Revision: 545863
- Updated to latest (post-release) -fixes

* Sun May 02 2010 Colin Guthrie <cguthrie@mandriva.org> 0.23-24334.1mdv2010.1
+ Revision: 541652
- Fix python includes
- Resurrect the nolame patch (my reading of upstream changes was bogus)
- New version: 0.23
- Update patch for enabling PA+alsa (only when PA is running + default device is used)
- Drop unneeded patches
- Fix the version reported by myth* --version
- Update to latest -fixes

* Sun Jan 17 2010 Anssi Hannula <anssi@mandriva.org> 0.22-22890.4mdv2010.1
+ Revision: 492811
- plf: disable x264 support as per Colin Guthrie's comments until fixed

* Mon Dec 21 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22890.3mdv2010.1
+ Revision: 480519
- Fix PLF configure with x264

* Tue Nov 24 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22890.2mdv2010.1
+ Revision: 469800
- Obsolete mythtv-plugin-controls (mdv#55663)
- Update to latest fixes
- Re-enable x264 support (it seems to build fine)
- enable-runtime-cpudetect

* Thu Nov 12 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22807.1mdv2010.1
+ Revision: 465509
- Update to post release -fixes.

* Wed Oct 21 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22550.0.1mdv2010.0
+ Revision: 458507
- Latest upstream fixes-branch

* Tue Oct 13 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22427.0.1mdv2010.0
+ Revision: 457193
- Latest fixes
- Fix no-lame patch

* Mon Oct 12 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22355.0.2mdv2010.0
+ Revision: 456965
- Enable vdpau and fftw3
- Fix PLF build

* Sun Oct 11 2009 Colin Guthrie <cguthrie@mandriva.org> 0.22-22355.0.1mdv2010.0
+ Revision: 456638
- Latest updates and do not accidentally include patch in export tree.
- Update to latest 0.22 code (currently trunk - release due shortly)
- Update lame patch for 0.22
- Enable PulseAudio by default (upstream suspend it). Automatic Suspending still possible.
- Rejig SPEC for QT4 build, drop old stuff

* Sat May 23 2009 Colin Guthrie <cguthrie@mandriva.org> 0.21-20320.2mdv2010.0
+ Revision: 379024
- Fix db schema creation (mdv#50698)

* Tue Apr 14 2009 Colin Guthrie <cguthrie@mandriva.org> 0.21-20320.1mdv2009.1
+ Revision: 367222
- Update to latest fixes revision
- Fix the version as reported by --version to include the correct svn revision

* Sun Feb 15 2009 Colin Guthrie <cguthrie@mandriva.org> 0.21-19961.1mdv2009.1
+ Revision: 340521
- Do not require arts
- Fix format-security fallow
- New fixes snapshot (r19961)

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Sat Sep 27 2008 Colin Guthrie <cguthrie@mandriva.org> 0.21-18452.1mdv2009.0
+ Revision: 288918
- Update to -fixes revision r18452

* Thu Jun 12 2008 Pixel <pixel@mandriva.com> 0.21-16564.2mdv2009.0
+ Revision: 218425
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
- adapt to %%_localstatedir now being /var instead of /var/lib (#22312)

  + Anssi Hannula <anssi@mandriva.org>
    - define %%_localstatedir locally for backportability

* Sun Mar 16 2008 Anssi Hannula <anssi@mandriva.org> 0.21-16564.2mdv2008.1
+ Revision: 188149
- build with correct optflags

* Sat Mar 15 2008 Colin Guthrie <cguthrie@mandriva.org> 0.21-16564.1mdv2008.1
+ Revision: 188078
- Update to latest fixes

* Sat Mar 01 2008 Colin Guthrie <cguthrie@mandriva.org> 0.21-0.16317.1mdv2008.1
+ Revision: 177469
- Fix python-devel BR
- Install the python bindings manually
- BuildRequires python-setuptools for bindings
- Add patch for building sans LAME
- Update fixes branch
- Prefix release by 0 to indicate pre-release.
- Update to 0.21-fixes branch. 0.21 is not yet officially released but we will follow this branch until the next release anyway.

  + Thierry Vignaud <tv@mandriva.org>
    - drop old menu
    - kill re-definition of %%buildroot on Pixel's request
    - s/Mandrake/Mandriva/

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Sat Sep 15 2007 Colin Guthrie <cguthrie@mandriva.org> 0.20.2-14486.1mdv2008.0
+ Revision: 86034
- Update fixes snapshot

  + Anssi Hannula <anssi@mandriva.org>
    - obsolete old devel name

* Thu Aug 30 2007 Colin Guthrie <cguthrie@mandriva.org> 0.20.2-14357.1mdv2008.0
+ Revision: 76260
- Update fixes snapshot
- New upstream fixes release - 0.20.2

  + Thierry Vignaud <tv@mandriva.org>
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

* Tue Aug 14 2007 Colin Guthrie <cguthrie@mandriva.org> 0.20-4.14154.1mdv2008.0
+ Revision: 63324
- Fix group
- Update to 'fixes' r14154

* Thu Apr 19 2007 Anssi Hannula <anssi@mandriva.org> 0.20-4.13272.1mdv2008.0
+ Revision: 15132
- new snapshot
- Import mythtv




* Sat Mar 24 2007 Anssi Hannula <anssi@mandriva.org> 0.20-3.13107.1mdv2007.0
+ Revision: 148719
- add conditional build option for dts
- add some contrib scripts to bindir
- enable the usual options unconditionally
- add build options for faad, faac, xvid, and enable them for plf
- add perl-MythTV for perl bindings
- drop archflags guessed by configure
- drop configure lib64 hack, fixed upstream
- add build options for lame and plf
- fix descriptions
- rename mythtv to mythtv-doc, and do not explicitely require it
- fix sysconfig location
- add xdg="true" to menu entries
- drop 0.19 upgrade notice
- move initial database file to mythtv-backend package
- own some unowned directories
- new snapshot from the stable branch
- patch2: allow build without lame
- uncompress patch1
- provide myth-devel in the -devel package
- rename mythtv-themes to mythtv-themes-base
- Import mythtv



* Sat Jan 20 2007 Stefan van der Eijk <stefan@zarb.org> 0.20-3
- add release-0-20-fixes patch (12579)
- drop glXWaitVideoSyncSGI patch
- move setup.xml to the setup package
- tighter dependencies (also on %%{release}) within the package
- fix logrotate to kill -HUP the pid. This should release storage
  of deleted episodes, etc.

* Thu Jan 11 2007 Stefan van der Eijk <stefan@zarb.org> 0.20-2
- add glXWaitVideoSyncSGI patch
- add pinit info to mythbacken initscript

* Tue Sep 12 2006 Anssi Hannula <anssi@zarb.org> 0.20-1plf2007.0
- 0.20
- xdg menu

* Sun Jul 16 2006 Anssi Hannula <anssi@zarb.org> 0.19.1-0.10553.1plf2007.0
- new snapshot of the stable branch
- minor fix to README.urpmi
- backportability buildrequires fix

* Sun Jun 04 2006 Stefan van der Eijk <stefan@zarb.org> 0.19-4plf
- fix BuildRequires (new mesa naming)
- add wmsession file for mythfrontend

* Sun Apr 23 2006 Anssi Hannula <anssi@zarb.org> 0.19-3plf
- fix PLF reason

* Tue Feb 21 2006 Anssi Hannula <anssi@zarb.org> 0.19-2plf
- fix menus
- add mythtv user to audio group

* Tue Feb 21 2006 Anssi Hannula <anssi@zarb.org> 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 <anssi@zarb.org> 0.18.2-0.7467.2plf
- fix requires qt3-MySQL

* Thu Oct 13 2005 Anssi Hannula <anssi@zarb.org> 0.18.2-0.7467.1plf
- upgrade to release-0-18-fixes svn branch revision 7467

* Mon Oct 10 2005 Anssi Hannula <anssi@zarb.org> 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 <stefan@zarb.org> 0.18.1-20050618.5plf
- fix menu's
- add menu entry to setup package
- move icons of menus to themes package
- add distsuffix
- fix filelist: include files
- add %%{_logdir} define for  %%mdkversion <= 1020
- add versioned Provides to devel package

* Sun Jul 24 2005 Stefan van der Eijk <stefan@zarb.org> 0.18.1-20050618.4plf
- use mythtv-setup name consitantly
- add Requires for theme package on frontend package
- modified Source2 --> default runlevels
- use %%mkrel
- replace non-standard defines with standard defines

* Thu Jul 14 2005 Stefan van der Eijk <stefan@zarb.org> 0.18.1-20050618.3plf
- BuildRequires

* Mon Jun 20 2005 Austin Acton <austin@zarb.org> 0.18.1-20050618.2plf
- get rid of some unnecessary version dependencies
- get rid of some unnecessary requires

* Fri Jun 18 2005 Austin Acton <austin@zarb.org> 0.18.1-20050618.1plf
- bring back to PLF
- bump to CVS for gcc4 and dvb fixes
- fix library major version
- fix some rpmlint
- parallel build (hope that's okay)
- TODO: avoid having -march defined three times in gcc commands
- add build option for native dvd (but disable by default)
- don't try to build firewire by default on < 2006.0
- multiarch macros on >= 10.2
- fix icons for menu

* Fri May 21 2005 Colin Guthrie <mythtv@colin.guthr.ie> 0.18.1-2.mdk10.2.thac
- Patch has_library funcion in myth on x86_64 builds to detect libs correctly

* Fri May 20 2005 Colin Guthrie <mythtv@colin.guthr.ie> 0.18.1-1.mdk10.2.thac
- Fixes for x86_64 builds
- Bump version to 0.18.1

* Sun Apr 24 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.18-2.mdk10.2.thac
- Sync with changes from Stefan van der Eijk <stefan@eijk.nu>
- re-did the --with & --without mechanism
- re-did the BuildRequires
- used %%configure instead of editting the settings.pro file

* Sun Apr 24 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.18-1.mdk10.2.thac
- 0.18
- Fix spec to build on pclo


* Wed Feb 16 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.17-3.mdk10.1.thac
- Fix Provides lybmyth = 0.17

* Tue Feb 15 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.17-2.mdk10.1.thac
- Chenge conlicts xmltv-grabbers to obsoletes

* Sun Feb 13 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.17-1.mdk10.1.thac
- Update to 0.17
- Sync with Axel Thimm spec file
- Remove dependencies on xmltv-grabbers and mysql (Edward Rudd
  <eddie@omegaware.com>)..
- Enable opengl_vsync and xrandr for some distributions.

* Mon Oct 25 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-5.mdk10.1.thac
- 5.mdk10.1.thac
- Where "5" is the release of the package, "mdk" is the distro, "10.1" is the release of the distro, and "thac" is the Torbjorn Turpeinen extension.

* Fri Oct 22 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-4thac
- Synced with Sefan van der Eijks spec file
- Updated requiremnts for kdelibs,xmlltv and lame
- Rebuilt for Mandrake-10.1

* Mon Oct 05 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-3thac
- Changed requirement to qt3 >= 3.3.3

* Fri Sep 10 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-2thac 
- Included .png files for html help

* Fri Sep 10 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-1thac
- Updated to latest version
- Included dvb support in the build. 
- Changed back to thac release to be able to support nnidia and via builds.

* Wed Jun 23 2004 Stefan van der Eijk <stefan@eijk.nu> 0.15.1-2plf
- turn off building against NVIDIA by default, untill the NVIDIA
  packages are in plf
- patch0 gcc 3.4 fixes

* Wed Jun 02 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.15.1-1plf
- Updated to latest version

* Fri May 28 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.15-1plf
- Updated to latest version
- Use workaround for qmake project depth bug
  (by Robert Hardy <rhardy@webcon.ca>).
- Split off mythtvsetup and the base themes into their own sub packages.
- Make mysql.txt part of both frontend and backend.
- Added support for arts and dvb. arts has been enabled by default.
- Disable directfb in default build.

* Sat Feb 28 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.14-4plf
- Added the missing configfiles dir to %%doc

* Sat Feb 21 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.14-3plf
- Clean spec file for Mandrake menu.

* Sat Feb 21 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.14-2plf
- Readded first time myth-backend mysql setup instruction.

* Sun Feb 01 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.14-1plf
- Updated to latest version

* Tue Jan 13 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-5plf
- cleaned up spec file

* Fri Dec 26 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-4plf
- Changed to plf release

* Sun Dec 14 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-3thac
- Merged changes made by stefan@eijk.nu

* Sun Dec 14 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-2thac
- Added the tvformat patch
- Cleaned up spec file

* Sat Dec 13 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-1thac
- Updated to latest version

* Wed Oct 29 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.12-3thac
- Added missing dependency for libqt3-mysql in mythtv-backend

* Thu Oct 23 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.12-2thac
- Rebuilt for Mandrake 9.2

* Sun Oct 19 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.12-1thac
- Updated to latest version

* Mon Oct 06 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.11-1thac
- Changed naming
- Added imdb patch

* Mon Aug 25 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.11-2mdk
- Fix location of localstatedir from Frederic Crozat <fcrozat@mandrakesoft.com>

* Sun Aug 17 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.11-1mdk
- Updated to latest version

* Wed Jul 16 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.10-2mdk
- Added patch for latest XMLTV from Alex.Thimms red hat package

* Mon Jul 07 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.10-1mdk
- Updated to latest version
- with latest XmlTV dependency
- Added all the latest from Alex.Thimms RedHat spec.

* Sun Jun 15 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.9.1-1mdk
- Updated to latest version
- with latest XmlTV dependency

* Thu Apr 17 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.8-6mdk
- Removed the mysql dependency from frontend to backend.
  Frontend only needs qt3-mysql.

* Thu Apr 10 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.8-5mdk
- Rebuilt with lataest XmlTV dependency

* Fri Mar 28 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.8-4mdk
- Cleaned up spec file.

* Fri Mar 28 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.8-3mdk
- Added missing dependency for libqt3-mysql needed for 9.1

* Thu Mar 27 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.8-2mdk
- Recompiled for Mandrake 9.1

* Mon Mar 24 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.8-1mdk
- Recompiled for Mandrake 9.0

* Sun Mar 23 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Fixed desktop entries.

* Sat Mar 22 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Add g flag to sed.
- Don't use mythtv user yet.

* Fri Mar 21 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Add mythtv user.
- Add desktop entries.

* Wed Mar 19 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Added start/stop scripts for mythbackend.

* Tue Mar 18 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Removed unneeded 0.7 patches.

* Mon Mar 17 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Update to 0.8.
- Synced with Matt Zimmerman's debian package (package splitting).
- Split off lib, devel, frontend, backend packages.

* Thu Feb 13 2003 Paul Jara <pjara@rogers.com> 0.7-0at7
- Added a patch that prevents a segmentation fault in mythfilldatabase.

* Thu Jan 16 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> 0.7-0at6
- Added dependency to qt-MySQL (Roy Stogner <roystgnr@ticam.utexas.edu>).

* Thu Dec  5 2002 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> 0.7-0at4
- fixed installation paths.

* Wed Nov 13 2002 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
- Initial build.