A new user interface for you!

File makemkv.spec of Package makemkv

Name:    makemkv
Version: 1.10.2
Release: 1
Source0: http://www.makemkv.com/download/makemkv-bin-%{version}.tar.gz
Source1: http://www.makemkv.com/download/makemkv-oss-%{version}.tar.gz
Group:   Productivity/Multimedia/Video/Editors and Convertors
Summary: DVD and Blu-ray to MKV converter and network streamer
#License: Commercial, Mozilla Public License Version 1.1, LGLP 2.1 and later
License: LGPL-2.1+
URL:     http://www.makemkv.com/
BuildRoot: %_tmppath/%name-%version-build

BuildRequires: Mesa-devel ffmpeg-devel
%if 0%{?suse_version}
BuildRequires: pkg-config libopenssl-devel libqt4-devel libexpat-devel update-desktop-files
%if 0%{?fedora}
Provides: libmakemkv.so.1 libdriveio.so.0 libmmbd.so.0
BuildRequires: gcc-c++ pkgconfig openssl-devel qt-devel expat-devel

MakeMKV is your one-click solution to convert video that you own into
free and patents-unencumbered format that can be played everywhere.
MakeMKV is a format converter, otherwise called "transcoder". It converts
set of MKV files, preserving most information but not changing it in any
the video clips from proprietary (and usually encrypted) disc into a
way. The MKV format can store multiple video/audio tracks with all
meta-information and preserve chapters. There are many players that can
play MKV files nearly on all platforms, and there are tools to convert
MKV files to many formats, including DVD and Blu-ray discs.

Additionally MakeMKV can instantly stream decrypted video without
intermediate conversion to wide range of players, so you may watch
Blu-ray and DVD discs with your favorite player on your favorite OS
or on your favorite device.

rm -fr makemkv-bin-%{version}
tar xf %{SOURCE0}
rm -fr makemkv-oss-%{version}
tar xf %{SOURCE1}

cd makemkv-oss-%{version}

cd makemkv-bin-%{version}
install -d %{buildroot}%{_bindir}
%ifarch i386 i486 i586 i686
  install -t %{buildroot}%{_bindir} bin/i386/makemkvcon
%ifarch x86_64
  install -t %{buildroot}%{_bindir} bin/amd64/makemkvcon
install -d %{buildroot}%{_datadir}/MakeMKV
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/default.mmcp.xml
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/makemkv_deu.mo.gz
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/makemkv_jpn.mo.gz
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/makemkv_spa.mo.gz
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/makemkv_ptb.mo.gz
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/makemkv_dut.mo.gz
install -m 644 -t %{buildroot}%{_datadir}/MakeMKV src/share/makemkv_swe.mo.gz
cd ../makemkv-oss-%{version}
install -D -m 644 out/libdriveio.so.0 %{buildroot}%{_libdir}/libdriveio.so.0
install -D -m 644 out/libmakemkv.so.1 %{buildroot}%{_libdir}/libmakemkv.so.1
install -D -m 644 out/libmmbd.so.0 %{buildroot}%{_libdir}/libmmbd.so.0
install -D -m 755 out/makemkv %{buildroot}%{_bindir}/makemkv
install -D -m 644 makemkvgui/share/makemkv.desktop %{buildroot}%{_datadir}/applications/makemkv.desktop
install -D -m 644 makemkvgui/share/icons/16x16/makemkv.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/makemkv.png
install -D -m 644 makemkvgui/share/icons/22x22/makemkv.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/makemkv.png
install -D -m 644 makemkvgui/share/icons/32x32/makemkv.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/makemkv.png
install -D -m 644 makemkvgui/share/icons/64x64/makemkv.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/makemkv.png
install -D -m 644 makemkvgui/share/icons/128x128/makemkv.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/makemkv.png
%if 0%{?suse_version}
  %suse_update_desktop_file -r -G 'MKV Creator & Streamer' makemkv AudioVideo AudioVideoEditing