############################################################################## # $Id: xdtv.spec.in,v 1.26 2006/01/27 20:38:14 pingus77 Exp $ ############################################################################## # Minimum required is: X11 & XPM & Xaw from X.org + Xterm # # Optional: # To have a better GUI: # neXtaw (0.15.1) from http://siag.nu/neXtaw/ # or XawM from http://sourceforge.net/projects/xawm/ # or Xaw95 & Xaw3d (not advised) # # To Record with a lot of audio/video codecs: # FFMpeg (50.0.0+) from http://ffmpeg.sourceforge.net/ read README.ffmpeg for more infos # Lame (3.96+)from http://lame.sourceforge.net/ # XviD (1.x+) from http://www.xvid.org/ # DivX (5.0.1alpha only) from http://www.divx.com/divx/linux/ # Ogg (1.1.2+) & Theora (1.0alpha5) & Vorbis (1.1.0+) from http://www.xiph.org/ # # Other options: # Zvbi (0.2.15+) from http://zapping.sourceforge.net/ (Scanning channels and get their names # Alsa (1.x) from http://www.alsa-project.org/ (Better sound architecture than OSS) # Lirc (0.7.x+) from http://www.lirc.org/ (If you have a remote and want to use it) # libpng & libjpeg (For capturing AleVT & XdTV snapshots) ############################################################################## #set_verify_elf_method textrel=relaxed %set_automake_version 1.9 %set_autoconf_version 2.5 %define cvsversion cvs20070519 %define new_name xawdecode Name: xdtv Summary: XdTV is a software to record & watch TV Version: 2.4.0. Release: alt0.3.%cvsversion License: GPL Url: http://xawdecode.sourceforge.net/ Packager: Hihin Ruslan Source0: %new_name-%cvsversion.tar.bz2 Source1: %name.desktop Patch0: xawdecode-autotols_new.patch Patch1: xdtv-2.4.cvs20070519-mini-alevt.patch Patch2: xdtv-2.4.cvs20070519.ffmpeg-record.patch Patch3: xdtv-2.4.cvs20070519-tv_debug.patch Patch4: xdtv-2.4.cvs20070519-right.patch Group: Video %def_disable optimization #def_disable cpu-detection %def_disable debug %def_enable mmx # Defaults : %def_enable nls %def_enable pixmaps %def_enable xinerama %def_enable nextaw %def_enable xawm %def_enable xaw95 %def_enable xaw3d %def_enable ogg %def_enable xvid %def_enable ffmpeg %def_disable divx4linux %def_enable lame %def_enable dvb %def_enable zvbi %def_enable lirc %def_enable alsa %def_enable png %def_enable jpeg %def_enable faac %def_enable mowitz %def_enable xvtv %def_enable x264 %define Name XdTV %define summary1 %name is a software to record & watch TV. %define tvtuner_launcher %_desktopdir # Automatically added by buildreq on Mon Mar 27 2006 BuildRequires: libX11-devel bdftopcf gcc-c++ imake libXv-devel libXxf86dga-devel BuildRequires: libXxf86vm-devel mkfontdir xorg-cf-files xset BuildPreReq: libX11-devel linux-libc-headers libXpm-devel libXaw-devel BuildPreReq: autoconf automake %if_enabled x264 BuildPreReq: libx264-devel %endif %if_enabled ogg BuildPreReq: libogg-devel libtheora-devel libvorbis-devel %endif %if_enabled xvid BuildPreReq: libxvid-devel %endif %if_enabled ffmpeg BuildPreReq: libffmpeg-devel %endif %if_enabled divx BuildPreReq: libavifile-devel %endif %if_enabled lame BuildPreReq: liblame-devel %endif %if_enabled dvb BuildPreReq: libdvbpsi-devel %endif %if_enabled zvbi BuildPreReq: libzvbi-devel %endif %if_enabled lirc BuildPreReq: liblirc-devel %endif %if_enabled alsa BuildPreReq: libalsa-devel %endif %if_enabled png BuildPreReq: libpng-devel %endif %if_enabled jpeg BuildPreReq: libjpeg-devel %endif %if_enabled faac BuildPreReq: libfaac-devel %endif %description XdTV is a software that allows you to to record & watch TV. It interacts with Nxtvepg for NextView, and uses the video4linux API. It can use some deinterlacing filters and can record video files in various containers (AVI, MPEG, OGG, etc.) with many codecs (FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis and DivX4/5). For AleVT for Teletext install libalevt It has also some plugin capabilities. %description -l ru_RU.CP1251 XdTV (�������X11 ����� � xawtv) � �� � �����TV. �����������AleVT � Teletext ��Nxtvepg � NextView, ����� video4linux API. ��������� ��������� ������ ������ ���� FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis, DivX4/5. ��� ������� ����� ����. � ������ ����� ����� ����� ���libalevt %description -l ru_RU.CP1251 XdTV ( X11 xawtv) TV. AleVT Teletext Nxtvepg NextView, video4linux API. : FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis, DivX4/5. . libalevt %description -l ru_RU.KOI8-R XdTV ( X11 xawtv) TV. AleVT Teletext Nxtvepg NextView, video4linux API. : FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis, DivX4/5. . libalevt. %package -n libalevt Summary: Developpement files for XdTV Group: Development/C %package -n %{name}-dummy Summary: Developpement files for XdTV Group: Development/C %if_enabled nextaw BuildPreReq: libneXtaw-devel %endif %if_enabled xawm BuildPreReq: libXawM1-devel %endif %if_enabled xaw95 BuildPreReq: libXaw95-devel %endif %if_enabled xaw3d BuildPreReq: libXaw3d-devel %endif %if_enabled xinerama BuildPreReq: libXinerama-devel %endif Requires: libXinerama Requires: libneXtaw Requires: libXaw95 Requires: libXaw3d Requires: libXawM1 Requires: liblirc %package -n libalevt-devel Summary: Developpement files for XdTV Group: Development/C Requires: libalevt = %version %description -n %{name}-dummy Virtual packet %description -n libalevt Teletext decoder and browser for the bttv driver. %description -n libalevt-devel Headers and tool for development with libalevt. %description -n libalevt -l ru_RU.UTF8 X11 библиотка для декодирования телетекста. %description -n libalevt -l ru_RU.cp1251 X11 . %package OSD-font Summary: Font used by XdTV OSD function Group: Video %description OSD-font Font used by XdTV OSD function. %prep %setup -n %new_name -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %__autoreconf export FLAGS="%optflags -DNDEBUG -DNO_DEBUG -D_GNU_SOURCE " %configure \ %if_enabled optimization --enable-cpu-detection \ %else --disable-cpu-detection \ %endif --with-external-ffmpeg \ --with-gnu-ld \ --with-pic \ --with-x \ --enable-smallfont \ --disable-x11-ext-checking \ --with-fontdir=%buildroot%_x11fontsdir/%name \ --with-appdefaultsdir=%_x11appconfdir \ %{subst_enable mmx} \ %{subst_enable nls} \ %{subst_enable pixmaps} \ %{subst_enable debug} \ %{subst_enable xinerama} \ %{subst_enable ogg} \ %{subst_enable x264} \ %{subst_enable xvtv} \ %{subst_enable divx} \ %{subst_enable xvid} \ %{subst_enable ffmpeg} \ %{subst_enable lame} \ %{subst_enable zvbi} \ %{subst_enable lirc} \ %{subst_enable dvb} \ %{subst_enable alsa} \ %{subst_enable jpeg} \ %{subst_enable png} \ %{subst_enable nextaw} \ %{subst_enable xawm} \ %{subst_enable faac} \ %{subst_enable xaw95} \ %{subst_enable xaw3d} \ %{subst_enable mowitz} \ export ROOT=%buildroot/usr %make_build %install %makeinstall ROOT=%buildroot \ SUID_ROOT="" \ libdir=%buildroot/%_libdir \ # Cure man path if needed install -d -m 755 %buildroot%_includedir/libalevt install -m 644 alevt/*.h %buildroot%_includedir/libalevt install -d -m 755 %buildroot%_man1dir install -m 644 man/%name.1 %buildroot%_man1dir install -m 644 man/%{name}_cmd.1 %buildroot%_man1dir install -m 644 man/%{name}_alevt-cap.1 %buildroot%_man1dir install -m 644 man/%{name}_alevt-date.1 %buildroot%_man1dir install -m 644 man/%{name}_alevt.1 %buildroot%_man1dir # Dynamic desktop support mkdir -p %buildroot/%tvtuner_launcher cp %{SOURCE1} %buildroot/%tvtuner_launcher/ # menu install -pD -m 644 %name-16.png %buildroot/%_miconsdir/%name.png install -pD -m 644 %name-32.png %buildroot/%_iconsdir/%name.png install -pD -m 644 %name-48.png %buildroot/%_liconsdir/%name.png %files %doc AUTHORS COPYING INSTALL FAQfr-xdtv TODO %doc README README.dvb README.record README.bs README.ffmpeg README.streaming %doc README.bsd README.gentoo README.xvid README.buildme README.lirc %doc README.deinterlace README.plugins ChangeLog lisez-moi xdtvrc.sample %doc lircrc.miro.sample lircrc.hauppauge.sample lircrc.animax.sample %doc lircrc.WinfastTV2000.sample %dir %_sysconfdir/%name %_sysconfdir/%name/%{name}_wizard-en.conf %_sysconfdir/%name/%{name}_wizard-en-UTF8.conf %_bindir/%name %_bindir/%{name}_cmd %_bindir/%{name}_wizard %_bindir/%{name}_scantv %_bindir/%{name}_alevt-cap %_bindir/%{name}_alevt-capall %_bindir/%{name}_alevt-date %_bindir/%{name}_v4l-conf %_bindir/%{name}_scan.sh %_bindir/%{name}_record.sh %_bindir/%{name}_makedvd.sh %_man1dir/* %_datadir/%name/icons/* %_x11appconfdir/* #_menudir/%name #_menudir/%{name}_wizard %_iconsdir/%name.png %_miconsdir/%name.png %_liconsdir/%name.png %_desktopdir/*.desktop %files -n %{name}-dummy %files -n libalevt %_libdir/*.so.* #exclude %_libdir/libalevt.la #exclude %_libdir/libalevt.a %files -n libalevt-devel %_includedir/* %_libdir/*.so %files OSD-font %dir %_x11fontsdir/xdtv %_x11fontsdir/xdtv/* %post -n libalevt %post_ldconfig %postun -n libalevt %postun_ldconfig %post OSD-font %_sbindir/chkfontpath -q --add %_x11fontsdir/%name ||: %postun OSD-font if [ "$1" = "0" ]; then %_sbindir/chkfontpath -q --remove %_x11fontsdir/%name ||: fi %changelog * Sun May 27 2007 Hihin Ruslan 2.4.0.-alt0.3.cvs20070519 - add xdtv-2.4.cvs20070519-right.patch * Sun May 20 2007 Hihin Ruslan 2.4.0.cvs20070519-alt0.1 - cvs version * Thu May 17 2007 Hihin Ruslan 2.4.0-alt2.4 - add --enable-mmx * Tue May 08 2007 Hihin Ruslan 2.4.0-alt2.3 - correct xdtv.desktop * Mon May 07 2007 Hihin Ruslan 2.4.0-alt2.2 - correct xdtv.desktop * Sun Mar 11 2007 Hihin Ruslan 2.4.0-alt2.1 - correct xdtv-2.4.0-alevt.patch * Sun Feb 25 2007 Hihin Ruslan 2.4.0-alt2 - new version - add dynamic libalevt.so - patch ffmpeg-record from Alexey V. Novikov - add key --with-external-ffmpeg - correct spec * Sat Sep 23 2006 Hihin Ruslan 2.4.0-alt1.pre0 - first version for ALT-Linux * Sat Jul 22 2006 Hihin Ruslan 2.4.0pre0-alt1a - add menu and desktop * Wed Jul 19 2006 Sergei Epiphanov 2.4.0pre0-alt1 - Updated version to 2.4.0pre0 - Cleanup spec * Thu Dec 22 2005 Sir Pingus 2.3.0-1mdk - 2.3.0 - review all the spec: now -with / without can be use with rpmbuild