%bcond_without mythbrowser # disable building mythbrowser plugin
%bcond_without mythmovies # disable mythmovies plugin
%bcond_without mythdvd # mythvideo part
-%bcond_without mythflix # disable building mythflix plugin
+%bcond_without mythnetvision # disable building mythnetvision plugin
%bcond_without mythgallery # disable building mythgallery plugin
%bcond_without mythgame # disable building mythgallery plugin
%bcond_without mythmusic # disable building mythmusic plugin
%bcond_without mythnews # disable building mythgallery plugin
-%bcond_with mythphone # discontnued ??
%bcond_without mythvideo # disable building mythgallery plugin
-%bcond_with mythweather # building mythgallery plugin disabled by default
+%bcond_without mythweather # building mythgallery plugin disabled by default
# it looks unusable "due to msnbc webpage structure change
%bcond_without mythweb # disable building mythgallery plugin
%bcond_without mythzoneminder # disable building mythzoneminder plugin
%undefine with_mythbrowser
%undefine with_mythmovies
%undefine with_mythdvd
-%undefine with_mythflix
+%undefine with_mythnetvision
%undefine with_mythgallery
%undefine with_mythgame
%undefine with_mythmusic
%undefine with_mythnews
-%undefine with_mythphone
%undefine with_mythvideo
%undefine with_mythweather
%endif
%include /usr/lib/rpm/macros.perl
-%define snap 20090518
-#define _rev 11046
-#%define rel 0.1
+#%define fix 24635
+
Summary: Main MythTV plugins
Summary(pl.UTF-8): Główne wtyczki MythTV
Name: mythplugins
-Version: 0.22
-Release: 0.%{snap}.1
+Version: 0.23
+#Release: fix%{fix}.1
+Release: 0.2
License: GPL v2
Group: Applications/Multimedia
-Source0: %{name}-%{version}-%{snap}.tar.bz2
-# Source0-md5: c489ac9ff8033e41112af2e17fc5d65d
+Source0: ftp://ftp.osuosl.org/pub/mythtv/%{name}-%{version}.tar.bz2
+# Source0-md5: be44db841f9e03d0d17ab449545b38aa
Source1: mythweb.conf
+Source2: mythweb_lighttpd.conf
+Source3: htdigest.sh
+Source4: http_servers_conf_tips.txt
#Patch0: %{name}-lib64.patch
#Patch1: %{name}-paths.patch
-Patch2: mythweb-config.patch
+Patch2: mythweb-chdir.patch
Patch20: %{name}-mytharchive-INT64.patch
-Patch100: mythtv-branch.diff
+#Patch21: mythmusic_fftw3.patch
+#Patch100: mythtv-branch.diff
URL: http://www.mythtv.org/
%if %{with binary}
%if %{with mythgallery} || %{with myhtmusic}
BuildRequires: libfame-devel >= 0.9.0
BuildRequires: libid3tag-devel
BuildRequires: libmad-devel
-BuildRequires: libmyth-devel >= 0.19
+BuildRequires: libmyth-devel > 0.21
BuildRequires: libstdc++-devel
BuildRequires: libtiff-devel
BuildRequires: libvorbis-devel >= 1:1.0
%{?with_mytharchive:Requires: mytharchive}
%{?with_mythbrowser:Requires: mythbrowser}
%{?with_mythdvd:Requires: mythdvd}
-%{?with_mythflix:Requires: mythflix}
+%{?with_mythnetvision:Requires: mythnetvision}
%{?with_mythgallery:Requires: mythgallery}
%{?with_mythgame:Requires: mythgame}
%{?with_mythmysic:Requires: mythmusic}
%{?with_mythnews:Requires: mythnews}
-%{?with_mythphone:Requires: mythphone}
%{?with_mythvideo:Requires: mythvideo}
%{?with_mythweather:Requires: mythweather}
%{?with_mythweb:Requires: mythweb}
Summary: The music player add-on module for MythTV
Summary(pl.UTF-8): Moduł odtwarzacza muzyki dla MythTV
Group: Applications/Multimedia
+BuildRequires: libvisual-devel
Requires: mythtv-frontend-api = %{myth_api_version}
%description -n mythmusic
-Music add-on for MythTV.
+Music add-on for MythTV. Support playlists, visualisations, tag editing
+and plays many popular audio file formats - mp3, flac, wav, ogg etc.
%description -n mythmusic -l pl.UTF-8
-Odtwarzacz muzyki dla MythTV.
+Odtwarzacz muzyki dla MythTV. Obsługuje listy odtwarzania, wizualizacje,
+edycję tagów.
+Potrafi odtwarzać wiele popularnych formatów audio - mp3, flac, wav, ogg
+itd.
%package -n mythvideo
Summary: A generic video player frontend module for MythTV
MythBrowser zawiera także BookmarkManagera do zarządzania odnośnikami
do stron w prostej wtyczce myth.
-%package -n mythphone
-Summary: A video conferencing module for MythTV
-Summary(pl.UTF-8): Moduł wideokonferencji dla MythTV
-Group: Applications/Multimedia
-Requires: mythtv-frontend-api = %{myth_api_version}
-
-%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).
-
-%description -n mythphone -l pl.UTF-8
-Mythphone to funkcjonalność telefonu i wideofonu w Myth przy użyciu
-standardowego protokołu SIP. Jest kompatybilny z Microsoft XP
-Messengerem oraz dostawcami usług SIP, takimi jak Free World Dialup
-(fwd.pulver.com).
-
%package -n mythweb
Summary: The web interface to MythTV
Summary(pl.UTF-8): Interfejs WWW do MythTV
%description -n mythweb -l pl.UTF-8
Interfejs WWW do MythTV.
-%package -n mythflix
-Summary: MythFlix (A NetFlix MythTV)
-Summary(pl.UTF-8): MythFlix (NetFlix MythTV)
+%package -n mythnetvision
+Summary: Mythtv extension to watch network movie shows
+Summary(pl.UTF-8): Dodatek do MythTV do oglądania sieciowych transmisji
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %{myth_api_version}
+Requires: mythbrowser
-%description -n mythflix
-MythFlix is a MythTV plugin for adding movies to your Netflix queue.
-It currently supports the ability to view your queue and add movies to
-your queue. The browse feature is based on the Netflix RSS feeds. This
-plugin is not very mature, which means things might not work right
-and/or it might break other things.
+%description -n mythnetvision
+Mythtv extension to watch network movie shows (ex. YouTube).
-%description -n mythflix -l pl.UTF-8
-MythFlix to wtyczka MythTV do dodawania filmów do kolejki Netfliksa.
-Aktualnie daje możliwość oglądania kolejki i dodawania do niej filmów.
-Przeglądanie jest oparte na kanale RSS Netfliksa. Ta wtyczka nie jest
-jeszcze zbyt dojrzała, co znaczy, że coś może nie działać lub psuć coś
-innego.
+%description -n mythnetvision -l pl.UTF-8
+Dodatek do MythTV do oglądania sieciowych transmisji.
+Na przykład z YouTube.
%package -n mythmovies
Summary: MythTV cinemas timetable
Obsługa kamer przemysłowych dla MythTV.
%prep
-#%setup -q %{?_snap:-n %{name}}
-%setup -q %{SOURCE0}
+%setup -q -n %{name}-%{version}
#%if %{_lib} != "lib"
#%patch0 -p1
#%endif
#%patch1 -p1
-#%patch2 -p1
+%patch2 -p1
%patch20 -p1
+#%patch21 -p1
#filterdiff -i 'mythplugins/*' %{PATCH100} | %{__patch} -p1 -s
# make it visible
%{!?with_mythgame:--disable-mythgame} \
%{!?with_mythmusic:--disable-mythmusic}%{?with_mythmysic:--enable-fftw --enable-sdl --enable-aac --enable-opengl} \
%{!?with_mythnews:--disable-mythnews} \
- %{!?with_mythphone:--disable-mythphone}%{?with_mythphone:--disable-festival} \
%{!?with_mythvideo:--disable-mythvideo} \
%{!?with_mythweather:--disable-mythweather} \
%{!?with_mythweb:--disable-mythweb} \
%{!?with_mythmovies:--disable-mythmovies} \
- %{!?with_mythflix:--disable-mythflix} \
+ %{!?with_mythnetvision:--disable-mythnetvision} \
mv mythconfig.mak mythconfig.mak.old
cp mythconfig.mak.old mythconfig.mak
%install
rm -rf $RPM_BUILD_ROOT
-
%if %{with binary}
export QTDIR="%{_prefix}"
%{__make} install \
%if %{with mythweb}
cd mythweb
+cp -a %{SOURCE3} ./
+cp -a %{SOURCE4} ./
install -d $RPM_BUILD_ROOT%{_datadir}/mythweb
install -d $RPM_BUILD_ROOT/var/cache/mythweb/{image_cache,php_sessions,tv_icons}
install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
-cp -a *.php *.pl data includes js modules skins $RPM_BUILD_ROOT%{_datadir}/mythweb
+cp -a *.php *.pl classes configuration includes js modules skins $RPM_BUILD_ROOT%{_datadir}/mythweb
+ln -sf /var/cache/mythweb $RPM_BUILD_ROOT%{_datadir}/mythweb/data
install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
+touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htdigest
cd -
%endif
+rm -f $RPM_BUILD_ROOT%{_datadir}/data
mv $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/mythbrowser_{pt_br,pt}.qm
-rm $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/mythflix_nb.ts # i18n source
-for p in mytharchive mythbrowser mythmovies mythdvd mythflix mythgallery mythgame mythmusic mythnews mythphone mythvideo mythweather mythzoneminder; do
+for p in mytharchive mythbrowser mythmovies mythdvd mythgallery mythgame mythmusic mythnews mythnetvision mythvideo mythweather mythzoneminder; do
for l in $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/${p}_*.qm; do
echo $l | sed -e "s,^$RPM_BUILD_ROOT\(.*${p}_\(.*\).qm\),%%lang(\2) \1,"
done > $p.lang
%triggerin -n mythweb -- apache < 2.2.0, apache-base
%webapp_register httpd %{_webapp}
+%triggerin -n mythweb -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
%triggerun -n mythweb -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
+%triggerun -n mythweb -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
%triggerpostun -n mythweb -- mythweb < 0.19
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
%service -q httpd reload
fi
+%post -n mythweb
+echo "Read %{_docdir}/mythweb-%{version}/http_servers_conf_tips.txt.gz to find
+which packages you can need to run mythweb and how to set it quickly."
+
%files
%defattr(644,root,root,755)
%{_datadir}/mythtv/musicmenu.xml
%{_datadir}/mythtv/music_settings.xml
%{_datadir}/mythtv/themes/default/music-ui.xml
+%{_datadir}/mythtv/themes/default/mm-titlelines.png
%{_datadir}/mythtv/themes/default-wide/music-ui.xml
+%{_datadir}/mythtv/themes/default-wide/mm-titlelines.png
%{_datadir}/mythtv/themes/default/ff_button_off.png
%{_datadir}/mythtv/themes/default/ff_button_on.png
%{_datadir}/mythtv/themes/default/ff_button_pushed.png
%{_datadir}/mythtv/videomenu.xml
%dir %{_datadir}/mythtv/mythvideo
%dir %{_datadir}/mythtv/mythvideo/scripts
+%dir %{_datadir}/mythtv/mythvideo/scripts/Movie
+%dir %{_datadir}/mythtv/mythvideo/scripts/Movie/MythTV
+%dir %{_datadir}/mythtv/mythvideo/scripts/Television
%{_datadir}/mythtv/mythvideo/scripts/README
-%attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/*.pl
+%{_datadir}/mythtv/mythvideo/scripts/jamu.README
+%{_datadir}/mythtv/mythvideo/scripts/jamu-example.conf
+%attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/Movie/*.pl
+%attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/Movie/*.py
+%attr(644,root,root) %{_datadir}/mythtv/mythvideo/scripts/Movie/MythTV/*
%attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/*.py
-%dir %{_datadir}/mythtv/mythvideo/scripts/MythTV
-%attr(644,root,root)%{_datadir}/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm
+%attr(644,root,root) %{_datadir}/mythtv/mythvideo/scripts/Television/*
/var/lib/mythvideo
%endif
%files -n mythbrowser -f mythbrowser.lang
%defattr(644,root,root,755)
%doc mythbrowser/README mythbrowser/AUTHORS
-%attr(755,root,root) %{_bindir}/mythbrowser
-%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so
+#%attr(755,root,root) %{_bindir}/mythbrowser
+%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbrowser.so
%{_datadir}/mythtv/themes/default/mb_progress*.png
%{_datadir}/mythtv/themes/default/browser-ui.xml
%{_datadir}/mythtv/themes/default-wide/browser-ui.xml
%endif
-%if %{with mythphone}
-%files -n mythphone -f mythphone.lang
-%defattr(644,root,root,755)
-%doc mythphone/README mythphone/AUTHORS mythphone/TODO
-%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythphone.so
-%{_datadir}/mythtv/themes/default/phone-ui.xml
-%{_datadir}/mythtv/themes/default/webcam-ui.xml
-%{_datadir}/mythtv/themes/default/mp_*.png
-%{_datadir}/mythtv/themes/default/phone.png
-%endif
-
%if %{with mythweb}
%files -n mythweb
%defattr(644,root,root,755)
-%doc mythweb/README
-#%doc mythweb/data/htaccess
+%doc mythweb/README mythweb/mythweb.conf.lighttpd
+%doc mythweb/htdigest.sh
+%doc mythweb/http_servers_conf_tips.txt
%dir %attr(750,root,http) %{_webapps}/%{_webapp}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
#%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/*.php
#%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/*.dat
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htpasswd
+%attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/lighttpd.conf
+%attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htdigest
%{_datadir}/mythweb
%dir %attr(771,root,http) /var/cache/mythweb
%dir %attr(771,root,http) /var/cache/mythweb/image_cache
%dir %attr(771,root,http) /var/cache/mythweb/tv_icons
%endif
-%if %{with mythflix}
-%files -n mythflix -f mythflix.lang
+%if %{with mythnetvision}
+%files -n mythnetvision -f mythnetvision.lang
%defattr(644,root,root,755)
-%doc mythflix/{AUTHORS,ChangeLog,README}
-%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythflix.so
-%dir %{_datadir}/mythtv/mythflix
-%{_datadir}/mythtv/mythflix/netflix-rss.xml
-%dir %{_datadir}/mythtv/mythflix/scripts
-%attr(755,root,root) %{_datadir}/mythtv/mythflix/scripts/netflix.pl
-%{_datadir}/mythtv/netflix_menu.xml
-%{_datadir}/mythtv/themes/default/title_netflix.png
-%{_datadir}/mythtv/themes/default/mythflix_background.png
-%{_datadir}/mythtv/themes/default/netflix-ui.xml
-%{_datadir}/mythtv/themes/default-wide/netflix-ui.xml
-%{_datadir}/mythtv/themes/default-wide/netflix-bg.png
-# DUPLICATE WITH MYTHNEWS?
-%{_datadir}/mythtv/themes/default/news-info-bg.png
+%doc mythnetvision/{AUTHORS,ChangeLog,README}
+%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnetvision.so
+%dir %{_datadir}/mythtv/mythnetvision
+%{_datadir}/mythtv/netvisionmenu.xml
+%dir %{_datadir}/mythtv/mythnetvision/scripts
+%attr(755,root,root) %{_datadir}/mythtv/mythnetvision/scripts/twit.tv.pl
+%dir %{_datadir}/mythtv/mythnetvision/icons
+%dir %{_datadir}/mythtv/mythnetvision/icons/directories
+%{_datadir}/mythtv/mythnetvision/icons/*.png
+%{_datadir}/mythtv/mythnetvision/icons/vimeo.jpg
+%dir %{_datadir}/mythtv/mythnetvision/icons/directories/film_genres
+%{_datadir}/mythtv/mythnetvision/icons/directories/film_genres/*.png
+%dir %{_datadir}/mythtv/mythnetvision/icons/directories/music_genres
+%{_datadir}/mythtv/mythnetvision/icons/directories/music_genres/*.png
+%dir %{_datadir}/mythtv/mythnetvision/icons/directories/topics
+%{_datadir}/mythtv/mythnetvision/icons/directories/topics/*.png
+%attr(755,root,root) %{_datadir}/mythtv/mythnetvision/scripts/*.py
+%dir %{_datadir}/mythtv/mythnetvision/scripts/nv_python_libs
+%{_datadir}/mythtv/mythnetvision/scripts/nv_python_libs/*
+%{_datadir}/mythtv/themes/default-wide/netvision-ui.xml
+%{_datadir}/mythtv/themes/default/netvision-ui.xml
%endif
%if %{with mythmovies}
%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmovies.so
%{_datadir}/mythtv/themes/default/movies-ui.xml
%{_datadir}/mythtv/themes/default-wide/movies-ui.xml
+%{_datadir}/mythtv/i18n/mythmovies_*.qm
%endif
%if %{with mythzoneminder}
%{_datadir}/mythtv/themes/default/zoneminder-ui.xml
%{_datadir}/mythtv/themes/default-wide/zoneminder-ui.xml
%{_datadir}/mythtv/themes/default/mz_*png
+%{_datadir}/mythtv/i18n/mythzoneminder_*.qm
%endif