Name : mythplugins Relocations: (not relocatable)
Version : 0.19 Vendor: Penguin Liberation Front
Release : 1plf Build Date: Tue 21 Feb 2006
06:17:39 PM CET
Install Date: (not installed) Build Host: kone.anssi.be
Group : Video Source RPM: (none)
Size : 5433843 License: GPL
Signature : (none)
Packager : Anssi Hannula <[EMAIL PROTECTED]>
URL : http://www.mythtv.org/
Summary : Mythplugins for MythTV
Description :
Mythplugins for MythTV.
---------------
Anssi Hannula <[EMAIL PROTECTED]> 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
---------------
---------------
Index: mythplugins.spec
===================================================================
RCS file: /home/projects/plf/cvs/SPECS/free/mythplugins/mythplugins.spec,v
retrieving revision 1.3
diff -u -r1.3 mythplugins.spec
--- mythplugins.spec 22 Aug 2005 22:09:27 -0000 1.3
+++ mythplugins.spec 21 Feb 2006 21:12:54 -0000
@@ -1,20 +1,19 @@
+
%define name mythplugins
-%define version 0.18.1
-%define cvsrel 20050620
-%define release %mkrel %{cvsrel}.3
+%define version 0.19
+%define rel 1
+%define release %mkrel %{rel}
%define distsuffix plf
-%define _htmldir /var/www/html
%define _varlibdir %{_localstatedir}
-# x86_64 and cooker currently don't like festival
-#define build_festival 1
-#ifarch x86_64
-#define build_festival 0
-#endif
-#if %mdkversion >= 2006
+# segfaults mythphone on start
%define build_festival 0
-#endif
+
+%ifarch x86_64
+# libFestival.a is non-PIC, should probably be fixed
+%define build_festival 0
+%endif
%if %mdkversion > 1020
%define build_firewire 1
@@ -22,42 +21,26 @@
%define build_firewire 0
%endif
-#BuildRequires: liblirc-devel
-BuildRequires: lame-devel
BuildRequires: libmyth-devel >= %{version}
-##mythbrowser
-BuildRequires: kdelibs-devel
-BuildRequires: libavc1394_0-devel
-%if %build_firewire
-BuildRequires: libiec61883-devel
-%endif
-##mythdvd
-#BuildRequires: libalsa-devel
+BuildRequires: Mesa-devel
+BuildRequires: fftw-devel
+BuildRequires: SDL-devel
+BuildRequires: libfaad2-devel
+BuildRequires: libfaad2-static-devel
BuildRequires: libdvdread-devel
-#BuildRequires: liba52dec-devel, libfame-devel
-##mythgallery
-#BuildRequires: cdialog
-BuildRequires: Mesa-common-devel
-BuildRequires: tiff-devel
BuildRequires: libexif-devel
-##mythmusic
-BuildRequires: SDL-devel
-##BuildRequires: cdialog
-BuildRequires: fftw2-devel
-#BuildRequires: lame-devel
+BuildRequires: mad-devel
+BuildRequires: id3tag-devel
+BuildRequires: libvorbis-devel
+BuildRequires: libflac-devel
BuildRequires: libcdaudio-devel
BuildRequires: libcdda-devel
-BuildRequires: libflac-devel
-#BuildRequires: libfaac-devel
-BuildRequires: libfaad2-devel
-#BuildRequires: libfaad2-static-devel
-BuildRequires: libid3tag-devel
-#BuildRequires: libvorbis-devel
-#BuildRequires: mad-devel
-##mythphone
+BuildRequires: lame-devel
+BuildRequires: tiff-devel
+BuildRequires: kdelibs-devel
%if %build_festival
-BuildRequires: festival-devel
-BuildRequires: speech_tools-devel
+BuildRequires: festival-devel
+BuildRequires: speech_tools-devel
%endif
Summary: Mythplugins for MythTV
@@ -67,25 +50,21 @@
URL: http://www.mythtv.org/
License: GPL
Group: Video
-Source0: http://www.mythtv.org/mc/%{name}-%{version}-cvs%{cvsrel}.tar.bz2
-#mythphone
-Patch0: mythphone-0.18.1-configure.patch.bz2
-#mythvideo
-Patch2: mythvideo-0.18-math.patch.bz2
+Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
%description
Mythplugins for MythTV.
%package -n mythbrowser
-Summary: MythBrowser is a full webb browser for MythTV
+Summary: MythBrowser is a full web browser for MythTV
URL: http://www.mythtv.org/
License: GPL
Group: Video
Requires: mythtv-backend >= %{version}
%description -n mythbrowser
-MythBrowser is a full webb browser for MythTV.
+MythBrowser is a full web browser for MythTV.
%package -n mythcontrols
Summary: MythTV keybindings editor
@@ -100,23 +79,24 @@
%package -n mythdvd
Summary: The DVD player/ripper frontend module for MythTV
-License: GPL
Group: Video
Requires: libmyth = %{version}
-Requires: mjpegtools
-Requires: nasm
Requires: mplayer
#Requires: ogle >= 0.8.5 xine
Requires: transcode
-Requires: xvid
%description -n mythdvd
The DVD player/ripper frontend module for MythTV.
+%package -n mythflix
+Summary: NetFlix for MythTV
+Group: Video
+Requires: libmyth = %{version}
+%description -n mythflix
+NetFlix for MythTV.
+
%package -n mythgallery
Summary: A gallery/slideshow module
-URL: http://www.mythtv.org/
-License: GPL
Group: Video
Requires: libmyth = %{version}
@@ -125,7 +105,6 @@
%package -n mythgame
Summary: A game frontend (xmame, nes, snes, pc) for MythTV
-License: GPL
Group: Video
Requires: libmyth = %{version}
@@ -134,19 +113,15 @@
%package -n mythmusic
Summary: The music player add-on module for MythTV
-License: GPL
Group: Video
-Requires: cdparanoia
+#Requires: cdparanoia
Requires: libmyth = %{version}
-#Prereq: %{_datadir}/mythtv/build/settings.pro
%description -n mythmusic
The music player add-on module for MythTV.
%package -n mythnews
Summary: A RSS News feed plugin for MythTV
-#BUILDArch: noarch
-License: GPL
Group: Video
Requires: libmyth >= %{version}
@@ -155,7 +130,6 @@
%package -n mythphone
Summary: A phone and videophone capability on Mythtv using the standard
SIP protocol
-License: GPL
Group: Video
Requires: libmyth >= %{version}
%if %build_festival
@@ -170,7 +144,6 @@
%package -n mythweather
Summary: A MythTV module that displays a weather forcast
-License: GPL
Group: Video
Requires: libmyth = %{version}
@@ -179,125 +152,123 @@
%package -n mythweb
Summary: The web interface to MythTV
-#BuildArch: noarch
-License: GPL
Group: Video
-Requires: mythtv-backend = %{version}
-Requires: php-mysql
-Requires: apache2
-Requires: apache2-mod_php
-Requires: php-mysql
+Requires: libmyth = %{version}
+Requires: mod_php >= 2.0.54
+BuildRequires: apache-base >= 2.0.54-5mdk
+# Requires autofinder is confused, requires nonexistent packages
+%define _requires_exceptions pear*
%description -n mythweb
The web interface to MythTV.
%package -n mythvideo
Summary: A generic video player frontend module for MythTV
-License: GPL
Group: Video
-Requires: libmyth = %{version} mplayer
+Requires: libmyth = %{version}
+Requires: mplayer
%description -n mythvideo
A generic video player frontend module for MythTV.
%prep
-%setup -q -n %name
+%setup -q -n %{name}-%{version}
#mythphone
-%patch0 -p0
-#mythvideo
-%patch2 -p0 -b .math
-# Fix /usr/local -> %{_prefix}
-grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g'
+
+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 /lib/mythtv/ | xargs perl -pi
-e's,/lib/mythtv/,/%{_lib}/mythtv/,'
-echo 'LIBS += -L$${PREFIX}/X11R6/lib' >> ./settings.pro
+find . -type f | xargs grep -l /usr/local | xargs perl -pi
-e's|/usr/local|%{_prefix}|g'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi
-e's,/lib$,/%{_lib},'
-find . -type f | xargs grep -l lmp4ff | xargs perl -pi -e's,\-lmp4ff,,'
-#mythmusic
-#fix correct naming for lib fftw
-perl -pi -e's|lfftw|lsfftw|g' configure
-%configure --enable-all \
-%if %build_festival
- --enable-festival
-%else
- --disable-festival
-%endif
-
+
# 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
-%ifarch x86_64
- perl -pi -e's|-march=pentiumpro|-march=k8|g' ./settings.pro
- perl -pi -e's|DEFINES \+= HAVE_MMX||g' ./settings.pro
+%build
+export QTDIR=%{_prefix}/lib/qt3
+export QTLIB=$QTDIR/%{_lib}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_libdir}
+
+%configure --enable-all \
+%if %build_festival
+ --enable-festival
+%else
+ --disable-festival
%endif
-%build
-export QTDIR=/usr/lib/qt3
-export PATH=$PATH:/usr/lib/qt3/bin
-echo "include ( %{_datadir}/mythtv/build/settings.pro )" >> settings.pro
#mythphone
cat >> settings.pro << EOF
-INCLUDEPATH += %{_includedir}/mythtv
-INCLUDEPATH += %{_includedir}/festival
-INCLUDEPATH += %{_includedir}/speech_tools
-INCLUDEPATH += /%{_includedir}/EST
+INCLUDEPATH += %{_includedir}/EST
EOF
-#add missing mythbrowser plugin
-echo "SUBDIRS += mythbrowser" >> ./config.pro
-/usr/lib/qt3/bin/qmake mythplugins.pro
+
%make
%install
-export QTDIR=/usr/lib/qt3
-export PATH=$PATH:/usr/lib/qt3/bin
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-INSTALL_ROOT=$RPM_BUILD_ROOT; export INSTALL_ROOT
+
+rm -rf %{buildroot}
+
+INSTALL_ROOT=%{buildroot}; export INSTALL_ROOT
%makeinstall
#mythgallery
mkdir -p %{buildroot}%{_varlibdir}/pictures
#mythdvd
mkdir -p %{buildroot}%{_varlibdir}/mythdvd
-#mythgame
-mkdir -p %{buildroot}%{_datadir}/mythtv/games/nes/{roms,screens}
-mkdir -p %{buildroot}%{_datadir}/mythtv/games/snes/{roms,screens}
-#mkdir -p %{buildroot}%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
-mkdir -p %{buildroot}%{_datadir}/mythtv/games/PC/screens
-mkdir -p %{buildroot}%{_datadir}/xmame
-ln -s %{_datadir}/xmame %{buildroot}%{_datadir}/mythtv/games/xmame
-mkdir -p %{buildroot}%{_datadir}/xmame/flyers
-ln -s snap %{buildroot}%{_datadir}/xmame/screens
-
-cp -a mythgame/gamelist.xml %{buildroot}%{_datadir}/mythtv/games/PC/
#mythmusic
mkdir -p %{buildroot}%{_varlibdir}/mythmusic
-#mythweb
-mkdir -p %{buildroot}%{_htmldir}/mythweb
-cp -r ./mythweb/ %{buildroot}%{_htmldir}/mythweb
#mythvideo
mkdir -p %{buildroot}%{_varlibdir}/mythvideo
-%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+#mythweb
+install -d -m755 %{buildroot}%{_var}/www/mythweb
+install -m644 mythweb/*.php %{buildroot}%{_var}/www/mythweb
+cp -r mythweb/images %{buildroot}%{_var}/www/mythweb
+cp -r mythweb/js %{buildroot}%{_var}/www/mythweb
+cp -r mythweb/skins %{buildroot}%{_var}/www/mythweb
+cp -r mythweb/themes %{buildroot}%{_var}/www/mythweb
+
+install -d -m755 %{buildroot}%{_localstatedir}/mythweb/data
+ln -s %{_localstatedir}/mythweb/data %{buildroot}%{_var}/www/mythweb/data
+
+install -d -m755 %{buildroot}%{_datadir}/mythweb
+cp -r mythweb/includes %{buildroot}%{_datadir}/mythweb
+cp -r mythweb/languages %{buildroot}%{_datadir}/mythweb
+cp -r mythweb/templates %{buildroot}%{_datadir}/mythweb
+cp -r mythweb/modules %{buildroot}%{_datadir}/mythweb
+
+install -d -m755 %{buildroot}%{_sysconfdir}/mythweb
+cp -r mythweb/config/* %{buildroot}%{_sysconfdir}/mythweb
+ln -s %{_sysconfdir}/mythweb %{buildroot}%{_datadir}/mythweb/config
-%post -n mythphone
-cat <<EOF
-Read the file %{_docdir}/%{name}-%{version}/README on how to use.
-EOF
+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 mythweb
-mkdir -p %{_htmldir}/mythweb/{image_cache,php_sessions}
-chgrp -R apache %{_htmldir}/mythweb/{image_cache,php_sessions}
-chmod g+rw %{_htmldir}/mythweb/{image_cache,php_sessions}
-cat <<EOF
-To access the web page, open a web browser and use http://[name or ip
address]/mythweb/.
-EOF
+%_post_webapp
-%preun -n mythweb
-rmdir %{_htmldir}/mythweb/{image_cache,php_sessions} > /dev/null 2>&1 || :
+%postun -n mythweb
+%_postun_webapp
%files -n mythbrowser
%defattr(-,root,root,-)
@@ -312,13 +283,23 @@
%doc mythdvd/README* mythdvd/UPGRADING mythdvd/COPYING mythdvd/AUTHORS
%{_bindir}/mtd
%{_libdir}/mythtv/plugins/libmythdvd.so
-%config(noreplace) %{_datadir}/mythtv/dvd_settings.xml
-%config(noreplace) %{_datadir}/mythtv/dvdmenu.xml
+%{_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 mythflix
+%defattr(-,root,root,-)
+%doc mythflix/README mythflix/COPYING mythflix/ChangeLog mythflix/AUTHORS
+%{_libdir}/mythtv/plugins/libmythflix.so
+%{_datadir}/mythtv/i18n/mythflix_*.qm
+%{_datadir}/mythtv/mythflix
+%{_datadir}/mythtv/netflix_menu.xml
+%{_datadir}/mythtv/themes/default/netflix*.xml
+%{_datadir}/mythtv/themes/default/*netflix.png
+
%files -n mythgallery
%defattr(-,root,root,-)
%doc mythgallery/README* mythgallery/UPGRADING
@@ -329,21 +310,17 @@
%files -n mythgame
%defattr(-,root,root,-)
-%doc mythgame/README* mythgame/UPGRADING
+%doc mythgame/README* mythgame/UPGRADING mythgame/romdb*
%{_libdir}/mythtv/plugins/libmythgame.so
-%{_datadir}/mythtv/games
-%{_datadir}/mythtv/themes/default/game*
-%{_datadir}/mythtv/game_settings.xml
-%config(noreplace) %{_datadir}/mythtv/games/PC/gamelist.xml
-%{_datadir}/xmame/screens
-%{_datadir}/xmame/flyers
%{_datadir}/mythtv/i18n/mythgame_*.qm
+%{_datadir}/mythtv/game_settings.xml
+%{_datadir}/mythtv/themes/default/game*
%files -n mythmusic
%defattr(-,root,root,-)
%doc mythmusic/AUTHORS mythmusic/COPYING mythmusic/README* mythmusic/UPGRADING
mythmusic/musicdb
-%config(noreplace) %{_datadir}/mythtv/music_settings.xml
-%config(noreplace) %{_datadir}/mythtv/musicmenu.xml
+%{_datadir}/mythtv/music_settings.xml
+%{_datadir}/mythtv/musicmenu.xml
%{_libdir}/mythtv/plugins/libmythmusic.so
%{_varlibdir}/mythmusic
%{_datadir}/mythtv/i18n/mythmusic_*.qm
@@ -403,15 +380,21 @@
%files -n mythweb
%defattr(-,root,root,-)
-%doc mythweb/README*
-%{_htmldir}/mythweb
+%doc mythweb/README* mythweb/TODO mythweb/LICENSE
+%{_var}/www/mythweb
+%{_localstatedir}/mythweb
+%attr(-,apache,apache) %{_localstatedir}/mythweb/data
+%{_datadir}/mythweb
+%dir %{_sysconfdir}/mythweb
+%config(noreplace) %{_sysconfdir}/mythweb/*
+%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/mythweb.conf
%files -n mythvideo
%defattr(-,root,root,-)
%doc mythvideo/README*
%{_libdir}/mythtv/plugins/libmythvideo.so
-%config(noreplace) %{_datadir}/mythtv/video_settings.xml
-%config(noreplace) %{_datadir}/mythtv/videomenu.xml
+%{_datadir}/mythtv/video_settings.xml
+%{_datadir}/mythtv/videomenu.xml
%{_datadir}/mythtv/i18n/mythvideo_*.qm
%{_datadir}/mythtv/mythvideo/scripts
%{_datadir}/mythtv/themes/default/mv*
@@ -424,15 +407,40 @@
%{_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
%changelog
+* Tue Feb 21 2006 Anssi Hannula <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 0.18.1-20050620.4plf
+- fix changelog
+- fix buildrequires libavc1394-devel
+- fix x86_64 build (patch1)
+
* Mon Aug 22 2005 Stefan van der Eijk <[EMAIL PROTECTED]> 0.18.1-20050620.3plf
- no firewire support %%mdkversion > 1020
- add distsuffix
- %%mkrel
- start fixing changelog
-* Wed Jul 06 2005 Stefan van derEijk <[EMAIL PROTECTED]> 0.18.2-20050620.2plf
+* Wed Jul 06 2005 Stefan van derEijk <[EMAIL PROTECTED]> 0.18.1-20050620.2plf
- BuildRequires
- disable building with festival support
- remove -lmp4ff from makefile
_______________________________________________
PLF-announce mailing list
[email protected]
https://www.zarb.org/mailman/listinfo/plf-announce