File devede.spec of Package devede

# spec file for package devede
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           devede
Summary:        A video DVD creator
License:        GPL-3.0+
Group:          Productivity/Multimedia/Video/Editors and Convertors
%define		gtk2_version %(rpm -q --qf '%{VERSION}' gtk2-devel | cut -d. -f1-2)
Version:        3.23.0
Release:        0
Source0:        devede-%{version}.tar.bz2
Source1:        devede-icons.tar.bz2
Source2:        devede-backgrounds.tar.bz2
Source3:        devede.desktop
Patch0:         devede-widescreen_menu.patch
Patch1:         devede-install_lang.patch
Patch2:         devede-size.patch
Requires:       MPlayer
Requires:       devede-lang = %{version}-%{release}
Requires:       dvdauthor
Requires:       /usr/bin/mkisofs
Requires:       python-base
Requires:       python-gtk
Requires:       vcdimager
Recommends:     ffmpeg
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Prefix:         /usr

DeVeDe is a program to create video DVDs and CDs (VCD, sVCD or CVD), suitables for home players,
from any number of video files, in any of the formats supported by Mplayer.
The big advantage over other utilities is that it only needs Mplayer, Mencoder, DVDAuthor, VCDImager and MKisofs
(well, and Python, PyGTK and PyGlade), so its dependencies are really small.

Author: Sergio Costas <>


%setup -q -n devede-%{version}
cp -f %{S:3} devede.desktop
tar -xvjf %{S:1}
pushd pixmaps/backgrounds
rm default_bg.png
tar -xvjf %{S:2}
find . -type f -exec sed -i -e 's|lib="gtk+" version="2.14"|lib="gtk+" version="%{gtk2_version}"|g' {} \;
find . -type f -exec sed -i -e 's|lib="gtk+" version="2.16"|lib="gtk+" version="%{gtk2_version}"|g' {} \;
sed -i -e 's|/usr/share/doc/devede|%{_docdir}/devede|g'
dos2unix docs/html/*.html


./ \
	--uninstall=no \
	--targeted=yes \
	--DESTDIR=%{buildroot} \
	--prefix=%{_prefix} \
	--libdir=%{_prefix}/lib \

install -D -m644 devede-64.png %buildroot%{_datadir}/icons/hicolor/64x64/apps/devede.png
install -D -m644 devede-48.png %buildroot%{_datadir}/icons/hicolor/48x48/apps/devede.png
install -D -m644 devede-32.png %buildroot%{_datadir}/icons/hicolor/32x32/apps/devede.png

rm -rf %buildroot%{_datadir}/pixmaps
rm -f %buildroot%{_docdir}/devede/html/menu.html~

%fdupes %buildroot

%find_lang devede

rm -rf %buildroot

%doc %{_docdir}/devede

%files lang -f devede.lang