fftv/fftv.spec

Name: fftv
Summary: Advanced television viewing and recording program
Version: 0.8.3
Release: 2
License: GPL
Group: Applications/Multimedia
URL: http://fftv.sourceforge.net/
Description: fftv is an advanced TV viewing and recording program.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Fabrice Bellard <fabrice,bellard$free,fr>
# Upstream: <fftv-devel$lists,sf,net>

%define desktop_vendor rpmforge

Summary: Advanced television viewing and recording program
Name: fftv
Version: 0.8.3
Release: 2%{?dist}
License: GPL
Group: Applications/Multimedia
URL: http://fftv.sourceforge.net/

Source: http://dl.sf.net/fftv/fftv-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: a52dec-devel, faad2-devel, faac-devel, libvorbis-devel
BuildRequires: tcron-devel >= 0.4.3
Requires: xawtv, ffmpeg

%description
fftv is an advanced TV viewing and recording program.

%prep
%setup

%{__cat} <<EOF >fftv.desktop
[Desktop Entry]
Name=FFTV Television Viewer
Comment=Watch television on your computer
Icon=fftv.png
Exec=fftv
Terminal=false
Type=Application
Categories=Application;AudioVideo;
EOF

%build
%configure \
    --x-libraries="%{_prefix}/X11R6/%{_lib}" \
    --disable-mmx \
    --enable-mp3lame \
    --enable-vorbis \
    --enable-a52 \
    --enable-faad \
    --enable-faac \
    --enable-gpl
#   --enable-shared

### FIXME: Make buildsystem use standard autotools directories (Fix upstream please)
%{__perl} -pi.orig -e 's|^(FFTV_SHARE_ICON)=share/(.*)$|$1=$2|;' config.mak

%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__install} -d -m0755 %{buildroot}%{_datadir}/applications
desktop-file-install --vendor %{desktop_vendor} \
    --add-category X-Red-Hat-Base               \
    --dir %{buildroot}%{_datadir}/applications  \
    fftv.desktop

### FIXME: Clean up buildroot to make it co-exist with ffmpeg/ffmpeg-devel (Fix upstream please)
%{__rm} -f %{buildroot}%{_libdir}/vhook/{drawtext,fish,imlib2,null}.so

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changelog* COPYING CREDITS* INSTALL README
%doc doc/*.html doc/*.txt
%doc %{_mandir}/man1/*
%{_bindir}/*
#%{_libdir}/*.so
%{_libdir}/fftv/
%{_libdir}/menu/*
%{_libdir}/vhook/
%{_datadir}/icons/*.png
%{_datadir}/icons/fftv/
%{_datadir}/applications/*.desktop
#%{_includedir}/ffmpeg/

%changelog
* Fri Nov 06 2009 Dag Wieers <dag@wieers.com> - 0.8.3-2
- Rebeuild against faad2 2.7.

* Tue Jan 17 2006 Dag Wieers <dag@wieers.com> - 0.8.3-1
- Updated to release 0.8.3.

* Wed Jun 02 2004 Dag Wieers <dag@wieers.com> - 0.7.9-1
- Updated to release 0.7.9.

* Sun Apr 11 2004 Dag Wieers <dag@wieers.com> - 0.7.5-1
- Updated to release 0.7.5.

* Tue Mar 23 2004 Dag Wieers <dag@wieers.com> - 0.7.4-1
- Updated to release 0.7.4.

* Mon Mar 22 2004 Dag Wieers <dag@wieers.com> - 0.7.3-1
- Updated to release 0.7.3.

* Tue Mar 16 2004 Dag Wieers <dag@wieers.com> - 0.7.2-1
- Updated to release 0.7.2.

* Tue Mar 09 2004 Dag Wieers <dag@wieers.com> - 0.6.9-1
- Updated to release 0.6.9.

* Thu Jan 15 2004 Dag Wieers <dag@wieers.com> - 0.6.4-0
- Initial package. (using DAR)