File kdvdauth.spec of Package kdvdauth
# Copyright (c) 2007-2009 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de
%define _prefix /opt/kde3
Name: kdvdauth
Version: 0.9.2
Release: 1
License: GPL-2.0
Summary: DVD authoring KDE interface
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: http://sourceforge.net/projects/kdvdauth/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Source: %{name}-9.2.0.tar.bz2
Patch0: %{name}-gcc43.patch
Patch1: %{name}-deprecate-update-desktop-files.patch
BuildRequires: gcc-c++ libtool autoconf automake
%if 0%{?suse_version} < 1600
BuildRequires: gamin-devel
%endif
BuildRequires: kdelibs3-devel
BuildRequires: libusb-devel
BuildRequires: libxine-devel
BuildRequires: qt3-devel libnsl-devel
%if %suse_version > 1210
BuildRequires: libavutil-devel
%endif
Requires: dvdauthor
Requires: lame
Requires: mjpegtools
Requires: transcode
#BuildRequires: nvidia-vdpau-devel
%description
DVD authoring KDE interface.
%prep
%setup -q -n %{name}-9.2.0
%patch -P 0 -p1
%patch -P 1 -p1
%__sed -i -e 's|ldconfig -p|/sbin/ldconfig -p|g' \
src/winmainspe.cpp
sed -i 1i\ '#include <unistd.h>' src/winmainspe.cpp
%build
export CXXFLAGS="$RPM_OPT_FLAGS -fpermissive"
export CFLAGS="$RPM_OPT_FLAGS -fpermissive"
%configure \
%ifarch x86_64 aarch64
--enable-libsuffix=64
%endif
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Utilities/kdvdauth.desktop %{buildroot}/opt/kde3/share/applications/kde/kdvdauth.desktop
%find_lang %{name}
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog TODO INSTALL NEWS
%{_bindir}/%{name}
%{_bindir}/%{name}_client
%dir %{_datadir}/apps/%{name}
%{_datadir}/apps/%{name}/*
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%changelog