]>
Commit | Line | Data |
---|---|---|
013ba9d8 | 1 | # TODO: |
ddbadbbb | 2 | # - make -gui subpackages (wxWidgets and Qt4 deps) |
14fe0e91 | 3 | # - boost autodetection fails ($BOOSTLIBDIR empty), so all boost libs must be passed --with-boost-xxx=xxxx |
c8767e1e | 4 | # |
2cfbf297 | 5 | # Conditional build |
f1149835 | 6 | %bcond_with verbose # verbose build (V=1) |
ddbadbbb TP |
7 | %bcond_without qt # disable GUI build (Qt4 deps) |
8 | %bcond_without wx # disable GUI build (wxWigets deps) | |
2cfbf297 | 9 | # |
013ba9d8 | 10 | Summary: Matroska video utilities |
e8a78d12 | 11 | Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska |
013ba9d8 | 12 | Name: mkvtoolnix |
035ba3db JR |
13 | Version: 7.9.0 |
14 | Release: 1 | |
013ba9d8 KK |
15 | License: GPL v2 |
16 | Group: Applications/Multimedia | |
995cc3d9 | 17 | Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz |
035ba3db | 18 | # Source0-md5: b73789734f7ca3041473ad905c89143f |
783cfec2 | 19 | Patch0: %{name}-init_locales.patch |
013ba9d8 | 20 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
45ab0631 | 21 | %{?with_qt:BuildRequires: Qt5Gui-devel} |
15b4db1c | 22 | BuildRequires: boost-devel >= 1.36 |
ff3a8c9b | 23 | BuildRequires: bzip2-devel |
013ba9d8 KK |
24 | BuildRequires: expat-devel |
25 | BuildRequires: flac-devel | |
3e3af859 | 26 | BuildRequires: gettext-tools |
15b4db1c | 27 | BuildRequires: libebml-devel >= 1.2.0 |
e53fced4 | 28 | BuildRequires: libmagic-devel |
15b4db1c | 29 | BuildRequires: libmatroska-devel >= 1.1.0 |
013ba9d8 KK |
30 | BuildRequires: libogg-devel |
31 | BuildRequires: libvorbis-devel | |
355f13a2 KK |
32 | BuildRequires: lzo-devel |
33 | BuildRequires: pcre-cxx-devel | |
7c0e7904 KK |
34 | %if %{with qt} |
35 | BuildRequires: pkgconfig | |
45ab0631 | 36 | BuildRequires: qt5-build >= 4.3.3-3 |
7c0e7904 | 37 | %endif |
22a61958 | 38 | BuildRequires: ruby-rake |
c70ffc8a | 39 | BuildRequires: ruby-modules |
8503947c | 40 | %{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0} |
ff3a8c9b | 41 | BuildRequires: zlib-devel |
013ba9d8 KK |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | Matroska video utilities. | |
46 | ||
f9732eee JR |
47 | %description -l pl.UTF-8 |
48 | Narzędzia do filmów w formacie Matroska. | |
a12785d3 | 49 | |
013ba9d8 KK |
50 | %prep |
51 | %setup -q | |
aaf43ce1 | 52 | %patch0 -p1 |
013ba9d8 KK |
53 | |
54 | %build | |
2cfbf297 | 55 | %configure \ |
15b4db1c | 56 | --docdir=%{_datadir}/%{name} \ |
ddbadbbb | 57 | --enable-gui \ |
608ac9d5 | 58 | --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \ |
59 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ | |
783cfec2 KK |
60 | --with-boost-filesystem=boost_filesystem \ |
61 | --with-boost-regex=boost_regex \ | |
14fe0e91 | 62 | --with-boost-system=boost_system \ |
45ab0631 JR |
63 | %{?with_qt:--with-moc=/usr/bin/moc-qt5} \ |
64 | %{?with_qt:--with-uic=/usr/bin/uic-qt5} \ | |
c70ffc8a KK |
65 | %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \ |
66 | --without-curl | |
8503947c | 67 | |
15b4db1c | 68 | rake %{?with_verbose:V=1} |
013ba9d8 KK |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
15b4db1c | 73 | rake install \ |
14fe0e91 | 74 | INSTALL="install -cp" \ |
013ba9d8 KK |
75 | DESTDIR=$RPM_BUILD_ROOT |
76 | ||
519d22a2 KK |
77 | %find_lang %{name} |
78 | ||
013ba9d8 KK |
79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
519d22a2 | 82 | %files -f %{name}.lang |
013ba9d8 | 83 | %defattr(644,root,root,755) |
7ca3b5b0 | 84 | %doc AUTHORS ChangeLog README.md TODO |
013ba9d8 | 85 | %attr(755,root,root) %{_bindir}/* |
783cfec2 KK |
86 | %dir %{_datadir}/%{name} |
87 | %dir %{_datadir}/%{name}/guide | |
88 | %{_datadir}/%{name}/guide/en | |
da5ff19f | 89 | %lang(es) %{_datadir}/%{name}/guide/es |
1635467e | 90 | %lang(eu) %{_datadir}/%{name}/guide/eu |
a13533ca | 91 | %lang(nl) %{_datadir}/%{name}/guide/nl |
783cfec2 | 92 | %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN |
14fe0e91 ER |
93 | %{_datadir}/mime/packages/mkvtoolnix.xml |
94 | %{_desktopdir}/mkvinfo.desktop | |
95 | %{_desktopdir}/mkvmergeGUI.desktop | |
da5ff19f | 96 | %{_iconsdir}/hicolor/*/apps/mkvextract.png |
14fe0e91 | 97 | %{_iconsdir}/hicolor/*/apps/mkvinfo.png |
da5ff19f | 98 | %{_iconsdir}/hicolor/*/apps/mkvmerge.png |
14fe0e91 | 99 | %{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png |
da5ff19f | 100 | %{_iconsdir}/hicolor/*/apps/mkvpropedit.png |
013ba9d8 | 101 | %{_mandir}/man1/* |
a13533ca | 102 | %lang(de) %{_mandir}/de/man1/* |
783cfec2 | 103 | %lang(ja) %{_mandir}/ja/man1/* |
14fe0e91 | 104 | %lang(nl) %{_mandir}/nl/man1/* |
b0ab4391 | 105 | %lang(uk) %{_mandir}/uk/man1/* |
783cfec2 | 106 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* |