]>
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 |
03b23b53 | 11 | Version: 2.5.2 |
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 | |
03b23b53 | 16 | # Source0-md5: 85ae3a5e447f0cdc41d9bc3b5c9b1358 |
cf4d8507 | 17 | Patch0: %{name}-configure.patch |
013ba9d8 | 18 | URL: http://www.bunkus.org/videotools/mkvtoolnix/ |
7c0e7904 | 19 | %{?with_qt:BuildRequires: QtGui-devel} |
e53fced4 | 20 | BuildRequires: boost-devel >= 1.20 |
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 | |
c8767e1e | 36 | BuildRequires: sed >= 4.0 |
ddbadbbb | 37 | %{?with_wx:BuildRequires: wxGTK2-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 | |
ddbadbbb | 52 | %if %{with wx} |
c8767e1e | 53 | %{__sed} -i 's,wx-config,wx-gtk2-ansi-config,g' configure |
2cfbf297 | 54 | %endif |
aaf43ce1 | 55 | %{__sed} -i 's,$INSTDIR,%{_datadir}/%{name},' src/mmg/mmg.cpp |
013ba9d8 | 56 | |
2cfbf297 | 57 | %configure \ |
ddbadbbb TP |
58 | --enable-gui \ |
59 | --%{?with_wx:en}%{?!with_wx:dis}able-wxwidgets \ | |
60 | --%{?with_qt:en}%{?!with_qt:dis}able-qt \ | |
2f80b240 JB |
61 | %{?with_qt:--with-moc=/usr/bin/moc-qt4} \ |
62 | %{?with_qt:--with-uic=/usr/bin/uic-qt4} | |
013ba9d8 KK |
63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
aaf43ce1 | 67 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images |
013ba9d8 KK |
68 | |
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
aaf43ce1 KK |
72 | # help files |
73 | install doc/*.h* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc | |
74 | install doc/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images | |
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) |
aaf43ce1 | 83 | %doc AUTHORS ChangeLog README TODO |
013ba9d8 | 84 | %attr(755,root,root) %{_bindir}/* |
aaf43ce1 | 85 | %{_datadir}/%{name} |
013ba9d8 | 86 | %{_mandir}/man1/* |