]> git.pld-linux.org Git - packages/mkvtoolnix.git/blob - mkvtoolnix.spec
972a57f9322932e31a3f3a1e02c5149407b525f2
[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:        7.9.0
14 Release:        1
15 License:        GPL v2
16 Group:          Applications/Multimedia
17 Source0:        http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
18 # Source0-md5:  b73789734f7ca3041473ad905c89143f
19 Patch0:         %{name}-init_locales.patch
20 Patch1:         x32.patch
21 URL:            http://www.bunkus.org/videotools/mkvtoolnix/
22 %{?with_qt:BuildRequires:       Qt5Gui-devel}
23 BuildRequires:  autoconf
24 BuildRequires:  boost-devel >= 1.36
25 BuildRequires:  bzip2-devel
26 BuildRequires:  expat-devel
27 BuildRequires:  flac-devel
28 BuildRequires:  gettext-tools
29 BuildRequires:  libebml-devel >= 1.2.0
30 BuildRequires:  libmagic-devel
31 BuildRequires:  libmatroska-devel >= 1.1.0
32 BuildRequires:  libogg-devel
33 BuildRequires:  libvorbis-devel
34 BuildRequires:  lzo-devel
35 BuildRequires:  pcre-cxx-devel
36 %if %{with qt}
37 BuildRequires:  pkgconfig
38 BuildRequires:  qt5-build >= 4.3.3-3
39 %endif
40 BuildRequires:  ruby-rake
41 BuildRequires:  ruby-modules
42 %{?with_wx:BuildRequires:       wxGTK2-unicode-devel >= 2.6.0}
43 BuildRequires:  zlib-devel
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
47 Matroska video utilities.
48
49 %description -l pl.UTF-8
50 Narzędzia do filmów w formacie Matroska.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 %build
57 %{__autoconf}
58 %configure \
59         --docdir=%{_datadir}/%{name} \
60         --enable-gui \
61         --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \
62         --%{?with_qt:en}%{!?with_qt:dis}able-qt \
63         --with-boost-filesystem=boost_filesystem \
64         --with-boost-regex=boost_regex \
65         --with-boost-system=boost_system \
66         %{?with_qt:--with-moc=/usr/bin/moc-qt5} \
67         %{?with_qt:--with-uic=/usr/bin/uic-qt5} \
68         %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \
69         --without-curl
70
71 rake %{?with_verbose:V=1}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 rake install \
77         INSTALL="install -cp" \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %find_lang %{name}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README.md TODO
88 %attr(755,root,root) %{_bindir}/*
89 %dir %{_datadir}/%{name}
90 %dir %{_datadir}/%{name}/guide
91 %{_datadir}/%{name}/guide/en
92 %lang(es) %{_datadir}/%{name}/guide/es
93 %lang(eu) %{_datadir}/%{name}/guide/eu
94 %lang(nl) %{_datadir}/%{name}/guide/nl
95 %lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN
96 %{_datadir}/mime/packages/mkvtoolnix.xml
97 %{_desktopdir}/mkvinfo.desktop
98 %{_desktopdir}/mkvmergeGUI.desktop
99 %{_iconsdir}/hicolor/*/apps/mkvextract.png
100 %{_iconsdir}/hicolor/*/apps/mkvinfo.png
101 %{_iconsdir}/hicolor/*/apps/mkvmerge.png
102 %{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png
103 %{_iconsdir}/hicolor/*/apps/mkvpropedit.png
104 %{_mandir}/man1/*
105 %lang(de) %{_mandir}/de/man1/*
106 %lang(ja) %{_mandir}/ja/man1/*
107 %lang(nl) %{_mandir}/nl/man1/*
108 %lang(uk) %{_mandir}/uk/man1/*
109 %lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.083311 seconds and 2 git commands to generate.