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.xz
18 # Source0-md5: b73789734f7ca3041473ad905c89143f
19 Patch0: %{name}-init_locales.patch
21 URL: http://www.bunkus.org/videotools/mkvtoolnix/
22 %{?with_qt:BuildRequires: Qt5Gui-devel}
23 BuildRequires: autoconf
24 BuildRequires: boost-devel >= 1.36
25 BuildRequires: bzip2-devel
26 BuildRequires: expat-devel
27 BuildRequires: flac-devel
28 BuildRequires: gettext-tools
29 BuildRequires: libebml-devel >= 1.2.0
30 BuildRequires: libmagic-devel
31 BuildRequires: libmatroska-devel >= 1.1.0
32 BuildRequires: libogg-devel
33 BuildRequires: libvorbis-devel
34 BuildRequires: lzo-devel
35 BuildRequires: pcre-cxx-devel
37 BuildRequires: pkgconfig
38 BuildRequires: qt5-build >= 4.3.3-3
40 BuildRequires: ruby-rake
41 BuildRequires: ruby-modules
42 %{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0}
43 BuildRequires: zlib-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Matroska video utilities.
49 %description -l pl.UTF-8
50 Narzędzia do filmów w formacie Matroska.
59 --docdir=%{_datadir}/%{name} \
61 --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \
62 --%{?with_qt:en}%{!?with_qt:dis}able-qt \
63 --with-boost-filesystem=boost_filesystem \
64 --with-boost-regex=boost_regex \
65 --with-boost-system=boost_system \
66 %{?with_qt:--with-moc=/usr/bin/moc-qt5} \
67 %{?with_qt:--with-uic=/usr/bin/uic-qt5} \
68 %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \
71 rake %{?with_verbose:V=1}
74 rm -rf $RPM_BUILD_ROOT
77 INSTALL="install -cp" \
78 DESTDIR=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README.md TODO
88 %attr(755,root,root) %{_bindir}/*
89 %dir %{_datadir}/%{name}
90 %dir %{_datadir}/%{name}/guide
91 %{_datadir}/%{name}/guide/en
92 %lang(es) %{_datadir}/%{name}/guide/es
93 %lang(eu) %{_datadir}/%{name}/guide/eu
94 %lang(nl) %{_datadir}/%{name}/guide/nl
95 %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN
96 %{_datadir}/mime/packages/mkvtoolnix.xml
97 %{_desktopdir}/mkvinfo.desktop
98 %{_desktopdir}/mkvmergeGUI.desktop
99 %{_iconsdir}/hicolor/*/apps/mkvextract.png
100 %{_iconsdir}/hicolor/*/apps/mkvinfo.png
101 %{_iconsdir}/hicolor/*/apps/mkvmerge.png
102 %{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png
103 %{_iconsdir}/hicolor/*/apps/mkvpropedit.png
105 %lang(de) %{_mandir}/de/man1/*
106 %lang(ja) %{_mandir}/ja/man1/*
107 %lang(nl) %{_mandir}/nl/man1/*
108 %lang(uk) %{_mandir}/uk/man1/*
109 %lang(zh_CN) %{_mandir}/zh_CN/man1/*