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