]> git.pld-linux.org Git - packages/mkvtoolnix.git/blob - mkvtoolnix.spec
30ca4c0c6195d318e75563c39b7ba627ea432072
[packages/mkvtoolnix.git] / mkvtoolnix.spec
1 # TODO:
2 # - make -gui subpackages (wxWidgets and Qt4 deps)
3 # - boost autodetection fails ($BOOSTLIBDIR empty), so all boost libs must be passed --with-boost-xxx=xxxx
4 #
5 # Conditional build
6 %bcond_with     verbose # verbose build (V=1)
7 %bcond_without  qt      # disable GUI build (Qt4 deps)
8 %bcond_without  wx      # disable GUI build (wxWigets deps)
9 #
10 Summary:        Matroska video utilities
11 Summary(pl.UTF-8):      Narzędzia do filmów w formacie Matroska
12 Name:           mkvtoolnix
13 Version:        4.2.0
14 Release:        3
15 License:        GPL v2
16 Group:          Applications/Multimedia
17 Source0:        http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.bz2
18 # Source0-md5:  de3e99598d47d0a2226269f79faabbfd
19 Patch0:         %{name}-init_locales.patch
20 URL:            http://www.bunkus.org/videotools/mkvtoolnix/
21 %{?with_qt:BuildRequires:       QtGui-devel}
22 BuildRequires:  boost-devel >= 1.34
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
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-boost-filesystem=boost_filesystem \
58         --with-boost-regex=boost_regex \
59         --with-boost-system=boost_system \
60         %{?with_qt:--with-moc=/usr/bin/moc-qt4} \
61         %{?with_qt:--with-uic=/usr/bin/uic-qt4} \
62         %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config}
63
64 %{__make} \
65         %{?with_verbose:V=1}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         INSTALL="install -cp" \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 %find_lang %{name}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog README TODO
82 %attr(755,root,root) %{_bindir}/*
83 %dir %{_datadir}/%{name}
84 %dir %{_datadir}/%{name}/guide
85 %{_datadir}/%{name}/guide/en
86 %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN
87 %{_datadir}/mime/packages/mkvtoolnix.xml
88 %{_desktopdir}/mkvinfo.desktop
89 %{_desktopdir}/mkvmergeGUI.desktop
90 %{_iconsdir}/hicolor/*/apps/mkvinfo.png
91 %{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png
92 %{_mandir}/man1/*
93 %lang(ja) %{_mandir}/ja/man1/*
94 %lang(nl) %{_mandir}/nl/man1/*
95 %lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.160484 seconds and 2 git commands to generate.