]> git.pld-linux.org Git - packages/mkvtoolnix.git/blame - mkvtoolnix.spec
- remove unsupported local
[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
8e95c120 13Version: 9.1.0
04bac1bf 14Release: 2
013ba9d8
KK
15License: GPL v2
16Group: Applications/Multimedia
995cc3d9 17Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
8e95c120 18# Source0-md5: 7eafd6f5a9affd35f9cbf607d8ccf9b3
783cfec2 19Patch0: %{name}-init_locales.patch
013ba9d8 20URL: http://www.bunkus.org/videotools/mkvtoolnix/
45ab0631 21%{?with_qt:BuildRequires: Qt5Gui-devel}
d553176b 22BuildRequires: autoconf
15b4db1c 23BuildRequires: boost-devel >= 1.36
ff3a8c9b 24BuildRequires: bzip2-devel
013ba9d8
KK
25BuildRequires: expat-devel
26BuildRequires: flac-devel
3e3af859 27BuildRequires: gettext-tools
15b4db1c 28BuildRequires: libebml-devel >= 1.2.0
e53fced4 29BuildRequires: libmagic-devel
15b4db1c 30BuildRequires: libmatroska-devel >= 1.1.0
013ba9d8
KK
31BuildRequires: libogg-devel
32BuildRequires: libvorbis-devel
355f13a2
KK
33BuildRequires: lzo-devel
34BuildRequires: pcre-cxx-devel
7c0e7904
KK
35%if %{with qt}
36BuildRequires: pkgconfig
45ab0631 37BuildRequires: qt5-build >= 4.3.3-3
7c0e7904 38%endif
22a61958 39BuildRequires: ruby-rake
c70ffc8a 40BuildRequires: ruby-modules
8503947c 41%{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0}
ff3a8c9b 42BuildRequires: zlib-devel
013ba9d8
KK
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46Matroska video utilities.
47
f9732eee
JR
48%description -l pl.UTF-8
49Narzędzia do filmów w formacie Matroska.
a12785d3 50
013ba9d8
KK
51%prep
52%setup -q
aaf43ce1 53%patch0 -p1
013ba9d8
KK
54
55%build
d553176b 56%{__autoconf}
2cfbf297 57%configure \
15b4db1c 58 --docdir=%{_datadir}/%{name} \
ddbadbbb 59 --enable-gui \
608ac9d5 60 --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \
61 --%{?with_qt:en}%{!?with_qt:dis}able-qt \
783cfec2
KK
62 --with-boost-filesystem=boost_filesystem \
63 --with-boost-regex=boost_regex \
14fe0e91 64 --with-boost-system=boost_system \
45ab0631
JR
65 %{?with_qt:--with-moc=/usr/bin/moc-qt5} \
66 %{?with_qt:--with-uic=/usr/bin/uic-qt5} \
c70ffc8a
KK
67 %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \
68 --without-curl
8503947c 69
d1e6b0b5 70LC_ALL="C.UTF-8" rake %{?with_verbose:V=1}
013ba9d8
KK
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
65805632 75LC_ALL="C.UTF-8" rake install \
14fe0e91 76 INSTALL="install -cp" \
013ba9d8
KK
77 DESTDIR=$RPM_BUILD_ROOT
78
04bac1bf
JR
79%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin}
80
519d22a2
KK
81%find_lang %{name}
82
013ba9d8
KK
83%clean
84rm -rf $RPM_BUILD_ROOT
85
519d22a2 86%files -f %{name}.lang
013ba9d8 87%defattr(644,root,root,755)
8e95c120 88%doc AUTHORS ChangeLog README.md
013ba9d8 89%attr(755,root,root) %{_bindir}/*
14fe0e91
ER
90%{_datadir}/mime/packages/mkvtoolnix.xml
91%{_desktopdir}/mkvinfo.desktop
5f264721 92%{_desktopdir}/mkvtoolnix-gui.desktop
da5ff19f 93%{_iconsdir}/hicolor/*/apps/mkvextract.png
14fe0e91 94%{_iconsdir}/hicolor/*/apps/mkvinfo.png
da5ff19f 95%{_iconsdir}/hicolor/*/apps/mkvmerge.png
5f264721 96%{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png
da5ff19f 97%{_iconsdir}/hicolor/*/apps/mkvpropedit.png
013ba9d8 98%{_mandir}/man1/*
8e95c120 99%lang(ca) %{_mandir}/ca/man1/*
a13533ca 100%lang(de) %{_mandir}/de/man1/*
8e95c120 101%lang(es) %{_mandir}/es/man1/*
783cfec2 102%lang(ja) %{_mandir}/ja/man1/*
8e95c120 103%lang(ko) %{_mandir}/ko/man1/*
14fe0e91 104%lang(nl) %{_mandir}/nl/man1/*
8e95c120 105%lang(pl) %{_mandir}/pl/man1/*
b0ab4391 106%lang(uk) %{_mandir}/uk/man1/*
783cfec2 107%lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.085481 seconds and 4 git commands to generate.