File ldvd.spec of Package ldvd

# vim: set ts=4 sw=4 et:

Name:           ldvd
Summary:        Video-DVD backup tool with GUI
License: GPL-2.0
Group:          Productivity/Multimedia/Video/Editors and Convertors
URL:            http://ldvd.sourceforge.net/
Version:        2.0.2
Release:        3
Source0:        ldvd-2.0.2.tar.bz2
Source1:        ldvd.desktop
Patch0:         ldvd-ls-sprint-nullbyte.diff
Patch1:         ldvd-lang.diff
Patch2:         ldvd-port_to_gtk2.patch
Vendor:         Packman
Requires:       buffer
Requires:       perl
Requires:       perl-Gtk2
Requires:       transcode
Requires:       dvdauthor
Requires:       mkisofs
Requires:       dvd+rw-tools
Requires:       mjpegtools
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dvdread)

%description
A tool to make backups from a Video-DVD with GUI.

%prep
%setup -q
%patch0
%patch1
%patch2

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CPPFLAGS="$RPM_OPT_FLAGS"
%make_build

%install
%make_install PREFIX=%{_prefix}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/
%suse_update_desktop_file -i %{name}        AudioVideo AudioVideoEditing

%files
%doc README.*
%license COPYING
%{_bindir}/*
%{_datadir}/%{name}-%{version}
%{_datadir}/applications/%{name}.desktop
%config(noreplace) %{_sysconfdir}/%{name}.conf

%changelog