]> git.pld-linux.org Git - packages/mkvtoolnix.git/blame - mkvtoolnix.spec
- fix boost detection on x32
[packages/mkvtoolnix.git] / mkvtoolnix.spec
CommitLineData
013ba9d8 1# TODO:
ddbadbbb 2# - make -gui subpackages (wxWidgets and Qt4 deps)
14fe0e91 3# - boost autodetection fails ($BOOSTLIBDIR empty), so all boost libs must be passed --with-boost-xxx=xxxx
c8767e1e 4#
2cfbf297 5# Conditional build
f1149835 6%bcond_with verbose # verbose build (V=1)
ddbadbbb
TP
7%bcond_without qt # disable GUI build (Qt4 deps)
8%bcond_without wx # disable GUI build (wxWigets deps)
2cfbf297 9#
013ba9d8 10Summary: Matroska video utilities
e8a78d12 11Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska
013ba9d8 12Name: mkvtoolnix
035ba3db
JR
13Version: 7.9.0
14Release: 1
013ba9d8
KK
15License: GPL v2
16Group: Applications/Multimedia
995cc3d9 17Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
035ba3db 18# Source0-md5: b73789734f7ca3041473ad905c89143f
783cfec2 19Patch0: %{name}-init_locales.patch
d553176b 20Patch1: x32.patch
013ba9d8 21URL: http://www.bunkus.org/videotools/mkvtoolnix/
45ab0631 22%{?with_qt:BuildRequires: Qt5Gui-devel}
d553176b 23BuildRequires: autoconf
15b4db1c 24BuildRequires: boost-devel >= 1.36
ff3a8c9b 25BuildRequires: bzip2-devel
013ba9d8
KK
26BuildRequires: expat-devel
27BuildRequires: flac-devel
3e3af859 28BuildRequires: gettext-tools
15b4db1c 29BuildRequires: libebml-devel >= 1.2.0
e53fced4 30BuildRequires: libmagic-devel
15b4db1c 31BuildRequires: libmatroska-devel >= 1.1.0
013ba9d8
KK
32BuildRequires: libogg-devel
33BuildRequires: libvorbis-devel
355f13a2
KK
34BuildRequires: lzo-devel
35BuildRequires: pcre-cxx-devel
7c0e7904
KK
36%if %{with qt}
37BuildRequires: pkgconfig
45ab0631 38BuildRequires: qt5-build >= 4.3.3-3
7c0e7904 39%endif
22a61958 40BuildRequires: ruby-rake
c70ffc8a 41BuildRequires: ruby-modules
8503947c 42%{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0}
ff3a8c9b 43BuildRequires: zlib-devel
013ba9d8
KK
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47Matroska video utilities.
48
f9732eee
JR
49%description -l pl.UTF-8
50Narzędzia do filmów w formacie Matroska.
a12785d3 51
013ba9d8
KK
52%prep
53%setup -q
aaf43ce1 54%patch0 -p1
013ba9d8
KK
55
56%build
d553176b 57%{__autoconf}
2cfbf297 58%configure \
15b4db1c 59 --docdir=%{_datadir}/%{name} \
ddbadbbb 60 --enable-gui \
608ac9d5 61 --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \
62 --%{?with_qt:en}%{!?with_qt:dis}able-qt \
783cfec2
KK
63 --with-boost-filesystem=boost_filesystem \
64 --with-boost-regex=boost_regex \
14fe0e91 65 --with-boost-system=boost_system \
45ab0631
JR
66 %{?with_qt:--with-moc=/usr/bin/moc-qt5} \
67 %{?with_qt:--with-uic=/usr/bin/uic-qt5} \
c70ffc8a
KK
68 %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \
69 --without-curl
8503947c 70
15b4db1c 71rake %{?with_verbose:V=1}
013ba9d8
KK
72
73%install
74rm -rf $RPM_BUILD_ROOT
75
15b4db1c 76rake install \
14fe0e91 77 INSTALL="install -cp" \
013ba9d8
KK
78 DESTDIR=$RPM_BUILD_ROOT
79
519d22a2
KK
80%find_lang %{name}
81
013ba9d8
KK
82%clean
83rm -rf $RPM_BUILD_ROOT
84
519d22a2 85%files -f %{name}.lang
013ba9d8 86%defattr(644,root,root,755)
7ca3b5b0 87%doc AUTHORS ChangeLog README.md TODO
013ba9d8 88%attr(755,root,root) %{_bindir}/*
783cfec2
KK
89%dir %{_datadir}/%{name}
90%dir %{_datadir}/%{name}/guide
91%{_datadir}/%{name}/guide/en
da5ff19f 92%lang(es) %{_datadir}/%{name}/guide/es
1635467e 93%lang(eu) %{_datadir}/%{name}/guide/eu
a13533ca 94%lang(nl) %{_datadir}/%{name}/guide/nl
783cfec2 95%lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN
14fe0e91
ER
96%{_datadir}/mime/packages/mkvtoolnix.xml
97%{_desktopdir}/mkvinfo.desktop
98%{_desktopdir}/mkvmergeGUI.desktop
da5ff19f 99%{_iconsdir}/hicolor/*/apps/mkvextract.png
14fe0e91 100%{_iconsdir}/hicolor/*/apps/mkvinfo.png
da5ff19f 101%{_iconsdir}/hicolor/*/apps/mkvmerge.png
14fe0e91 102%{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png
da5ff19f 103%{_iconsdir}/hicolor/*/apps/mkvpropedit.png
013ba9d8 104%{_mandir}/man1/*
a13533ca 105%lang(de) %{_mandir}/de/man1/*
783cfec2 106%lang(ja) %{_mandir}/ja/man1/*
14fe0e91 107%lang(nl) %{_mandir}/nl/man1/*
b0ab4391 108%lang(uk) %{_mandir}/uk/man1/*
783cfec2 109%lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.085955 seconds and 4 git commands to generate.