]>
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 |
698c03be | 11 | Version: 2.2.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 | |
698c03be | 16 | # Source0-md5: 57397800c6be11db0b62e7285c8dab82 |
aaf43ce1 | 17 | Patch0: %{name}-help.patch |
013ba9d8 | 18 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
ff3a8c9b | 19 | BuildRequires: bzip2-devel |
013ba9d8 KK |
20 | BuildRequires: expat-devel |
21 | BuildRequires: flac-devel | |
355f13a2 | 22 | BuildRequires: libebml-devel >= 0.7.7 |
a6726b9a | 23 | BuildRequires: libmatroska-devel >= 0.8.0 |
013ba9d8 KK |
24 | BuildRequires: libogg-devel |
25 | BuildRequires: libvorbis-devel | |
355f13a2 KK |
26 | BuildRequires: lzo-devel |
27 | BuildRequires: pcre-cxx-devel | |
2f80b240 | 28 | %{?with_qt:BuildRequires: qt4-build >= 4.3.3-3} |
c8767e1e | 29 | BuildRequires: sed >= 4.0 |
ddbadbbb | 30 | %{?with_wx:BuildRequires: wxGTK2-devel >= 2.6.0} |
ff3a8c9b | 31 | BuildRequires: zlib-devel |
013ba9d8 KK |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | Matroska video utilities. | |
36 | ||
f9732eee JR |
37 | %description -l pl.UTF-8 |
38 | Narzędzia do filmów w formacie Matroska. | |
a12785d3 | 39 | |
013ba9d8 KK |
40 | %prep |
41 | %setup -q | |
aaf43ce1 | 42 | %patch0 -p1 |
013ba9d8 KK |
43 | |
44 | %build | |
ddbadbbb | 45 | %if %{with wx} |
c8767e1e | 46 | %{__sed} -i 's,wx-config,wx-gtk2-ansi-config,g' configure |
2cfbf297 | 47 | %endif |
aaf43ce1 | 48 | %{__sed} -i 's,$INSTDIR,%{_datadir}/%{name},' src/mmg/mmg.cpp |
013ba9d8 | 49 | |
2cfbf297 | 50 | %configure \ |
ddbadbbb TP |
51 | --enable-gui \ |
52 | --%{?with_wx:en}%{?!with_wx:dis}able-wxwidgets \ | |
53 | --%{?with_qt:en}%{?!with_qt:dis}able-qt \ | |
2f80b240 JB |
54 | %{?with_qt:--with-moc=/usr/bin/moc-qt4} \ |
55 | %{?with_qt:--with-uic=/usr/bin/uic-qt4} | |
013ba9d8 KK |
56 | %{__make} |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
aaf43ce1 | 60 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images |
013ba9d8 KK |
61 | |
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
aaf43ce1 KK |
65 | # help files |
66 | install doc/*.h* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc | |
67 | install doc/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images | |
68 | ||
013ba9d8 KK |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
aaf43ce1 | 74 | %doc AUTHORS ChangeLog README TODO |
013ba9d8 | 75 | %attr(755,root,root) %{_bindir}/* |
aaf43ce1 | 76 | %{_datadir}/%{name} |
013ba9d8 | 77 | %{_mandir}/man1/* |