]> git.pld-linux.org Git - packages/mkvtoolnix.git/blobdiff - mkvtoolnix.spec
- updated to 9.1.0
[packages/mkvtoolnix.git] / mkvtoolnix.spec
index b17e9413e5f57082a31e1c289b70aefb7d16c413..2ab0d16d57edd6d84d62d54411f85f9c916952a2 100644 (file)
 # TODO:
-# - make subpackage -gui (wxWidgets deps)
+# - 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_without gui     # disable GUI build (wxWigets deps)
+%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):   Narzêdzia do filmów w formacie Matroska
+Summary(pl.UTF-8):     Narzędzia do filmów w formacie Matroska
 Name:          mkvtoolnix
-Version:       2.0.0
+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: d8a1d1f014f2ee5e69da04a46305f9dd
-Patch0:                %{name}-help.patch
+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/
+%{?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.7
-BuildRequires: libmatroska-devel >= 0.8.0
+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: lzo-devel
 BuildRequires: pcre-cxx-devel
-BuildRequires: sed >= 4.0
-%{?with_gui:BuildRequires:     wxGTK2-devel >= 2.6.0}
+%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
-Narzêdzia do filmów w formacie Matroska.
+%description -l pl.UTF-8
+Narzędzia do filmów w formacie Matroska.
 
 %prep
 %setup -q
 %patch0 -p1
 
 %build
-%if %{with gui}
-%{__sed} -i 's,wx-config,wx-gtk2-ansi-config,g' configure
-%endif
-%{__sed} -i 's,$INSTDIR,%{_datadir}/%{name},' src/mmg/mmg.cpp
-
+%{__autoconf}
 %configure \
-       --enable-gui=%{?with_gui:yes}%{?!with_gui:no}
-%{__make}
+       --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
+
+LC_ALL="C.UTF-8" rake %{?with_verbose:V=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
 
-%{__make} install \
+LC_ALL="C.UTF-8" rake install \
+       INSTALL="install -cp" \
        DESTDIR=$RPM_BUILD_ROOT
 
-# help files
-install doc/*.h* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
-install doc/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
+%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}/%{name}
+%{_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.191567 seconds and 4 git commands to generate.