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