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