]> git.pld-linux.org Git - packages/mkvtoolnix.git/blob - mkvtoolnix.spec
- updated to 2.8.0
[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.8.0
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:  7f8e12e4e73872c9e82c23efa41e0be0
17 Patch0:         %{name}-configure.patch
18 Patch1:         %{name}-init_locales.patch
19 URL:            http://www.bunkus.org/videotools/mkvtoolnix/
20 %{?with_qt:BuildRequires:       QtGui-devel}
21 BuildRequires:  boost-devel >= 1.29
22 BuildRequires:  bzip2-devel
23 BuildRequires:  expat-devel
24 BuildRequires:  flac-devel
25 BuildRequires:  gettext-devel
26 BuildRequires:  libebml-devel >= 0.7.7
27 BuildRequires:  libmagic-devel
28 BuildRequires:  libmatroska-devel >= 0.8.1
29 BuildRequires:  libogg-devel
30 BuildRequires:  libvorbis-devel
31 BuildRequires:  lzo-devel
32 BuildRequires:  pcre-cxx-devel
33 %if %{with qt}
34 BuildRequires:  pkgconfig
35 BuildRequires:  qt4-build >= 4.3.3-3
36 %endif
37 %{?with_wx:BuildRequires:       wxGTK2-unicode-devel >= 2.6.0}
38 BuildRequires:  zlib-devel
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Matroska video utilities.
43
44 %description -l pl.UTF-8
45 Narzędzia do filmów w formacie Matroska.
46
47 %prep
48 %setup -q
49 %patch0 -p1
50 %patch1 -p1
51
52 %build
53 %configure \
54         --enable-gui \
55         --%{?with_wx:en}%{?!with_wx:dis}able-wxwidgets \
56         --%{?with_qt:en}%{?!with_qt:dis}able-qt \
57         %{?with_qt:--with-moc=/usr/bin/moc-qt4} \
58         %{?with_qt:--with-uic=/usr/bin/uic-qt4} \
59         %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config}
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 # help files
71 install doc/*.h* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
72 install doc/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
73
74 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN}
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.055079 seconds and 3 git commands to generate.