]> git.pld-linux.org Git - packages/mkvtoolnix.git/blob - mkvtoolnix.spec
- updated to 2.4.2
[packages/mkvtoolnix.git] / mkvtoolnix.spec
1 # TODO:
2 # - make -gui subpackages (wxWidgets and Qt4 deps)
3 #
4 # Conditional build
5 %bcond_without  qt      # disable GUI build (Qt4 deps)
6 %bcond_without  wx      # disable GUI build (wxWigets deps)
7 #
8 Summary:        Matroska video utilities
9 Summary(pl.UTF-8):      Narzędzia do filmów w formacie Matroska
10 Name:           mkvtoolnix
11 Version:        2.4.2
12 Release:        1
13 License:        GPL v2
14 Group:          Applications/Multimedia
15 Source0:        http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.bz2
16 # Source0-md5:  050bc9019cfa10e243f17b5e84f5a05f
17 Patch0:         %{name}-configure.patch
18 URL:            http://www.bunkus.org/videotools/mkvtoolnix/
19 %{?with_qt:BuildRequires:       QtGui-devel}
20 BuildRequires:  boost-devel >= 1.20
21 BuildRequires:  bzip2-devel
22 BuildRequires:  expat-devel
23 BuildRequires:  flac-devel
24 BuildRequires:  libebml-devel >= 0.7.7
25 BuildRequires:  libmagic-devel
26 BuildRequires:  libmatroska-devel >= 0.8.1
27 BuildRequires:  libogg-devel
28 BuildRequires:  libvorbis-devel
29 BuildRequires:  lzo-devel
30 BuildRequires:  pcre-cxx-devel
31 %if %{with qt}
32 BuildRequires:  pkgconfig
33 BuildRequires:  qt4-build >= 4.3.3-3
34 %endif
35 BuildRequires:  sed >= 4.0
36 %{?with_wx:BuildRequires:       wxGTK2-devel >= 2.6.0}
37 BuildRequires:  zlib-devel
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Matroska video utilities.
42
43 %description -l pl.UTF-8
44 Narzędzia do filmów w formacie Matroska.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49
50 %build
51 %if %{with wx}
52 %{__sed} -i 's,wx-config,wx-gtk2-ansi-config,g' configure
53 %endif
54 %{__sed} -i 's,$INSTDIR,%{_datadir}/%{name},' src/mmg/mmg.cpp
55
56 %configure \
57         --enable-gui \
58         --%{?with_wx:en}%{?!with_wx:dis}able-wxwidgets \
59         --%{?with_qt:en}%{?!with_qt:dis}able-qt \
60         %{?with_qt:--with-moc=/usr/bin/moc-qt4} \
61         %{?with_qt:--with-uic=/usr/bin/uic-qt4}
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 # help files
72 install doc/*.h* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
73 install doc/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog README TODO
81 %attr(755,root,root) %{_bindir}/*
82 %{_datadir}/%{name}
83 %{_mandir}/man1/*
This page took 0.087509 seconds and 4 git commands to generate.