]>
Commit | Line | Data |
---|---|---|
013ba9d8 | 1 | # TODO: |
61dd602f | 2 | # - make -gui subpackages (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 | 7 | %bcond_without qt # disable GUI build (Qt4 deps) |
2cfbf297 | 8 | # |
013ba9d8 | 9 | Summary: Matroska video utilities |
e8a78d12 | 10 | Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska |
013ba9d8 | 11 | Name: mkvtoolnix |
36af1b57 JR |
12 | Version: 14.0.0 |
13 | Release: 1 | |
013ba9d8 KK |
14 | License: GPL v2 |
15 | Group: Applications/Multimedia | |
995cc3d9 | 16 | Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz |
36af1b57 | 17 | # Source0-md5: fd398444333e981d0c2ce084a975e1b3 |
783cfec2 | 18 | Patch0: %{name}-init_locales.patch |
013ba9d8 | 19 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
53ebd695 JR |
20 | %if %{with qt} |
21 | BuildRequires: Qt5Gui-devel | |
22 | BuildRequires: Qt5Concurrent-devel | |
23 | %endif | |
d553176b | 24 | BuildRequires: autoconf |
15b4db1c | 25 | BuildRequires: boost-devel >= 1.36 |
ff3a8c9b | 26 | BuildRequires: bzip2-devel |
53ebd695 | 27 | BuildRequires: docbook-style-xsl |
013ba9d8 KK |
28 | BuildRequires: expat-devel |
29 | BuildRequires: flac-devel | |
3e3af859 | 30 | BuildRequires: gettext-tools |
15b4db1c | 31 | BuildRequires: libebml-devel >= 1.2.0 |
e53fced4 | 32 | BuildRequires: libmagic-devel |
15b4db1c | 33 | BuildRequires: libmatroska-devel >= 1.1.0 |
013ba9d8 KK |
34 | BuildRequires: libogg-devel |
35 | BuildRequires: libvorbis-devel | |
355f13a2 KK |
36 | BuildRequires: lzo-devel |
37 | BuildRequires: pcre-cxx-devel | |
7c0e7904 KK |
38 | %if %{with qt} |
39 | BuildRequires: pkgconfig | |
45ab0631 | 40 | BuildRequires: qt5-build >= 4.3.3-3 |
7c0e7904 | 41 | %endif |
22a61958 | 42 | BuildRequires: ruby-rake |
c70ffc8a | 43 | BuildRequires: ruby-modules |
ff3a8c9b | 44 | BuildRequires: zlib-devel |
013ba9d8 KK |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Matroska video utilities. | |
49 | ||
f9732eee JR |
50 | %description -l pl.UTF-8 |
51 | Narzędzia do filmów w formacie Matroska. | |
a12785d3 | 52 | |
013ba9d8 KK |
53 | %prep |
54 | %setup -q | |
aaf43ce1 | 55 | %patch0 -p1 |
013ba9d8 KK |
56 | |
57 | %build | |
d553176b | 58 | %{__autoconf} |
2cfbf297 | 59 | %configure \ |
15b4db1c | 60 | --docdir=%{_datadir}/%{name} \ |
608ac9d5 | 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} \ | |
61dd602f | 67 | --with-docbook-xsl-root=/usr/share/sgml/docbook/xsl-stylesheets |
8503947c | 68 | |
61dd602f | 69 | LC_ALL="C.UTF-8" rake %{?_smp_mflags} %{?with_verbose:V=1} |
013ba9d8 KK |
70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
65805632 | 74 | LC_ALL="C.UTF-8" rake install \ |
14fe0e91 | 75 | INSTALL="install -cp" \ |
013ba9d8 KK |
76 | DESTDIR=$RPM_BUILD_ROOT |
77 | ||
04bac1bf JR |
78 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin} |
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) |
8e95c120 | 87 | %doc AUTHORS ChangeLog README.md |
013ba9d8 | 88 | %attr(755,root,root) %{_bindir}/* |
36af1b57 JR |
89 | %dir %{_datadir}/mkvtoolnix |
90 | %dir %{_datadir}/mkvtoolnix/sounds | |
91 | %{_datadir}/mkvtoolnix/sounds/finished-1.ogg | |
92 | %{_datadir}/mkvtoolnix/sounds/finished-2.ogg | |
93 | %{_datadir}/mkvtoolnix/sounds/finished-3.ogg | |
14fe0e91 | 94 | %{_datadir}/mime/packages/mkvtoolnix.xml |
36af1b57 JR |
95 | %{_desktopdir}/org.bunkus.mkvinfo.desktop |
96 | %{_desktopdir}/org.bunkus.mkvtoolnix-gui.desktop | |
da5ff19f | 97 | %{_iconsdir}/hicolor/*/apps/mkvextract.png |
14fe0e91 | 98 | %{_iconsdir}/hicolor/*/apps/mkvinfo.png |
da5ff19f | 99 | %{_iconsdir}/hicolor/*/apps/mkvmerge.png |
5f264721 | 100 | %{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png |
da5ff19f | 101 | %{_iconsdir}/hicolor/*/apps/mkvpropedit.png |
013ba9d8 | 102 | %{_mandir}/man1/* |
8e95c120 | 103 | %lang(ca) %{_mandir}/ca/man1/* |
a13533ca | 104 | %lang(de) %{_mandir}/de/man1/* |
8e95c120 | 105 | %lang(es) %{_mandir}/es/man1/* |
783cfec2 | 106 | %lang(ja) %{_mandir}/ja/man1/* |
8e95c120 | 107 | %lang(ko) %{_mandir}/ko/man1/* |
14fe0e91 | 108 | %lang(nl) %{_mandir}/nl/man1/* |
8e95c120 | 109 | %lang(pl) %{_mandir}/pl/man1/* |
b0ab4391 | 110 | %lang(uk) %{_mandir}/uk/man1/* |
783cfec2 | 111 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* |