%define name mythplugins %define version 0.20a %define snapshot 13272 %define rel 2 %define required_myth 0.20-3 %if %snapshot %define release %mkrel 6.%snapshot.%rel %else %define release %mkrel %rel %endif %define _varlibdir %{_localstatedir} # segfaults mythphone on start %define build_festival 0 %define build_firewire 1 %define build_plf 0 %ifarch x86_64 # libFestival.a is non-PIC, should probably be fixed %define build_festival 0 %endif %if %mdkversion <= 1020 %define build_firewire 0 %endif %bcond_with plf %if %with plf %define distsuffix plf %define build_plf 1 %endif %if %mdkversion > 200600 BuildRequires: mesagl-devel %else BuildRequires: Mesa-devel %endif BuildRequires: libmyth-devel >= %{required_myth} BuildRequires: fftw-devel BuildRequires: SDL-devel BuildRequires: libdvdread-devel BuildRequires: libexif-devel BuildRequires: mad-devel BuildRequires: id3tag-devel BuildRequires: libvorbis-devel BuildRequires: libflac-devel BuildRequires: libcdaudio-devel BuildRequires: libcdda-devel BuildRequires: tiff-devel BuildRequires: kdelibs-devel %if %build_festival BuildRequires: festival-devel BuildRequires: speech_tools-devel %endif %if %build_plf BuildRequires: lame-devel BuildRequires: libfaad2-devel BuildRequires: libfaad2-static-devel %endif Summary: Official MythTV plugins Name: %{name} Version: %{version} Release: %{release} URL: http://www.mythtv.org/ License: GPL Group: Video %if %snapshot # example: #svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/mythplugins mythplugins #svn export mythplugins mythplugins-REV #tar -cjf mythplugins-REV.tar.bz2 mythplugins-REV Source0: %{name}-%{snapshot}.tar.bz2 %else Source0: %{name}-%{version}.tar.bz2 %endif Patch2: mythplugins-0.20a-nolame.patch BuildRoot: %{_tmppath}/%{name}-root %description Mythplugins for MythTV. %if %with plf This package is in PLF because it contains software that supports codecs that may be covered by software patents. %endif %package -n mythtv-plugin-browser Summary: MythBrowser is a full web browser for MythTV URL: http://www.mythtv.org/ Group: Video Obsoletes: mythbrowser < 0.20a-7 Requires: mythtv-frontend >= %{required_myth} %description -n mythtv-plugin-browser MythBrowser is a full web browser for MythTV. %package -n mythtv-plugin-controls Summary: MythTV keybindings editor URL: http://www.mythtv.org/ Group: Video Obsoletes: mythcontrols < 0.20a-7 Requires: mythtv-frontend >= %{required_myth} %description -n mythtv-plugin-controls This plugin allows you to reconfigure your keybindings on the frontend without having to use MythWeb or edit tables by hand. %package -n mythtv-plugin-dvd Summary: The DVD player frontend module for MythTV Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythdvd < 0.20a-7 %if %build_plf Requires: transcode Requires: %mklibname dvdcss 2 %endif %description -n mythtv-plugin-dvd The DVD player frontend module for MythTV. %package -n mythtv-plugin-flix Summary: NetFlix for MythTV Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythflix < 0.20a-7 %description -n mythtv-plugin-flix NetFlix for MythTV. %package -n mythtv-plugin-gallery Summary: A gallery/slideshow module for MythTV Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythgallery < 0.20a-7 %description -n mythtv-plugin-gallery A gallery/slideshow module for MythTV. %package -n mythtv-plugin-game Summary: A game frontend for MythTV Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythgame < 0.20a-7 %description -n mythtv-plugin-game A game frontend for MythTV. %package -n mythtv-plugin-music Summary: The music player add-on module for MythTV Group: Video #Requires: cdparanoia Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythmusic < 0.20a-7 %description -n mythtv-plugin-music The music player add-on module for MythTV. %if %with plf This package is in PLF because it contains software that supports codecs that may be covered by software patents. %endif %package -n mythtv-plugin-news Summary: An RSS News feed plugin for MythTV Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythnews < 0.20a-7 %description -n mythtv-plugin-news An RSS News feed plugin for MythTV. %package -n mythtv-plugin-phone Summary: A phone and videophone capability on Mythtv using the standard SIP protocol Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythphone < 0.20a-7 %if %build_festival Requires: festival speech_tools %endif %description -n mythtv-plugin-phone Mythphone is a phone and videophone capability on MYTH using the standard SIP protocol. It is compatible with Microsoft XP Messenger (see caveat below) and with SIP Service Providers such as Free World Dialup ( fwd.pulver.com). %package -n mythtv-plugin-weather Summary: A MythTV module that displays a weather forecast Group: Video Requires: mythtv-frontend >= %{required_myth} Obsoletes: mythweather < 0.20a-7 %description -n mythtv-plugin-weather A MythTV module that displays a weather forcast. %package -n mythtv-mythweb Summary: The web interface to MythTV Group: Video Requires: mythtv-backend >= %{required_myth} Requires: mod_php >= 2.0.54 Requires: php-mysql BuildRequires: apache-base >= 2.0.54-5mdk Obsoletes: mythweb < 0.20a-7 # Requires autofinder is confused, requires nonexistent packages %define _requires_exceptions pear* %description -n mythtv-mythweb The web interface to MythTV. %package -n mythtv-plugin-video Summary: A generic video player frontend module for MythTV Group: Video Requires: mythtv-frontend >= %{required_myth} Requires: mplayer Obsoletes: mythvideo < 0.20a-7 %description -n mythtv-plugin-video A generic video player frontend module for MythTV. %package -n mythtv-plugin-archive Summary: Creates DVDs from your recorded shows Group: Video Requires: dvd+rw-tools Requires: dvdauthor Requires: ffmpeg Requires: mjpegtools Requires: python-imaging Requires: python-mysql Requires: mythtv-frontend >= %{required_myth} %if %build_plf Requires: transcode %endif %if %mdkversion >= 200710 Requires: cdrkit-genisoimage %else Requires: mkisofs %endif Obsoletes: mytharchive < 0.20a-7 %description -n mythtv-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 %if %snapshot %setup -q -n %name-%snapshot %else %setup -q %endif %patch2 -p1 #mythphone cat > mythweb/mythweb.conf <<EOF Alias /mythweb %{_var}/www/mythweb <Directory %{_var}/www/mythweb> setenv include_path "%{_datadir}/mythweb" RewriteBase /mythweb EOF cat mythweb/.htaccess >> mythweb/mythweb.conf cat >> mythweb/mythweb.conf <<EOF </Directory> <Directory %{_var}/www/mythweb/data> EOF cat mythweb/data/.htaccess >> mythweb/mythweb.conf cat >> mythweb/mythweb.conf <<EOF </Directory> EOF find . -type f | xargs grep -l /usr/local | xargs perl -pi -e's|/usr/local|%{_prefix}|g' # Fix /mnt/store -> /var/lib/mythmusic perl -pi -e's|/mnt/store/music|%{_varlibdir}/mythmusic|' mythmusic/mythmusic/globalsettings.cpp #mythvideo # Fix /mnt/store -> /var/lib/mythvideo perl -pi -e's|/share/Movies/dvd|%{_varlibdir}/mythvideo|' mythvideo/mythvideo/globalsettings.cpp %build export QTDIR=%{_prefix}/lib/qt3 export QTLIB=$QTDIR/%{_lib} export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_libdir} %configure --enable-all --libdir-name=%{_lib} \ %if %build_plf --enable-aac --enable-lame \ %else --disable-aac --disable-lame \ %endif %if %build_festival --enable-festival %else --disable-festival %endif #mythphone cat >> settings.pro << EOF INCLUDEPATH += %{_includedir}/EST EOF %make %install rm -rf %{buildroot} INSTALL_ROOT=%{buildroot}; export INSTALL_ROOT %makeinstall #mythgallery mkdir -p %{buildroot}%{_varlibdir}/pictures #mythdvd mkdir -p %{buildroot}%{_varlibdir}/mythdvd #mythmusic mkdir -p %{buildroot}%{_varlibdir}/mythmusic #mythvideo mkdir -p %{buildroot}%{_varlibdir}/mythvideo #mythweb install -d -m755 %{buildroot}%{_var}/www/mythweb install -m644 mythweb/*.php %{buildroot}%{_var}/www/mythweb cp -r mythweb/js %{buildroot}%{_var}/www/mythweb cp -r mythweb/skins %{buildroot}%{_var}/www/mythweb install -d -m755 %{buildroot}%{_localstatedir}/mythweb/data ln -s %{_localstatedir}/mythweb/data %{buildroot}%{_var}/www/mythweb/data ln -s %{_datadir}/mythweb/includes %{buildroot}%{_var}/www/mythweb/includes install -d -m755 %{buildroot}%{_datadir}/mythweb cp -r mythweb/includes %{buildroot}%{_datadir}/mythweb cp -r mythweb/modules %{buildroot}%{_datadir}/mythweb install -d -m755 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d install -m644 mythweb/mythweb.conf %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d %clean rm -rf %{buildroot} %post -n mythtv-mythweb %_post_webapp %postun -n mythtv-mythweb %_postun_webapp %files -n mythtv-plugin-browser %defattr(-,root,root,-) %doc mythbrowser/README mythbrowser/COPYING mythbrowser/AUTHORS %{_bindir}/mythbrowser %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so %{_datadir}/mythtv/themes/default/webpage.png %{_datadir}/mythtv/i18n/mythbrowser_*.qm %files -n mythtv-plugin-dvd %defattr(-,root,root,-) %doc mythdvd/README* mythdvd/COPYING mythdvd/AUTHORS %{_bindir}/mtd %{_libdir}/mythtv/plugins/libmythdvd.so %{_datadir}/mythtv/dvd_settings.xml %{_datadir}/mythtv/dvdmenu.xml %{_datadir}/mythtv/themes/default/dvd*.xml %{_datadir}/mythtv/themes/default/md_*.png %{_datadir}/mythtv/i18n/mythdvd_*.qm %{_varlibdir}/mythdvd %files -n mythtv-plugin-flix %defattr(-,root,root,-) %doc mythflix/README mythflix/COPYING mythflix/ChangeLog mythflix/AUTHORS %{_libdir}/mythtv/plugins/libmythflix.so %{_datadir}/mythtv/i18n/mythflix_*.qm %{_datadir}/mythtv/i18n/mythflix_*.ts %{_datadir}/mythtv/mythflix %{_datadir}/mythtv/netflix_menu.xml %{_datadir}/mythtv/themes/default/netflix*.xml %{_datadir}/mythtv/themes/default/*netflix.png %files -n mythtv-plugin-gallery %defattr(-,root,root,-) %doc mythgallery/README* %{_libdir}/mythtv/plugins/libmythgallery.so %{_datadir}/mythtv/i18n/mythgallery_*.qm %{_datadir}/mythtv/themes/default/gallery* %{_varlibdir}/pictures %files -n mythtv-plugin-game %defattr(-,root,root,-) %doc mythgame/README* mythgame/romdb* %{_libdir}/mythtv/plugins/libmythgame.so %{_datadir}/mythtv/i18n/mythgame_*.qm %{_datadir}/mythtv/game_settings.xml %{_datadir}/mythtv/themes/default/game* %files -n mythtv-plugin-music %defattr(-,root,root,-) %doc mythmusic/AUTHORS mythmusic/COPYING mythmusic/README* mythmusic/musicdb %{_datadir}/mythtv/music_settings.xml %{_datadir}/mythtv/musicmenu.xml %{_libdir}/mythtv/plugins/libmythmusic.so %{_varlibdir}/mythmusic %{_datadir}/mythtv/i18n/mythmusic_*.qm %{_datadir}/mythtv/themes/default/ff_button*.png %{_datadir}/mythtv/themes/default/mm_*.png %{_datadir}/mythtv/themes/default/music-*.png %{_datadir}/mythtv/themes/default/music-ui.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/text_button*.png %{_datadir}/mythtv/themes/default/track_info_background.png %files -n mythtv-plugin-news %defattr(-,root,root,-) %doc mythnews/AUTHORS mythnews/COPYING mythnews/ChangeLog mythnews/README* %{_libdir}/mythtv/plugins/libmythnews.so %{_datadir}/mythtv/i18n/mythnews_*.qm %{_datadir}/mythtv/mythnews %{_datadir}/mythtv/themes/default/news* %files -n mythtv-plugin-phone %defattr(-,root,root,-) %doc mythphone/AUTHORS mythphone/COPYING mythphone/README mythphone/TODO %{_libdir}/mythtv/plugins/libmythphone.so %{_datadir}/mythtv/themes/default/mp_* %{_datadir}/mythtv/themes/default/phone* %{_datadir}/mythtv/themes/default/webcam* %{_datadir}/mythtv/i18n/mythphone_*.qm %files -n mythtv-plugin-weather %defattr(-,root,root,-) %doc mythweather/AUTHORS mythweather/COPYING 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/mw*.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/weather-ui.xml %files -n mythtv-mythweb %defattr(-,root,root,-) %doc mythweb/README* mythweb/TODO mythweb/LICENSE %{_var}/www/mythweb %{_localstatedir}/mythweb %attr(-,apache,apache) %{_localstatedir}/mythweb/data %{_datadir}/mythweb %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/mythweb.conf %files -n mythtv-plugin-video %defattr(-,root,root,-) %doc mythvideo/README* %{_libdir}/mythtv/plugins/libmythvideo.so %{_datadir}/mythtv/video_settings.xml %{_datadir}/mythtv/videomenu.xml %{_datadir}/mythtv/i18n/mythvideo_*.qm %{_datadir}/mythtv/mythvideo/scripts %{_datadir}/mythtv/themes/default/mv* %{_datadir}/mythtv/themes/default/video* %{_varlibdir}/mythvideo %files -n mythtv-plugin-controls %defattr(-,root,root) %{_libdir}/mythtv/plugins/libmythcontrols.so %{_datadir}/mythtv/themes/default/controls-ui.xml %{_datadir}/mythtv/themes/default/kb-button-off.png %{_datadir}/mythtv/themes/default/kb-button-on.png %{_datadir}/mythtv/i18n/mythcontrols_*.qm %files -n mythtv-plugin-archive %defattr(-,root,root) %{_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/i18n/mytharchive_*.qm %changelog * Sun Apr 22 2007 Anssi Hannula <anssi@mandriva.org> 0.20a-6.13272.2mdv2008.0 + Revision: 16867 - fix obsoletes * Tue Apr 17 2007 Anssi Hannula <anssi@mandriva.org> 0.20a-6.13272.1mdv2008.0 + Revision: 13901 - new snapshot - Import mythplugins * Fri Mar 23 2007 Anssi Hannula <anssi@mandriva.org> 0.20a-6.13114.1mdv2007.0 + Revision: 148704 - drop patch1 (fixed upstream) - new snapshot from the stable branch - clean .spec - add conditional plf build with lame and faad (patch2) - rename packages to begin with mythtv- - add requires python-imaging and python-mysql to mythtv-plugin-mytharchive - bunzip2 patches - Import mythplugins * Sun Jan 21 2007 Stefan van der Eijk <stefan@zarb.org> 0.20a-6 - Remove patch backup files ".release-fixes" * Sat Jan 20 2007 Stefan van der Eijk <stefan@zarb.org> 0.20a-5 - add release-0-20-fixes patch (12584) - fix dependencies * Sat Jan 13 2007 Stefan van der Eijk <stefan@zarb.org> 0.20a-4 - mythweb: fix includes symlink * Fri Jan 12 2007 Stefan van der Eijk <stefan@zarb.org> 0.20a-3 - mythmusic: add patch0 for flac 1.1.3 support, from: ftp://ftp.altlinux.org/pub/people/thresh/ - mythweb: add includes symlink - mythweb: add Requires: php-mysql * Fri Sep 22 2006 Anssi Hannula <anssi@zarb.org> 0.20a-2plf2007.0 - fix requires * Tue Sep 12 2006 Anssi Hannula <anssi@zarb.org> 0.20a-1plf2007.0 - 0.20a * Sun Jul 16 2006 Anssi Hannula <anssi@zarb.org> 0.19.1-0.10553.1plf2007.0 - new snapshot of the stable branch - fix buildrequires on cooker * Sun Apr 23 2006 Anssi Hannula <anssi@zarb.org> 0.19-2plf - fix PLF reason * Tue Feb 21 2006 Anssi Hannula <anssi@zarb.org> 0.19-1plf - 0.19 - clean spec - rebuild buildrequires - drop patch2, fixed upstream - fix summary and description - add mythflix - drop mythphone post, user should know to read README anyway - drop mythweb post, url is obvious - make mythweb compliant to Mandriva Web Applications packaging Policy - menus are not config files - disable festival, it segfaults - drop patch1, unneeded * Thu Oct 13 2005 Anssi Hannula <anssi@zarb.org> 0.18.2-0.7468.1plf - upgrade to release-0-18-fixes svn branch revision 7468 - remove patch1, fixed upstream - remove mythcontrols, not present on this branch * Mon Oct 10 2005 Anssi Hannula <anssi@zarb.org> 0.18.1-20050620.4plf - fix changelog - fix buildrequires libavc1394-devel - fix x86_64 build (patch1) * Mon Aug 22 2005 Stefan van der Eijk <stefan@zarb.org> 0.18.1-20050620.3plf - no firewire support %%mdkversion > 1020 - add distsuffix - %%mkrel - start fixing changelog * Wed Jul 06 2005 Stefan van derEijk <stefan@zarb.org> 0.18.1-20050620.2plf - BuildRequires - disable building with festival support - remove -lmp4ff from makefile * Mon Jun 20 2005 Austin Acton <austin@zarb.org> 0.18.1-20050620.1plf - PLFify - buildrequires libexif-devel - disable festival on cooker - clean up requires - parallel build - bump to cvs - add mythcontrols * Fri May 21 2005 Colin Guthrie <mythtv@colin.guthr.ie> 0.18.1-1.mdk10.2.thac - Disable festival in x86_64 as this just segfaults mythphone. Will work on a more comprehensive fix. * Fri May 20 2005 Colin Guthrie <mythtv@colin.guthr.ie> 0.18.1-1.mdk10.2.thac - Build fixes for x86_64 (NB requires fixed festival/speechtools -fPIC libs) - Bump version to 0.18.1 (from 0.18) * 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 * Mon Oct 25 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-4.mdk10.1.thac - 4.mdk10.1.thac - Where "4" 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. * Sat Oct 23 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-3thac - Rebuilt for Mandrake 10.1 * Mon Sep 20 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-2thac - Removed Prereq * Sun Sep 12 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.16-1thac - Updated to latest version - Changed back to thac release to be able to support nnidia and via builds. * 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 * Thu Apr 22 2004 Stefan van der Eijk <stefan@eijk.nu> 0.14-2plf - BuildRequires * Sun Feb 01 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.14-1plf - Updated to latest version * Wed Jan 14 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-4plf - First plf release * Fri Dec 18 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-3thac - Cleaned up spec file * Sun Dec 14 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-2thac - Cleaned up spec file * Sat Dec 13 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.13-1thac - Compiled for Mandrake 9.2