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