]>
Commit | Line | Data |
---|---|---|
013ba9d8 | 1 | # TODO: |
61dd602f | 2 | # - make -gui subpackages (Qt4 deps) |
c8767e1e | 3 | # |
2cfbf297 | 4 | # Conditional build |
f1149835 | 5 | %bcond_with verbose # verbose build (V=1) |
ddbadbbb | 6 | %bcond_without qt # disable GUI build (Qt4 deps) |
2cfbf297 | 7 | # |
013ba9d8 | 8 | Summary: Matroska video utilities |
e8a78d12 | 9 | Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska |
013ba9d8 | 10 | Name: mkvtoolnix |
73e01a6a | 11 | Version: 20.0.0 |
36af1b57 | 12 | Release: 1 |
013ba9d8 KK |
13 | License: GPL v2 |
14 | Group: Applications/Multimedia | |
995cc3d9 | 15 | Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz |
73e01a6a | 16 | # Source0-md5: 87a7ea4b6ace3cf954f86108a7d41a0f |
783cfec2 | 17 | Patch0: %{name}-init_locales.patch |
013ba9d8 | 18 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
53ebd695 | 19 | %if %{with qt} |
73e01a6a JR |
20 | BuildRequires: Qt5Concurrent-devel >= 5.3.0 |
21 | BuildRequires: Qt5Gui-devel >= 5.3.0 | |
22 | BuildRequires: Qt5Multimedia-devel >= 5.3.0 | |
23 | BuildRequires: cmark-devel | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: qt5-build >= 5.3.0 | |
26 | BuildRequires: qt5-linguist >= 5.3.0 | |
53ebd695 | 27 | %endif |
d553176b | 28 | BuildRequires: autoconf |
73e01a6a | 29 | BuildRequires: boost-devel >= 1.49.0 |
ff3a8c9b | 30 | BuildRequires: bzip2-devel |
53ebd695 | 31 | BuildRequires: docbook-style-xsl |
013ba9d8 | 32 | BuildRequires: flac-devel |
3e3af859 | 33 | BuildRequires: gettext-tools |
73e01a6a | 34 | BuildRequires: libebml-devel >= 1.3.5 |
e53fced4 | 35 | BuildRequires: libmagic-devel |
73e01a6a | 36 | BuildRequires: libmatroska-devel >= 1.4.8 |
013ba9d8 KK |
37 | BuildRequires: libogg-devel |
38 | BuildRequires: libvorbis-devel | |
355f13a2 | 39 | BuildRequires: lzo-devel |
73e01a6a JR |
40 | BuildRequires: po4a |
41 | BuildRequires: pugixml-devel | |
c70ffc8a | 42 | BuildRequires: ruby-modules |
73e01a6a | 43 | BuildRequires: ruby-rake |
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 \ |
73e01a6a | 60 | %{?with_qt:LCONVERT=/usr/bin/lconvert-qt5} \ |
15b4db1c | 61 | --docdir=%{_datadir}/%{name} \ |
608ac9d5 | 62 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ |
45ab0631 JR |
63 | %{?with_qt:--with-moc=/usr/bin/moc-qt5} \ |
64 | %{?with_qt:--with-uic=/usr/bin/uic-qt5} \ | |
61dd602f | 65 | --with-docbook-xsl-root=/usr/share/sgml/docbook/xsl-stylesheets |
8503947c | 66 | |
61dd602f | 67 | LC_ALL="C.UTF-8" rake %{?_smp_mflags} %{?with_verbose:V=1} |
013ba9d8 KK |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
65805632 | 72 | LC_ALL="C.UTF-8" rake install \ |
14fe0e91 | 73 | INSTALL="install -cp" \ |
013ba9d8 KK |
74 | DESTDIR=$RPM_BUILD_ROOT |
75 | ||
04bac1bf JR |
76 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin} |
77 | ||
519d22a2 KK |
78 | %find_lang %{name} |
79 | ||
013ba9d8 KK |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
519d22a2 | 83 | %files -f %{name}.lang |
013ba9d8 | 84 | %defattr(644,root,root,755) |
73e01a6a | 85 | %doc AUTHORS README.md NEWS.md |
013ba9d8 | 86 | %attr(755,root,root) %{_bindir}/* |
36af1b57 JR |
87 | %dir %{_datadir}/mkvtoolnix |
88 | %dir %{_datadir}/mkvtoolnix/sounds | |
89 | %{_datadir}/mkvtoolnix/sounds/finished-1.ogg | |
90 | %{_datadir}/mkvtoolnix/sounds/finished-2.ogg | |
91 | %{_datadir}/mkvtoolnix/sounds/finished-3.ogg | |
14fe0e91 | 92 | %{_datadir}/mime/packages/mkvtoolnix.xml |
36af1b57 JR |
93 | %{_desktopdir}/org.bunkus.mkvinfo.desktop |
94 | %{_desktopdir}/org.bunkus.mkvtoolnix-gui.desktop | |
da5ff19f | 95 | %{_iconsdir}/hicolor/*/apps/mkvextract.png |
14fe0e91 | 96 | %{_iconsdir}/hicolor/*/apps/mkvinfo.png |
da5ff19f | 97 | %{_iconsdir}/hicolor/*/apps/mkvmerge.png |
5f264721 | 98 | %{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png |
da5ff19f | 99 | %{_iconsdir}/hicolor/*/apps/mkvpropedit.png |
013ba9d8 | 100 | %{_mandir}/man1/* |
8e95c120 | 101 | %lang(ca) %{_mandir}/ca/man1/* |
a13533ca | 102 | %lang(de) %{_mandir}/de/man1/* |
8e95c120 | 103 | %lang(es) %{_mandir}/es/man1/* |
783cfec2 | 104 | %lang(ja) %{_mandir}/ja/man1/* |
8e95c120 | 105 | %lang(ko) %{_mandir}/ko/man1/* |
14fe0e91 | 106 | %lang(nl) %{_mandir}/nl/man1/* |
8e95c120 | 107 | %lang(pl) %{_mandir}/pl/man1/* |
b0ab4391 | 108 | %lang(uk) %{_mandir}/uk/man1/* |
783cfec2 | 109 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* |