]>
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 |
61dd602f JR |
12 | Version: 10.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 |
61dd602f | 17 | # Source0-md5: ab7fc3646f00467acafbde5ad9317320 |
783cfec2 | 18 | Patch0: %{name}-init_locales.patch |
013ba9d8 | 19 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
45ab0631 | 20 | %{?with_qt:BuildRequires: Qt5Gui-devel} |
d553176b | 21 | BuildRequires: autoconf |
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 |
ff3a8c9b | 40 | BuildRequires: zlib-devel |
013ba9d8 KK |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | Matroska video utilities. | |
45 | ||
f9732eee JR |
46 | %description -l pl.UTF-8 |
47 | Narzędzia do filmów w formacie Matroska. | |
a12785d3 | 48 | |
013ba9d8 KK |
49 | %prep |
50 | %setup -q | |
aaf43ce1 | 51 | %patch0 -p1 |
013ba9d8 KK |
52 | |
53 | %build | |
d553176b | 54 | %{__autoconf} |
2cfbf297 | 55 | %configure \ |
15b4db1c | 56 | --docdir=%{_datadir}/%{name} \ |
608ac9d5 | 57 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ |
783cfec2 KK |
58 | --with-boost-filesystem=boost_filesystem \ |
59 | --with-boost-regex=boost_regex \ | |
14fe0e91 | 60 | --with-boost-system=boost_system \ |
45ab0631 JR |
61 | %{?with_qt:--with-moc=/usr/bin/moc-qt5} \ |
62 | %{?with_qt:--with-uic=/usr/bin/uic-qt5} \ | |
61dd602f | 63 | --with-docbook-xsl-root=/usr/share/sgml/docbook/xsl-stylesheets |
8503947c | 64 | |
61dd602f | 65 | LC_ALL="C.UTF-8" rake %{?_smp_mflags} %{?with_verbose:V=1} |
013ba9d8 KK |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
65805632 | 70 | LC_ALL="C.UTF-8" rake install \ |
14fe0e91 | 71 | INSTALL="install -cp" \ |
013ba9d8 KK |
72 | DESTDIR=$RPM_BUILD_ROOT |
73 | ||
04bac1bf JR |
74 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin} |
75 | ||
519d22a2 KK |
76 | %find_lang %{name} |
77 | ||
013ba9d8 KK |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
519d22a2 | 81 | %files -f %{name}.lang |
013ba9d8 | 82 | %defattr(644,root,root,755) |
8e95c120 | 83 | %doc AUTHORS ChangeLog README.md |
013ba9d8 | 84 | %attr(755,root,root) %{_bindir}/* |
14fe0e91 ER |
85 | %{_datadir}/mime/packages/mkvtoolnix.xml |
86 | %{_desktopdir}/mkvinfo.desktop | |
5f264721 | 87 | %{_desktopdir}/mkvtoolnix-gui.desktop |
da5ff19f | 88 | %{_iconsdir}/hicolor/*/apps/mkvextract.png |
14fe0e91 | 89 | %{_iconsdir}/hicolor/*/apps/mkvinfo.png |
da5ff19f | 90 | %{_iconsdir}/hicolor/*/apps/mkvmerge.png |
5f264721 | 91 | %{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png |
da5ff19f | 92 | %{_iconsdir}/hicolor/*/apps/mkvpropedit.png |
013ba9d8 | 93 | %{_mandir}/man1/* |
8e95c120 | 94 | %lang(ca) %{_mandir}/ca/man1/* |
a13533ca | 95 | %lang(de) %{_mandir}/de/man1/* |
8e95c120 | 96 | %lang(es) %{_mandir}/es/man1/* |
783cfec2 | 97 | %lang(ja) %{_mandir}/ja/man1/* |
8e95c120 | 98 | %lang(ko) %{_mandir}/ko/man1/* |
14fe0e91 | 99 | %lang(nl) %{_mandir}/nl/man1/* |
8e95c120 | 100 | %lang(pl) %{_mandir}/pl/man1/* |
b0ab4391 | 101 | %lang(uk) %{_mandir}/uk/man1/* |
783cfec2 | 102 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* |