2 # - make -gui subpackages (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)
9 Summary: Matroska video utilities
10 Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska
15 Group: Applications/Multimedia
16 Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
17 # Source0-md5: ab7fc3646f00467acafbde5ad9317320
18 Patch0: %{name}-init_locales.patch
19 URL: http://www.bunkus.org/videotools/mkvtoolnix/
21 BuildRequires: Qt5Gui-devel
22 BuildRequires: Qt5Concurrent-devel
24 BuildRequires: autoconf
25 BuildRequires: boost-devel >= 1.36
26 BuildRequires: bzip2-devel
27 BuildRequires: docbook-style-xsl
28 BuildRequires: expat-devel
29 BuildRequires: flac-devel
30 BuildRequires: gettext-tools
31 BuildRequires: libebml-devel >= 1.2.0
32 BuildRequires: libmagic-devel
33 BuildRequires: libmatroska-devel >= 1.1.0
34 BuildRequires: libogg-devel
35 BuildRequires: libvorbis-devel
36 BuildRequires: lzo-devel
37 BuildRequires: pcre-cxx-devel
39 BuildRequires: pkgconfig
40 BuildRequires: qt5-build >= 4.3.3-3
42 BuildRequires: ruby-rake
43 BuildRequires: ruby-modules
44 BuildRequires: zlib-devel
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Matroska video utilities.
50 %description -l pl.UTF-8
51 Narzędzia do filmów w formacie Matroska.
60 --docdir=%{_datadir}/%{name} \
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-docbook-xsl-root=/usr/share/sgml/docbook/xsl-stylesheets
69 LC_ALL="C.UTF-8" rake %{?_smp_mflags} %{?with_verbose:V=1}
72 rm -rf $RPM_BUILD_ROOT
74 LC_ALL="C.UTF-8" rake install \
75 INSTALL="install -cp" \
76 DESTDIR=$RPM_BUILD_ROOT
78 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin}
83 rm -rf $RPM_BUILD_ROOT
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README.md
88 %attr(755,root,root) %{_bindir}/*
89 %{_datadir}/mime/packages/mkvtoolnix.xml
90 %{_desktopdir}/mkvinfo.desktop
91 %{_desktopdir}/mkvtoolnix-gui.desktop
92 %{_iconsdir}/hicolor/*/apps/mkvextract.png
93 %{_iconsdir}/hicolor/*/apps/mkvinfo.png
94 %{_iconsdir}/hicolor/*/apps/mkvmerge.png
95 %{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png
96 %{_iconsdir}/hicolor/*/apps/mkvpropedit.png
98 %lang(ca) %{_mandir}/ca/man1/*
99 %lang(de) %{_mandir}/de/man1/*
100 %lang(es) %{_mandir}/es/man1/*
101 %lang(ja) %{_mandir}/ja/man1/*
102 %lang(ko) %{_mandir}/ko/man1/*
103 %lang(nl) %{_mandir}/nl/man1/*
104 %lang(pl) %{_mandir}/pl/man1/*
105 %lang(uk) %{_mandir}/uk/man1/*
106 %lang(zh_CN) %{_mandir}/zh_CN/man1/*