# Note that this is NOT a relocatable package
Name:           dvd95
Version:        1.6p0
Release:        1%{?dist}
Summary:        A dvd9 to dvd5 converter using GNOME UI
Group:          Applications/Multimedia
License:        GPL
URL:            http://dvd95.sourceforge.net/
Packager: JF COULON <jf-coulon@users.sourceforge.net>
Source:         %{name}-%{version}.tar.gz
BuildRequires:  libgnomeui-devel, libdvdread-devel >= 0.9.7, libmpeg2-devel >= 0.5.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: mencoder >= 1.0, mplayer >= 1.0, ffmpeg >= 0.4.9
Requires: libdvdread >= 0.9.7, libmpeg2 >= 0.5.1

%description
DVD95 is an gnome application to convert DVD9 to DVD5 (4,7Gigas), AVI or PSP files.
It need no additionnals packages, an onboard version of vamps and dvdauthor
is used, to be as fast as possible. Interface is pretty simple yo use.
Shrinking factor may be computed for best results, or an adaptive
compression ratio method may be used.
Dvd can be converted to file tree or iso file. Result can be seen
through xine, vlc, or mplayer. Burning is achieved by third party software (k3b).
DVD95 support two copy modes :
 - Menus less, one video tiltle set, multiple audios and subtiltles.
 - With menus, one video tiltle set, multiple audios and subtiltles.
DVD95 support simples profiles to encode :
 - AVI (MPEG4 and X264) files using mencoder,mplayer.
 - PSP (MPEG4) files using ffmpeg.

See the file COPYING for license details.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
make %{?_smp_mflags}

%install
#------------- ab hier bald unnuetz -------------
perl -pi -e "s|MOD_PATH = /|MOD_PATH = $RPM_BUILD_ROOT|" */Makefile
#------------- bis hier bald unnuetz ------------
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
    MOD_PATH=$RPM_BUILD_ROOT%{_libdir}/%{name} \
    pkgdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \
    mandir=$RPM_BUILD_ROOT%{_mandir}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/*
%{_datadir}/locale/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/dvd95.desktop

%changelog
* Sun Jul 22 2007 J.F. COULON <jf-coulon@users.sourceforge.net>
- bump up to 1.2p1
- adjust build requirements to F7

* Thu Mar  2 2006 J.F. COULON <jf-coulon@users.sourceforge.net>
- Wrote this specfile; first build
