File mkvtoolnix.spec of Package mkvtoolnix
#
# spec file for package mkvtoolnix
#
# Copyright (c) 2011 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.0.1
Release: 0
License: GPLv2+
Summary: Tools to Create, Alter, and Inspect Matroska Files
Url: http://www.bunkus.org/videotools/mkvtoolnix/
Group: Productivity/Multimedia/Other
Source: http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-%{version}.tar.bz2
BuildRequires: boost-devel
BuildRequires: file-devel
BuildRequires: gcc-c++
# Needed because of scriplets macros and directory ownership check
BuildRequires: hicolor-icon-theme
BuildRequires: libebml-devel >= 1.2.2
BuildRequires: libexpat-devel
BuildRequires: libmatroska-devel >= 1.3.0
BuildRequires: lzo-devel
BuildRequires: ruby
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
Requires: hicolor-icon-theme
%if 0%{?suse_version} >= 1140
# 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
%else
BuildRequires: wxGTK-devel
%endif
%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}
# V=1 so post-build-checks can check if a file is compiled without optflags
./drake %{?_smp_mflags} V=1
%install
./drake install DESTDIR=%{buildroot}
%suse_update_desktop_file mkvmergeGUI
%suse_update_desktop_file mkvinfo
install -pm 0644 AUTHORS ChangeLog COPYING README %{buildroot}%{_docdir}/%{name}
install -dm 0755 %{buildroot}%{_docdir}/%{name}/examples
install -pm 0644 examples/* %{buildroot}%{_docdir}/%{name}/examples
%find_lang %{name} --with-man --all-name
%postun
%if 0%{?suse_version} >= 1140
%icon_theme_cache_postun
%desktop_database_postun
%mime_database_postun
%else
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
%endif
%posttrans
%if 0%{?suse_version} >= 1140
%icon_theme_cache_post
%desktop_database_post
%mime_database_post
%else
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
%endif
%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/mkvinfo.png
%{_datadir}/icons/hicolor/*/apps/mkvmergeGUI.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}
%{_mandir}/nl
%{_mandir}/zh_CN
%changelog