]>
Commit | Line | Data |
---|---|---|
013ba9d8 | 1 | # TODO: |
ddbadbbb | 2 | # - make -gui subpackages (wxWidgets and Qt4 deps) |
c8767e1e | 3 | # |
2cfbf297 | 4 | # Conditional build |
f1149835 | 5 | %bcond_with verbose # verbose build (V=1) |
ddbadbbb TP |
6 | %bcond_without qt # disable GUI build (Qt4 deps) |
7 | %bcond_without wx # disable GUI build (wxWigets 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 |
783cfec2 | 12 | Version: 3.2.0 |
f90e52dd | 13 | Release: 1 |
013ba9d8 KK |
14 | License: GPL v2 |
15 | Group: Applications/Multimedia | |
16 | Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.bz2 | |
783cfec2 KK |
17 | # Source0-md5: 9bf31280cb07870771e69de0287dc769 |
18 | Patch0: %{name}-init_locales.patch | |
013ba9d8 | 19 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
7c0e7904 | 20 | %{?with_qt:BuildRequires: QtGui-devel} |
783cfec2 | 21 | BuildRequires: boost-devel >= 1.34 |
ff3a8c9b | 22 | BuildRequires: bzip2-devel |
013ba9d8 KK |
23 | BuildRequires: expat-devel |
24 | BuildRequires: flac-devel | |
519d22a2 | 25 | BuildRequires: gettext-devel |
355f13a2 | 26 | BuildRequires: libebml-devel >= 0.7.7 |
e53fced4 | 27 | BuildRequires: libmagic-devel |
7c0e7904 | 28 | BuildRequires: libmatroska-devel >= 0.8.1 |
013ba9d8 KK |
29 | BuildRequires: libogg-devel |
30 | BuildRequires: libvorbis-devel | |
355f13a2 KK |
31 | BuildRequires: lzo-devel |
32 | BuildRequires: pcre-cxx-devel | |
7c0e7904 KK |
33 | %if %{with qt} |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: qt4-build >= 4.3.3-3 | |
36 | %endif | |
8503947c | 37 | %{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0} |
ff3a8c9b | 38 | BuildRequires: zlib-devel |
013ba9d8 KK |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | Matroska video utilities. | |
43 | ||
f9732eee JR |
44 | %description -l pl.UTF-8 |
45 | Narzędzia do filmów w formacie Matroska. | |
a12785d3 | 46 | |
013ba9d8 KK |
47 | %prep |
48 | %setup -q | |
aaf43ce1 | 49 | %patch0 -p1 |
013ba9d8 KK |
50 | |
51 | %build | |
2cfbf297 | 52 | %configure \ |
ddbadbbb | 53 | --enable-gui \ |
608ac9d5 | 54 | --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \ |
55 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ | |
783cfec2 KK |
56 | --with-boost-filesystem=boost_filesystem \ |
57 | --with-boost-regex=boost_regex \ | |
2f80b240 | 58 | %{?with_qt:--with-moc=/usr/bin/moc-qt4} \ |
8503947c KK |
59 | %{?with_qt:--with-uic=/usr/bin/uic-qt4} \ |
60 | %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} | |
61 | ||
f1149835 KK |
62 | %{__make} \ |
63 | %{?with_verbose:V=1} | |
013ba9d8 KK |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
519d22a2 KK |
71 | %find_lang %{name} |
72 | ||
013ba9d8 KK |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
519d22a2 | 76 | %files -f %{name}.lang |
013ba9d8 | 77 | %defattr(644,root,root,755) |
aaf43ce1 | 78 | %doc AUTHORS ChangeLog README TODO |
013ba9d8 | 79 | %attr(755,root,root) %{_bindir}/* |
783cfec2 KK |
80 | %dir %{_datadir}/%{name} |
81 | %dir %{_datadir}/%{name}/guide | |
82 | %{_datadir}/%{name}/guide/en | |
83 | %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN | |
013ba9d8 | 84 | %{_mandir}/man1/* |
783cfec2 KK |
85 | %lang(ja) %{_mandir}/ja/man1/* |
86 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* |