2 # - make -gui subpackages (wxWidgets and Qt4 deps)
3 # - boost autodetection fails ($BOOSTLIBDIR empty), so all boost libs must be passed --with-boost-xxx=xxxx
6 %bcond_with verbose # verbose build (V=1)
7 %bcond_without qt # disable GUI build (Qt4 deps)
8 %bcond_without wx # disable GUI build (wxWigets deps)
10 Summary: Matroska video utilities
11 Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska
16 Group: Applications/Multimedia
17 Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.bz2
18 # Source0-md5: 2cd84ff24e1d9217dd3caf170f34e758
19 Patch0: %{name}-init_locales.patch
20 URL: http://www.bunkus.org/videotools/mkvtoolnix/
21 %{?with_qt:BuildRequires: QtGui-devel}
22 BuildRequires: boost-devel >= 1.36
23 BuildRequires: bzip2-devel
24 BuildRequires: expat-devel
25 BuildRequires: flac-devel
26 BuildRequires: gettext-devel
27 BuildRequires: libebml-devel >= 1.2.0
28 BuildRequires: libmagic-devel
29 BuildRequires: libmatroska-devel >= 1.1.0
30 BuildRequires: libogg-devel
31 BuildRequires: libvorbis-devel
32 BuildRequires: lzo-devel
33 BuildRequires: pcre-cxx-devel
35 BuildRequires: pkgconfig
36 BuildRequires: qt4-build >= 4.3.3-3
38 BuildRequires: ruby-rake
39 %{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0}
40 BuildRequires: zlib-devel
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Matroska video utilities.
46 %description -l pl.UTF-8
47 Narzędzia do filmów w formacie Matroska.
55 --docdir=%{_datadir}/%{name} \
57 --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \
58 --%{?with_qt:en}%{!?with_qt:dis}able-qt \
59 --with-boost-filesystem=boost_filesystem \
60 --with-boost-regex=boost_regex \
61 --with-boost-system=boost_system \
62 %{?with_qt:--with-moc=/usr/bin/moc-qt4} \
63 %{?with_qt:--with-uic=/usr/bin/uic-qt4} \
64 %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config}
66 rake %{?with_verbose:V=1}
69 rm -rf $RPM_BUILD_ROOT
72 INSTALL="install -cp" \
73 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
80 %files -f %{name}.lang
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog README TODO
83 %attr(755,root,root) %{_bindir}/*
84 %dir %{_datadir}/%{name}
85 %dir %{_datadir}/%{name}/guide
86 %{_datadir}/%{name}/guide/en
87 %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN
88 %{_datadir}/mime/packages/mkvtoolnix.xml
89 %{_desktopdir}/mkvinfo.desktop
90 %{_desktopdir}/mkvmergeGUI.desktop
91 %{_iconsdir}/hicolor/*/apps/mkvinfo.png
92 %{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png
94 %lang(ja) %{_mandir}/ja/man1/*
95 %lang(nl) %{_mandir}/nl/man1/*
96 %lang(zh_CN) %{_mandir}/zh_CN/man1/*