]>
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 |
d553176b | 20 | Patch1: x32.patch |
013ba9d8 | 21 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
45ab0631 | 22 | %{?with_qt:BuildRequires: Qt5Gui-devel} |
d553176b | 23 | BuildRequires: autoconf |
15b4db1c | 24 | BuildRequires: boost-devel >= 1.36 |
ff3a8c9b | 25 | BuildRequires: bzip2-devel |
013ba9d8 KK |
26 | BuildRequires: expat-devel |
27 | BuildRequires: flac-devel | |
3e3af859 | 28 | BuildRequires: gettext-tools |
15b4db1c | 29 | BuildRequires: libebml-devel >= 1.2.0 |
e53fced4 | 30 | BuildRequires: libmagic-devel |
15b4db1c | 31 | BuildRequires: libmatroska-devel >= 1.1.0 |
013ba9d8 KK |
32 | BuildRequires: libogg-devel |
33 | BuildRequires: libvorbis-devel | |
355f13a2 KK |
34 | BuildRequires: lzo-devel |
35 | BuildRequires: pcre-cxx-devel | |
7c0e7904 KK |
36 | %if %{with qt} |
37 | BuildRequires: pkgconfig | |
45ab0631 | 38 | BuildRequires: qt5-build >= 4.3.3-3 |
7c0e7904 | 39 | %endif |
22a61958 | 40 | BuildRequires: ruby-rake |
c70ffc8a | 41 | BuildRequires: ruby-modules |
8503947c | 42 | %{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0} |
ff3a8c9b | 43 | BuildRequires: zlib-devel |
013ba9d8 KK |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | Matroska video utilities. | |
48 | ||
f9732eee JR |
49 | %description -l pl.UTF-8 |
50 | Narzędzia do filmów w formacie Matroska. | |
a12785d3 | 51 | |
013ba9d8 KK |
52 | %prep |
53 | %setup -q | |
aaf43ce1 | 54 | %patch0 -p1 |
013ba9d8 KK |
55 | |
56 | %build | |
d553176b | 57 | %{__autoconf} |
2cfbf297 | 58 | %configure \ |
15b4db1c | 59 | --docdir=%{_datadir}/%{name} \ |
ddbadbbb | 60 | --enable-gui \ |
608ac9d5 | 61 | --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \ |
62 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ | |
783cfec2 KK |
63 | --with-boost-filesystem=boost_filesystem \ |
64 | --with-boost-regex=boost_regex \ | |
14fe0e91 | 65 | --with-boost-system=boost_system \ |
45ab0631 JR |
66 | %{?with_qt:--with-moc=/usr/bin/moc-qt5} \ |
67 | %{?with_qt:--with-uic=/usr/bin/uic-qt5} \ | |
c70ffc8a KK |
68 | %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \ |
69 | --without-curl | |
8503947c | 70 | |
d1e6b0b5 | 71 | LC_ALL="C.UTF-8" rake %{?with_verbose:V=1} |
013ba9d8 KK |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
15b4db1c | 76 | rake install \ |
14fe0e91 | 77 | INSTALL="install -cp" \ |
013ba9d8 KK |
78 | DESTDIR=$RPM_BUILD_ROOT |
79 | ||
519d22a2 KK |
80 | %find_lang %{name} |
81 | ||
013ba9d8 KK |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
519d22a2 | 85 | %files -f %{name}.lang |
013ba9d8 | 86 | %defattr(644,root,root,755) |
7ca3b5b0 | 87 | %doc AUTHORS ChangeLog README.md TODO |
013ba9d8 | 88 | %attr(755,root,root) %{_bindir}/* |
783cfec2 KK |
89 | %dir %{_datadir}/%{name} |
90 | %dir %{_datadir}/%{name}/guide | |
91 | %{_datadir}/%{name}/guide/en | |
da5ff19f | 92 | %lang(es) %{_datadir}/%{name}/guide/es |
1635467e | 93 | %lang(eu) %{_datadir}/%{name}/guide/eu |
a13533ca | 94 | %lang(nl) %{_datadir}/%{name}/guide/nl |
783cfec2 | 95 | %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN |
14fe0e91 ER |
96 | %{_datadir}/mime/packages/mkvtoolnix.xml |
97 | %{_desktopdir}/mkvinfo.desktop | |
98 | %{_desktopdir}/mkvmergeGUI.desktop | |
da5ff19f | 99 | %{_iconsdir}/hicolor/*/apps/mkvextract.png |
14fe0e91 | 100 | %{_iconsdir}/hicolor/*/apps/mkvinfo.png |
da5ff19f | 101 | %{_iconsdir}/hicolor/*/apps/mkvmerge.png |
14fe0e91 | 102 | %{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png |
da5ff19f | 103 | %{_iconsdir}/hicolor/*/apps/mkvpropedit.png |
013ba9d8 | 104 | %{_mandir}/man1/* |
a13533ca | 105 | %lang(de) %{_mandir}/de/man1/* |
783cfec2 | 106 | %lang(ja) %{_mandir}/ja/man1/* |
14fe0e91 | 107 | %lang(nl) %{_mandir}/nl/man1/* |
b0ab4391 | 108 | %lang(uk) %{_mandir}/uk/man1/* |
783cfec2 | 109 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* |