File makemkv.spec of Package makemkv
#
# spec file for package makemkv
#
# Copyright (c) 2018 SUSE LINUX 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 http://bugs.opensuse.org/
#
%define soname 1
Name: makemkv
Version: 1.12.0
Release: 0
Summary: DVD and Blu-ray to MKV converter and network streamer
License: LGPL-2.1+
Group: Productivity/Multimedia/Video/Editors and Convertors
Url: http://www.%{name}.com/
Source0: %{name}-bin-%{version}.tar.xz
Source1: %{name}-oss-%{version}.tar.xz
ExclusiveArch: i586 x86_64
BuildRequires: ffmpeg-devel < 4.0
BuildRequires: libexpat-devel
BuildRequires: libopenssl-devel
%if 0%{?suse_version} && 0%{?suse_version} >= 1315
BuildRequires: libqt5-qtbase-devel
%else
BuildRequires: libqt4-devel
%endif
BuildRequires: pkg-config
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
Requires: lib%{name}%{soname}
%define description_text_1 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 the video clips from proprietary (and usually encrypted) disc into a set of MKV files, preserving most information but not changing it in any 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.
%define description_text_2 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.
%description
%{description_text_1}
%{description_text_2}
%package -n lib%{name}%{soname}
Summary: Libraries for %{name}
Group: System/Libraries
%description -n lib%{name}%{soname}
%{description_text_1}
%{description_text_2}
This package provides shared libraries for %{name}.
%prep
%setup -q -n %{name}-bin-%{version}
%setup -q -b 1 -n %{name}-oss-%{version}
%build
%configure
%{__make} %{?_smp_mflags}
%{__strip} -s out/%{name}
%install
%{__make} install DESTDIR=%{buildroot}
%suse_update_desktop_file -c %{name} MakeMKV MakeMKV %{name} %{name} AudioVideo AudioVideoEditing
cd ../%{name}-bin-%{version}
%{__mkdir_p} tmp
echo accepted > tmp/eula_accepted
%{__make} install DESTDIR=%{buildroot}
%post -n lib%{name}%{soname}
/sbin/ldconfig
%postun -n lib%{name}%{soname}
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/*
%{_datadir}/MakeMKV/
%{_datadir}/applications/*
%{_datadir}/icons/*
%files -n lib%{name}%{soname}
%defattr(-,root,root,-)
%attr(755,root,root) %{_libdir}/*.so.*
%changelog