]> git.pld-linux.org Git - packages/mkvtoolnix.git/blame - mkvtoolnix.spec
- up to 14.0.0
[packages/mkvtoolnix.git] / mkvtoolnix.spec
CommitLineData
013ba9d8 1# TODO:
61dd602f 2# - make -gui subpackages (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 7%bcond_without qt # disable GUI build (Qt4 deps)
2cfbf297 8#
013ba9d8 9Summary: Matroska video utilities
e8a78d12 10Summary(pl.UTF-8): Narzędzia do filmów w formacie Matroska
013ba9d8 11Name: mkvtoolnix
36af1b57
JR
12Version: 14.0.0
13Release: 1
013ba9d8
KK
14License: GPL v2
15Group: Applications/Multimedia
995cc3d9 16Source0: http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
36af1b57 17# Source0-md5: fd398444333e981d0c2ce084a975e1b3
783cfec2 18Patch0: %{name}-init_locales.patch
013ba9d8 19URL: http://www.bunkus.org/videotools/mkvtoolnix/
53ebd695
JR
20%if %{with qt}
21BuildRequires: Qt5Gui-devel
22BuildRequires: Qt5Concurrent-devel
23%endif
d553176b 24BuildRequires: autoconf
15b4db1c 25BuildRequires: boost-devel >= 1.36
ff3a8c9b 26BuildRequires: bzip2-devel
53ebd695 27BuildRequires: docbook-style-xsl
013ba9d8
KK
28BuildRequires: expat-devel
29BuildRequires: flac-devel
3e3af859 30BuildRequires: gettext-tools
15b4db1c 31BuildRequires: libebml-devel >= 1.2.0
e53fced4 32BuildRequires: libmagic-devel
15b4db1c 33BuildRequires: libmatroska-devel >= 1.1.0
013ba9d8
KK
34BuildRequires: libogg-devel
35BuildRequires: libvorbis-devel
355f13a2
KK
36BuildRequires: lzo-devel
37BuildRequires: pcre-cxx-devel
7c0e7904
KK
38%if %{with qt}
39BuildRequires: pkgconfig
45ab0631 40BuildRequires: qt5-build >= 4.3.3-3
7c0e7904 41%endif
22a61958 42BuildRequires: ruby-rake
c70ffc8a 43BuildRequires: ruby-modules
ff3a8c9b 44BuildRequires: zlib-devel
013ba9d8
KK
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%description
48Matroska video utilities.
49
f9732eee
JR
50%description -l pl.UTF-8
51Narzędzia do filmów w formacie Matroska.
a12785d3 52
013ba9d8
KK
53%prep
54%setup -q
aaf43ce1 55%patch0 -p1
013ba9d8
KK
56
57%build
d553176b 58%{__autoconf}
2cfbf297 59%configure \
15b4db1c 60 --docdir=%{_datadir}/%{name} \
608ac9d5 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} \
61dd602f 67 --with-docbook-xsl-root=/usr/share/sgml/docbook/xsl-stylesheets
8503947c 68
61dd602f 69LC_ALL="C.UTF-8" rake %{?_smp_mflags} %{?with_verbose:V=1}
013ba9d8
KK
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
65805632 74LC_ALL="C.UTF-8" rake install \
14fe0e91 75 INSTALL="install -cp" \
013ba9d8
KK
76 DESTDIR=$RPM_BUILD_ROOT
77
04bac1bf
JR
78%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin}
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)
8e95c120 87%doc AUTHORS ChangeLog README.md
013ba9d8 88%attr(755,root,root) %{_bindir}/*
36af1b57
JR
89%dir %{_datadir}/mkvtoolnix
90%dir %{_datadir}/mkvtoolnix/sounds
91%{_datadir}/mkvtoolnix/sounds/finished-1.ogg
92%{_datadir}/mkvtoolnix/sounds/finished-2.ogg
93%{_datadir}/mkvtoolnix/sounds/finished-3.ogg
14fe0e91 94%{_datadir}/mime/packages/mkvtoolnix.xml
36af1b57
JR
95%{_desktopdir}/org.bunkus.mkvinfo.desktop
96%{_desktopdir}/org.bunkus.mkvtoolnix-gui.desktop
da5ff19f 97%{_iconsdir}/hicolor/*/apps/mkvextract.png
14fe0e91 98%{_iconsdir}/hicolor/*/apps/mkvinfo.png
da5ff19f 99%{_iconsdir}/hicolor/*/apps/mkvmerge.png
5f264721 100%{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png
da5ff19f 101%{_iconsdir}/hicolor/*/apps/mkvpropedit.png
013ba9d8 102%{_mandir}/man1/*
8e95c120 103%lang(ca) %{_mandir}/ca/man1/*
a13533ca 104%lang(de) %{_mandir}/de/man1/*
8e95c120 105%lang(es) %{_mandir}/es/man1/*
783cfec2 106%lang(ja) %{_mandir}/ja/man1/*
8e95c120 107%lang(ko) %{_mandir}/ko/man1/*
14fe0e91 108%lang(nl) %{_mandir}/nl/man1/*
8e95c120 109%lang(pl) %{_mandir}/pl/man1/*
b0ab4391 110%lang(uk) %{_mandir}/uk/man1/*
783cfec2 111%lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.108395 seconds and 4 git commands to generate.