File mkvtoolnix.spec of Package mkvtoolnix

#
# spec file for package mkvtoolnix
#
# Copyright (c) 2015 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:        8.4.0
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-Web:	http://github.com/mbunkus/mkvtoolnix
#Git-Clone:	git://github.com/mbunkus/mkvtoolnix
Source:         http://bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-%version.tar.xz
BuildRequires:  boost-devel >= 1.46
BuildRequires:  fdupes
BuildRequires:  file-devel
BuildRequires:  gcc-c++ >= 4.7
BuildRequires:  gettext-tools
BuildRequires:  libqt5-qtbase-devel >= 5.2.0
BuildRequires:  ruby >= 1.9
BuildRequires:  xz
BuildRequires:  pkgconfig(flac)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libebml) >= 1.3.1
BuildRequires:  pkgconfig(libmatroska) >= 1.4.2
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(zlib)
# Needed because of scriplets macros and directory ownership check
BuildRequires:  hicolor-icon-theme
# Needed because of scriplets macros
BuildRequires:  desktop-file-utils
BuildRequires:  shared-mime-info

%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, mkvinfo, mkvmerge, and a graphical front-end for them, mmg.

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure --docdir=%{_docdir}/%{name}
./drake %{?_smp_mflags}

%install
./drake install DESTDIR=%{buildroot}
# I guess this is the correct thing to do until bnc#737549 is fixed
rm -rf %{buildroot}%{_mandir}/nl %{buildroot}%{_mandir}/uk %{buildroot}%{_mandir}/zh_CN
%find_lang %{name} --with-man --all-name
%fdupes %buildroot/%_prefix

%post
%icon_theme_cache_post
%mime_database_post
%desktop_database_post

%postun
%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}/mkvinfo
%{_bindir}/mkvmerge
%{_bindir}/mkvpropedit
%{_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/mkvextract.1%{ext_man}
%{_mandir}/man1/mkvinfo.1%{ext_man}
%{_mandir}/man1/mkvmerge.1%{ext_man}
%{_mandir}/man1/mkvpropedit.1%{ext_man}
%{_mandir}/man1/mkvtoolnix-gui.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by