[packman] Mythplugins spec file

Simon Crute simon at geordie.demon.co.uk
Thu Oct 27 12:59:52 CEST 2005


Mythplugins 0.18.1 spec file

-- 
Simon Crute
-------------- next part --------------
#added cos fedora core must set these macros, and suse doesn't
%define _varlibdir /var/lib
%define _varcachedir /var/cache
%define _initdir /etc/rc.d
%define _sysconfigdir /etc
%define _logrotatedir /etc/logrotate.d
%define _logdir /var/log

Summary: Main MythTV plugins.
Name: mythplugins
Version: 0.18.1
Release: at_113_snc_1
License: GPL2
Group: Applications/Multimedia
URL: http://www.mythtv.org/
Source0: http://www.mythtv.org/mc/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
###
Patch0: mythplugins-0.18.1-svnfixes.patch
Patch1: mythmusic-0.18-fftw2singleprec.patch
#don't think we need this patch for suse
#Patch2: mythmusic-0.12-cdda.patch
Patch10: mythvideo-0.16-math.patch
#Patch20: mythgame-0.10-paths.patch
#Patch30: mythnews-0.12-qt30.patch
#Patch40: mythphone-0.16-includepathfix.patch
BuildRequires: gcc-c++, qt3-devel, XFree86-devel
#just commented this out temporarery. 
#BuildRequires: %{_datadir}/mythtv/build/settings.pro
### mythmusic
BuildRequires: mad-devel, libid3tag-devel , libvorbis-devel >= 1.0, flac-devel >= 1.0.4
BuildRequires: libcdaudio-devel >= 0.99.6, cdparanoia
#BuildRequires: fftw-devel >= 2.1.3, fftw2-devel < 3
BuildRequires: fftw-devel >= 2.1.3
BuildRequires: lame
BuildRequires: /usr/include/GL/gl.h
BuildRequires: XFree86-devel, SDL-devel
BuildRequires: faad2-devel
### mythgallery
BuildRequires: libtiff-devel
BuildRequires: /usr/include/GL/gl.h
BuildRequires: %{_datadir}/mythtv/build/settings.pro
BuildRequires: libexif
### mythgame
BuildRequires: zlib-devel
### mythdvd
BuildRequires: libdvdread-devel >= 0.9.4, nasm
# nasm >= 0.98.36
BuildRequires: mjpegtools >= 1.6.1, xvid-devel >= 0.9.1
BuildRequires: a52dec, libfame-devel >= 0.9.0
BuildRequires: transcode >= 0.6.8
BuildRequires: libdvdcss-devel >= 1.2.7
# For <= RH8.0
BuildRequires: freetype2-devel
### mythbrowser
BuildRequires: libmyth-devel >= %{eversion}
BuildRequires: kdelibs-devel, XFree86-devel
### mythphone
BuildRequires: libmyth-devel >= %{eversion}
#BuildRequires: festival-devel
BuildRequires: termcap
Requires: mythmusic >= %{evr}, mythvideo >= %{evr}, mythweather >= %{evr}
Requires: mythgallery >= %{evr}, mythgame >= %{evr}, mythdvd >= %{evr}
Requires: mythnews >= %{evr}, mythbrowser >= %{evr}, mythphone >= %{evr} 

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

%package -n mythmusic
Summary: The music player add-on module for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

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

%package -n mythvideo
Summary: A generic video player frontend module for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')
Requires: MPlayer

%description -n mythvideo
A generic video player frontend module for MythTV.

%package -n mythweather
Summary: A MythTV module that displays a weather forcast.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

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

%package -n mythgallery
Summary: A gallery/slideshow module for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

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

%package -n mythgame
Summary: A game frontend (xmame, nes, snes, pc) for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

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

%package -n mythdvd
Summary: A DVD player module for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')
Requires: transcode >= 0.6.8

%description -n mythdvd
MythDVD is a MythTV module that allows you to play DVD's on a myth-box
and (optionally) rip DVD's and transcode their video and audio content
to other (generally smaller) formats. The playing features are simply
myth-style wrappers for your favourite DVD playing software (mplayer,
ogle, xine, etc). The transcoding is based on and derived from the
excellent transcode package.

%package -n mythnews
Summary: A RSS News Feed Plugin for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

%description -n mythnews

%package -n mythbrowser
Summary: A small web browser module for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

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

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

%package -n mythphone
Summary: A video conferencing module for MythTV.
Group: Applications/Multimedia
Requires: mythtv-frontend-api = %(echo %{eversion} | awk -F. '{print $1 "." $2}')

%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).

%prep
%setup -q
%patch0 -p2 -b .svnfixes

# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 

echo "include ( %{_datadir}/mythtv/build/settings.pro )" >> settings.pro

%ifnarch %{ix86}
cat >> settings.pro << EOF
DEFINES -= HAVE_MMX
EOF
%endif


%patch1 -p0 -b .sfftw
cd mythmusic
#%patch2 -p0 -b .cdda


# Fix /lib/ -> %%{_lib}
grep -rl /lib/ . | xargs perl -pi -e's|/lib/|/%{_lib}/|g' 

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

## Fix buggy flac assert.h
#echo '#include "/usr/include/assert.h"' > mythmusic/assert.h

cd ..
cd mythvideo
%patch10 -p0 -b .math

# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 

find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

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

cd ..
cd mythweather
# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'
cd ..
cd mythgallery
# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

cd ..
cd mythgame
#FIXME
#patch20 -p1 -b .paths
# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

cd ..
cd mythdvd
# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

cd ..
cd mythnews
#patch30 -p0 -b .toTime
# Fix /usr/local -> %{_prefix}
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

cd ..
cd mythbrowser
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

cd ..
cd mythphone
#patch40 -p0
grep -rl /usr/local . | xargs perl -pi -e's|/usr/local|'%{_prefix}'|g' 
find . -type f | xargs grep -l /lib/mythtv/ | xargs perl -pi -e's,/lib/mythtv/,/%{_lib}/mythtv/,'
find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'

cat >> ../settings.pro << EOF
INCLUDEPATH += %{_includedir}/mythtv
#INCLUDEPATH += %{_includedir}/festival
INCLUDEPATH += %{_includedir}/speech_tools
LIBS *= -L/usr/X11R6/lib
EOF
cd ..
%build
./configure --enable-all --disable-festival
qmake mythplugins.pro
make
#cd mythbrowser
#qmake mythbrowser.pro
#cd ..
#make -C mythbrowser

%install
rm -rf %{buildroot}
make install INSTALL_ROOT=%{buildroot}
make install INSTALL_ROOT=%{buildroot} -C mythbrowser

mkdir -p %{buildroot}%{_varlibdir}/mythmusic
mkdir -p %{buildroot}%{_varlibdir}/mythvideo
mkdir -p %{buildroot}%{_varlibdir}/pictures
mkdir -p %{buildroot}%{_datadir}/mythtv/games/nes/{roms,screens}
mkdir -p %{buildroot}%{_datadir}/mythtv/games/snes/{roms,screens}
#mkdir -p %{buildroot}%{_datadir}/mythtv/games/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/

%clean
rm -rf %{_buildroot}


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

%files -n mythmusic
%defattr(-,root,root,-)
%doc mythmusic/README mythmusic/UPGRADING mythmusic/COPYING mythmusic/AUTHORS mythmusic/musicdb
%{_libdir}/mythtv/plugins/libmythmusic.so
%{_varlibdir}/mythmusic
%{_datadir}/mythtv/musicmenu.xml
%{_datadir}/mythtv/music_settings.xml
%{_datadir}/mythtv/i18n/mythmusic_*.qm
%{_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/themes/default/mm_blackhole_border.png
%{_datadir}/mythtv/themes/default/mm_blankbutton_off.png
%{_datadir}/mythtv/themes/default/mm_blankbutton_on.png
%{_datadir}/mythtv/themes/default/mm_blankbutton_pushed.png
%{_datadir}/mythtv/themes/default/mm_checked.png
%{_datadir}/mythtv/themes/default/mm_checked_high.png
%{_datadir}/mythtv/themes/default/mm_down_arrow.png
%{_datadir}/mythtv/themes/default/mm_left_arrow.png
%{_datadir}/mythtv/themes/default/mm_leftright_off.png
%{_datadir}/mythtv/themes/default/mm_leftright_on.png
%{_datadir}/mythtv/themes/default/mm_leftright_pushed.png
%{_datadir}/mythtv/themes/default/mm_rating.png
%{_datadir}/mythtv/themes/default/mm_right_arrow.png
%{_datadir}/mythtv/themes/default/mm_unchecked.png
%{_datadir}/mythtv/themes/default/mm_unchecked_high.png
%{_datadir}/mythtv/themes/default/mm_up_arrow.png
%{_datadir}/mythtv/themes/default/mm_volume_background.png
%{_datadir}/mythtv/themes/default/mm_volume_tick.png
%{_datadir}/mythtv/themes/default/mm_waiting.png
%{_datadir}/mythtv/themes/default/music-sel-bg.png
%{_datadir}/mythtv/themes/default/music-ui.xml
%{_datadir}/mythtv/themes/default/next_button_off.png
%{_datadir}/mythtv/themes/default/next_button_on.png
%{_datadir}/mythtv/themes/default/next_button_pushed.png
%{_datadir}/mythtv/themes/default/pause_button_off.png
%{_datadir}/mythtv/themes/default/pause_button_on.png
%{_datadir}/mythtv/themes/default/pause_button_pushed.png
%{_datadir}/mythtv/themes/default/play_button_off.png
%{_datadir}/mythtv/themes/default/play_button_on.png
%{_datadir}/mythtv/themes/default/play_button_pushed.png
%{_datadir}/mythtv/themes/default/prev_button_off.png
%{_datadir}/mythtv/themes/default/prev_button_on.png
%{_datadir}/mythtv/themes/default/prev_button_pushed.png
%{_datadir}/mythtv/themes/default/rew_button_off.png
%{_datadir}/mythtv/themes/default/rew_button_on.png
%{_datadir}/mythtv/themes/default/rew_button_pushed.png
%{_datadir}/mythtv/themes/default/selectionbar.png
%{_datadir}/mythtv/themes/default/stop_button_off.png
%{_datadir}/mythtv/themes/default/stop_button_on.png
%{_datadir}/mythtv/themes/default/stop_button_pushed.png
%{_datadir}/mythtv/themes/default/text_button_off.png
%{_datadir}/mythtv/themes/default/text_button_on.png
%{_datadir}/mythtv/themes/default/text_button_pushed.png
%{_datadir}/mythtv/themes/default/track_info_background.png

%files -n mythvideo
%defattr(-,root,root,-)
%doc mythvideo/README mythvideo/UPGRADING mythvideo/COPYING mythvideo/videodb
%{_libdir}/mythtv/plugins/libmythvideo.so
%{_datadir}/mythtv/i18n/mythvideo_*.qm
%{_datadir}/mythtv/themes/default/video-ui.xml
%{_datadir}/mythtv/themes/default/mv-*.png
%{_datadir}/mythtv/themes/default/mv_*.png
%{_datadir}/mythtv/video_settings.xml
%{_datadir}/mythtv/videomenu.xml
%{_datadir}/mythtv/mythvideo/scripts/README
%{_datadir}/mythtv/mythvideo/scripts/imdb.pl
%{_datadir}/mythtv/mythvideo/scripts/allocine.pl
%{_varlibdir}/mythvideo

%files -n mythweather
%defattr(-,root,root,-)
%doc mythweather/README mythweather/COPYING
%{_libdir}/mythtv/plugins/libmythweather.so
%{_datadir}/mythtv/i18n/mythweather_*.qm
%{_datadir}/mythtv/mythweather
%{_datadir}/mythtv/themes/default/weather-ui.xml
%{_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/mwmain.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

%files -n mythgallery
%defattr(-,root,root,-)
%doc mythgallery/README mythgallery/UPGRADING mythgallery/COPYING
%{_libdir}/mythtv/plugins/libmythgallery.so
%{_datadir}/mythtv/themes/default/gallery-ui.xml
%{_datadir}/mythtv/themes/default/gallery-*.png
%{_datadir}/mythtv/i18n/mythgallery_*.qm
%{_varlibdir}/pictures

%files -n mythgame
%defattr(-,root,root,-)
%doc mythgame/README mythgame/UPGRADING
%{_libdir}/mythtv/plugins/libmythgame.so
%{_datadir}/mythtv/games
%config %{_datadir}/mythtv/games/PC/gamelist.xml
%{_datadir}/xmame/screens
%{_datadir}/xmame/flyers
%{_datadir}/mythtv/game_settings.xml
%{_datadir}/mythtv/themes/default/game-ui.xml
%{_datadir}/mythtv/i18n/mythgame_*.qm

%files -n mythdvd
%defattr(-,root,root,-)
%doc mythdvd/README mythdvd/UPGRADING mythdvd/COPYING mythdvd/AUTHORS
%{_libdir}/mythtv/plugins/libmythdvd.so
%{_datadir}/mythtv/dvd_settings.xml
%{_datadir}/mythtv/dvdmenu.xml
%{_datadir}/mythtv/themes/default/dvd-ui.xml
%{_datadir}/mythtv/themes/default/md_*.png
%{_datadir}/mythtv/i18n/mythdvd_*.qm
%{_bindir}/mtd

%files -n mythnews
%defattr(-,root,root,-)
%doc mythnews/README mythnews/AUTHORS mythnews/COPYING
%{_libdir}/mythtv/plugins/libmythnews.so
%{_datadir}/mythtv/mythnews
%{_datadir}/mythtv/themes/default/news-ui.xml
%{_datadir}/mythtv/themes/default/news-info-bg.png
%{_datadir}/mythtv/i18n/mythnews_*.qm

%files -n mythbrowser
%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 mythphone
%defattr(-,root,root,-)
%doc mythphone/README mythphone/COPYING mythphone/AUTHORS mythphone/TODO
%{_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
%{_datadir}/mythtv/i18n/mythphone_*.qm



%changelog
* Tue Oct 04 2005 Simon Crute <scrute at novell.com>
- Applied my hacks to the 113 version. 

* Sat Jul 16 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Reenable mythplugins.

* Mon Jul  4 2005 Simon Crute <scrute at novell.com>
- Hacked around with the spec file to get it to compile under suse. 
* Tue Jun  7 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Disable transcode for now until transcode catches up with ffmpeg
  and libquicktime.

* Tue May 17 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Update to 0.18.1.

* Thu May 12 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Update the cvs fixes.

* Thu Apr 21 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Add cvsfixes for 0.18.

* Fri Apr 15 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Update to 0.18.

* Thu Apr 14 2005 Axel Thimm <Axel.Thimm at ATrpms.net>
- Merging plugins into one build (matching the new source layout).


More information about the Packman mailing list