]> git.pld-linux.org Git - packages/mkvtoolnix.git/blob - mkvtoolnix.spec
4479f3978b470ea475a5a1c55cdb749f234bfd1b
[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.7.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:  68448f25eeb1e65384de4979cfdc8ac9
17 Patch0:         %{name}-configure.patch
18 URL:            http://www.bunkus.org/videotools/mkvtoolnix/
19 %{?with_qt:BuildRequires:       QtGui-devel}
20 BuildRequires:  boost-devel >= 1.29
21 BuildRequires:  bzip2-devel
22 BuildRequires:  expat-devel
23 BuildRequires:  flac-devel
24 BuildRequires:  gettext-devel
25 BuildRequires:  libebml-devel >= 0.7.7
26 BuildRequires:  libmagic-devel
27 BuildRequires:  libmatroska-devel >= 0.8.1
28 BuildRequires:  libogg-devel
29 BuildRequires:  libvorbis-devel
30 BuildRequires:  lzo-devel
31 BuildRequires:  pcre-cxx-devel
32 %if %{with qt}
33 BuildRequires:  pkgconfig
34 BuildRequires:  qt4-build >= 4.3.3-3
35 %endif
36 %{?with_wx:BuildRequires:       wxGTK2-unicode-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 %configure \
52         --enable-gui \
53         --%{?with_wx:en}%{?!with_wx:dis}able-wxwidgets \
54         --%{?with_qt:en}%{?!with_qt:dis}able-qt \
55         %{?with_qt:--with-moc=/usr/bin/moc-qt4} \
56         %{?with_qt:--with-uic=/usr/bin/uic-qt4} \
57         %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config}
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 # help files
69 install doc/*.h* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
70 install doc/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
71
72 %find_lang %{name}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files -f %{name}.lang
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog README TODO
80 %attr(755,root,root) %{_bindir}/*
81 %{_datadir}/%{name}
82 %{_mandir}/man1/*
This page took 0.069687 seconds and 3 git commands to generate.