File mkvtoolnix.spec of Package mkvtoolnix
#
# spec file for package mkvtoolnix
#
# Copyright (c) 2012 SUSE LINUX Products 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: 5.8.0
Release: 0
Summary: Tools to Create, Alter, and Inspect Matroska Files
License: GPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://www.bunkus.org/videotools/mkvtoolnix/
Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-%{version}.tar.bz2
BuildRequires: boost-devel >= 1.46
BuildRequires: file-devel
BuildRequires: gcc-c++ >= 4.6
BuildRequires: libebml-devel >= 1.2.2
BuildRequires: libmatroska-devel >= 1.3.0
BuildRequires: lzo-devel
BuildRequires: ruby
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(libcurl)
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
#
BuildRequires: wxWidgets-devel
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
%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
%configure --without-build-timestamp --docdir=%{_docdir}/%{name}
./drake %{?_smp_mflags} V=1
%install
./drake install DESTDIR=%{buildroot}
install -pm 0644 AUTHORS ChangeLog COPYING README %{buildroot}%{_docdir}/%{name}
cp -a examples %{buildroot}%{_docdir}/%{name}
# 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
%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 (0644, root, root, 0755)
%{_docdir}/%{name}
%attr(0755,root,root) %{_bindir}/mkvextract
%attr(0755,root,root) %{_bindir}/mkvinfo
%attr(0755,root,root) %{_bindir}/mkvmerge
%attr(0755,root,root) %{_bindir}/mmg
%attr(0755,root,root) %{_bindir}/mkvpropedit
%{_datadir}/applications/mkvinfo.desktop
%{_datadir}/applications/mkvmergeGUI.desktop
%{_datadir}/icons/hicolor/*/apps/mkvextract.png
%{_datadir}/icons/hicolor/*/apps/mkvinfo.png
%{_datadir}/icons/hicolor/*/apps/mkvmerge.png
%{_datadir}/icons/hicolor/*/apps/mkvmergeGUI.png
%{_datadir}/icons/hicolor/*/apps/mkvpropedit.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/mmg.1%{ext_man}
%{_mandir}/man1/mkvpropedit.1%{ext_man}
%changelog