File mkvtoolnix.spec of Package mkvtoolnix
#
# spec file for package mkvtoolnix
#
# Copyright (c) 2016 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/
#
Name: mkvtoolnix
Version: 9.3.1
Release: 0
Summary: Tools to Create, Alter, and Inspect Matroska Files
License: GPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://bunkus.org/videotools/mkvtoolnix/
#Git: http://github.com/mbunkus/mkvtoolnix
Source: https://mkvtoolnix.download/sources/mkvtoolnix-%{version}.tar.xz
# PATCH-OPENSUSE-FIX disable-update-check.patch -- Disable default update check
Patch0: disable-update-check.patch
# PATCH-OPENSUSE-FIX mkvtoolnix-use-system-boost.patch -- Fix includes to use boost from system
Patch1: mkvtoolnix-use-system-boost.patch
BuildRequires: boost-devel >= 1.46
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: file-devel
BuildRequires: gcc-c++ >= 4.8
BuildRequires: gettext-tools
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-qtbase-devel >= 5.2.0
BuildRequires: ruby >= 1.9
BuildRequires: shared-mime-info
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libebml) >= 1.3.4
BuildRequires: pkgconfig(libmatroska) >= 1.4.5
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
%package gui
Summary: Graphical user interface for mkvtoolnix utils
Group: Productivity/Multimedia/Other
Requires: %{name} = %{version}
%description
Tools to create and manipulate Matroska files (extensions .mkv and .mka), a new
container format for audio and video files. Includes command line tools
mkvextract, mkvmerge and mkvpropedit.
%description gui
This package contains the graphical user interface for the mkvtoolnix utils.
It includes mkvtoolnix-gui and also mkvinfo with its graphical user interface.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
# Make sure to use system libs:
rm -rf lib/{boost,libebml,libmatroskas}
%build
%configure
./drake %{?_smp_mflags} V=1
%install
./drake install DESTDIR=%{buildroot}
%find_lang %{name} --all-name
%fdupes %{buildroot}/%{_prefix}
%post gui
%icon_theme_cache_post
%mime_database_post
%desktop_database_post
%postun gui
%desktop_database_postun
%mime_database_postun
%icon_theme_cache_postun
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README.md
%doc examples
%{_bindir}/mkvextract
%{_bindir}/mkvmerge
%{_bindir}/mkvpropedit
%{_mandir}/man1/mkvextract.1%{ext_man}
%{_mandir}/man1/mkvmerge.1%{ext_man}
%{_mandir}/man1/mkvpropedit.1%{ext_man}
%doc %lang(ca) %{_mandir}/ca/man1/mkvextract.1%{ext_man}
%doc %lang(ca) %{_mandir}/ca/man1/mkvmerge.1%{ext_man}
%doc %lang(ca) %{_mandir}/ca/man1/mkvpropedit.1%{ext_man}
%doc %lang(de) %{_mandir}/de/man1/mkvextract.1%{ext_man}
%doc %lang(de) %{_mandir}/de/man1/mkvmerge.1%{ext_man}
%doc %lang(de) %{_mandir}/de/man1/mkvpropedit.1%{ext_man}
%doc %lang(es) %{_mandir}/es/man1/mkvextract.1%{ext_man}
%doc %lang(es) %{_mandir}/es/man1/mkvmerge.1%{ext_man}
%doc %lang(es) %{_mandir}/es/man1/mkvpropedit.1%{ext_man}
%doc %lang(ja) %{_mandir}/ja/man1/mkvextract.1%{ext_man}
%doc %lang(ja) %{_mandir}/ja/man1/mkvmerge.1%{ext_man}
%doc %lang(ja) %{_mandir}/ja/man1/mkvpropedit.1%{ext_man}
%doc %lang(ko) %{_mandir}/ko/man1/mkvextract.1%{ext_man}
%doc %lang(ko) %{_mandir}/ko/man1/mkvmerge.1%{ext_man}
%doc %lang(ko) %{_mandir}/ko/man1/mkvpropedit.1%{ext_man}
%doc %lang(nl) %{_mandir}/nl/man1/mkvextract.1%{ext_man}
%doc %lang(nl) %{_mandir}/nl/man1/mkvmerge.1%{ext_man}
%doc %lang(nl) %{_mandir}/nl/man1/mkvpropedit.1%{ext_man}
%doc %lang(pl) %{_mandir}/pl/man1/mkvextract.1%{ext_man}
%doc %lang(pl) %{_mandir}/pl/man1/mkvmerge.1%{ext_man}
%doc %lang(pl) %{_mandir}/pl/man1/mkvpropedit.1%{ext_man}
%doc %lang(uk) %{_mandir}/uk/man1/mkvextract.1%{ext_man}
%doc %lang(uk) %{_mandir}/uk/man1/mkvmerge.1%{ext_man}
%doc %lang(uk) %{_mandir}/uk/man1/mkvpropedit.1%{ext_man}
%doc %lang(zh_CN) %{_mandir}/zh_CN/man1/mkvextract.1%{ext_man}
%doc %lang(zh_CN) %{_mandir}/zh_CN/man1/mkvmerge.1%{ext_man}
%doc %lang(zh_CN) %{_mandir}/zh_CN/man1/mkvpropedit.1%{ext_man}
%doc %lang(ko) %dir %{_mandir}/ko
%doc %lang(ko) %dir %{_mandir}/ko/man1
%doc %lang(nl) %dir %{_mandir}/nl
%doc %lang(nl) %dir %{_mandir}/nl/man1
%doc %lang(pl) %dir %{_mandir}/pl
%doc %lang(pl) %dir %{_mandir}/pl/man1
%doc %lang(uk) %dir %{_mandir}/uk
%doc %lang(uk) %dir %{_mandir}/uk/man1
%doc %lang(zh_CN) %dir %{_mandir}/zh_CN
%doc %lang(zh_CN) %dir %{_mandir}/zh_CN/man1
%files gui
%defattr(-,root,root)
%{_bindir}/mkvinfo
%{_bindir}/mkvtoolnix-gui
%{_datadir}/applications/mkvinfo.desktop
%{_datadir}/applications/mkvtoolnix-gui.desktop
%{_datadir}/icons/hicolor/*/apps/mkvextract.png
%{_datadir}/icons/hicolor/*/apps/mkvinfo.png
%{_datadir}/icons/hicolor/*/apps/mkvmerge.png
%{_datadir}/icons/hicolor/*/apps/mkvpropedit.png
%{_datadir}/icons/hicolor/*/apps/mkvtoolnix-gui.png
%{_datadir}/mime/packages/mkvtoolnix.xml
%{_mandir}/man1/mkvinfo.1%{ext_man}
%{_mandir}/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(ca) %{_mandir}/ca/man1/mkvinfo.1%{ext_man}
%doc %lang(ca) %{_mandir}/ca/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(de) %{_mandir}/de/man1/mkvinfo.1%{ext_man}
%doc %lang(de) %{_mandir}/de/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(es) %{_mandir}/es/man1/mkvinfo.1.gz
%doc %lang(es) %{_mandir}/es/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(ja) %{_mandir}/ja/man1/mkvinfo.1%{ext_man}
%doc %lang(ja) %{_mandir}/ja/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(ko) %{_mandir}/ko/man1/mkvinfo.1%{ext_man}
%doc %lang(ko) %{_mandir}/ko/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(uk) %{_mandir}/uk/man1/mkvinfo.1%{ext_man}
%doc %lang(uk) %{_mandir}/uk/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(nl) %{_mandir}/nl/man1/mkvinfo.1%{ext_man}
%doc %lang(nl) %{_mandir}/nl/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(pl) %{_mandir}/pl/man1/mkvinfo.1%{ext_man}
%doc %lang(pl) %{_mandir}/pl/man1/mkvtoolnix-gui.1%{ext_man}
%doc %lang(zh_CN) %{_mandir}/zh_CN/man1/mkvinfo.1%{ext_man}
%doc %lang(zh_CN) %{_mandir}/zh_CN/man1/mkvtoolnix-gui.1%{ext_man}
%changelog