]> git.pld-linux.org Git - packages/mkvtoolnix.git/blobdiff - mkvtoolnix.spec
- updated to 9.1.0
[packages/mkvtoolnix.git] / mkvtoolnix.spec
index cb2e1348458a988c442511da0a718772399e905e..2ab0d16d57edd6d84d62d54411f85f9c916952a2 100644 (file)
 # TODO:
-# - compile mkvinfo's GUI and mmg (--enable-gui)
-
+# - make -gui subpackages (wxWidgets and Qt4 deps)
+# - boost autodetection fails ($BOOSTLIBDIR empty), so all boost libs must be passed --with-boost-xxx=xxxx
+#
+# Conditional build
+%bcond_with    verbose # verbose build (V=1)
+%bcond_without qt      # disable GUI build (Qt4 deps)
+%bcond_without wx      # disable GUI build (wxWigets deps)
+#
 Summary:       Matroska video utilities
+Summary(pl.UTF-8):     Narzędzia do filmów w formacie Matroska
 Name:          mkvtoolnix
-Version:       1.4.0
-Release:       0.1
+Version:       9.1.0
+Release:       1
 License:       GPL v2
 Group:         Applications/Multimedia
-Source0:       http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.bz2
-# Source0-md5: 593c9f51ff99c90a017117bad2edd3e4
+Source0:       http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
+# Source0-md5: 7eafd6f5a9affd35f9cbf607d8ccf9b3
+Patch0:                %{name}-init_locales.patch
 URL:           http://www.bunkus.org/videotools/mkvtoolnix/
-BuildRequires: bzip2-devel 
+%{?with_qt:BuildRequires:      Qt5Gui-devel}
+BuildRequires: autoconf
+BuildRequires: boost-devel >= 1.36
+BuildRequires: bzip2-devel
 BuildRequires: expat-devel
 BuildRequires: flac-devel
-BuildRequires: libebml-devel >= 0.7.3
-BuildRequires: libmatroska-devel >= 0.7.5
+BuildRequires: gettext-tools
+BuildRequires: libebml-devel >= 1.2.0
+BuildRequires: libmagic-devel
+BuildRequires: libmatroska-devel >= 1.1.0
 BuildRequires: libogg-devel
 BuildRequires: libvorbis-devel
-BuildRequires: zlib-devel 
+BuildRequires: lzo-devel
+BuildRequires: pcre-cxx-devel
+%if %{with qt}
+BuildRequires: pkgconfig
+BuildRequires: qt5-build >= 4.3.3-3
+%endif
+BuildRequires: ruby-rake
+BuildRequires: ruby-modules
+%{?with_wx:BuildRequires:      wxGTK2-unicode-devel >= 2.6.0}
+BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Matroska video utilities.
 
+%description -l pl.UTF-8
+Narzędzia do filmów w formacie Matroska.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__autoconf}
 %configure \
-       --disable-gui \
-       --enable-bz2
+       --docdir=%{_datadir}/%{name} \
+       --enable-gui \
+       --%{?with_wx:en}%{!?with_wx:dis}able-wxwidgets \
+       --%{?with_qt:en}%{!?with_qt:dis}able-qt \
+       --with-boost-filesystem=boost_filesystem \
+       --with-boost-regex=boost_regex \
+       --with-boost-system=boost_system \
+       %{?with_qt:--with-moc=/usr/bin/moc-qt5} \
+       %{?with_qt:--with-uic=/usr/bin/uic-qt5} \
+       %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \
+       --without-curl
 
-%{__make}
+LC_ALL="C.UTF-8" rake %{?with_verbose:V=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+LC_ALL="C.UTF-8" rake install \
+       INSTALL="install -cp" \
        DESTDIR=$RPM_BUILD_ROOT
 
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
+%doc AUTHORS ChangeLog README.md
 %attr(755,root,root) %{_bindir}/*
+%{_datadir}/mime/packages/mkvtoolnix.xml
+%{_desktopdir}/mkvinfo.desktop
+%{_desktopdir}/mkvtoolnix-gui.desktop
+%{_iconsdir}/hicolor/*/apps/mkvextract.png
+%{_iconsdir}/hicolor/*/apps/mkvinfo.png
+%{_iconsdir}/hicolor/*/apps/mkvmerge.png
+%{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png
+%{_iconsdir}/hicolor/*/apps/mkvpropedit.png
 %{_mandir}/man1/*
+%lang(ca) %{_mandir}/ca/man1/*
+%lang(de) %{_mandir}/de/man1/*
+%lang(es) %{_mandir}/es/man1/*
+%lang(ja) %{_mandir}/ja/man1/*
+%lang(ko) %{_mandir}/ko/man1/*
+%lang(nl) %{_mandir}/nl/man1/*
+%lang(pl) %{_mandir}/pl/man1/*
+%lang(uk) %{_mandir}/uk/man1/*
+%lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.050184 seconds and 4 git commands to generate.