]> git.pld-linux.org Git - packages/mkvtoolnix.git/blobdiff - mkvtoolnix.spec
- updated to 5.7.0
[packages/mkvtoolnix.git] / mkvtoolnix.spec
index 53751ba65f5528f6de5362f35fc45fe8191a6dc7..36540eac592bb57106401575b5d02df84f12d999 100644 (file)
@@ -1,27 +1,32 @@
 # TODO:
 # - 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:       2.2.0
+Version:       5.7.0
 Release:       1
 License:       GPL v2
 Group:         Applications/Multimedia
 Source0:       http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.bz2
-# Source0-md5: 57397800c6be11db0b62e7285c8dab82
-Patch0:                %{name}-help.patch
+# Source0-md5: 99ea44be570412dadafe4ccaee0cfe6e
+Patch0:                %{name}-init_locales.patch
 URL:           http://www.bunkus.org/videotools/mkvtoolnix/
 %{?with_qt:BuildRequires:      QtGui-devel}
+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.1
+BuildRequires: gettext-devel
+BuildRequires: libebml-devel >= 1.2.0
+BuildRequires: libmagic-devel
+BuildRequires: libmatroska-devel >= 1.1.0
 BuildRequires: libogg-devel
 BuildRequires: libvorbis-devel
 BuildRequires: lzo-devel
@@ -30,8 +35,9 @@ BuildRequires:        pcre-cxx-devel
 BuildRequires: pkgconfig
 BuildRequires: qt4-build >= 4.3.3-3
 %endif
-BuildRequires: sed >= 4.0
-%{?with_wx:BuildRequires:      wxGTK2-devel >= 2.6.0}
+# required by rake
+BuildRequires: ruby-modules
+%{?with_wx:BuildRequires:      wxGTK2-unicode-devel >= 2.6.0}
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -46,36 +52,52 @@ Narzędzia do filmów w formacie Matroska.
 %patch0 -p1
 
 %build
-%if %{with wx}
-%{__sed} -i 's,wx-config,wx-gtk2-ansi-config,g' configure
-%endif
-%{__sed} -i 's,$INSTDIR,%{_datadir}/%{name},' src/mmg/mmg.cpp
-
 %configure \
+       --docdir=%{_datadir}/%{name} \
        --enable-gui \
-       --%{?with_wx:en}%{?!with_wx:dis}able-wxwidgets \
-       --%{?with_qt:en}%{?!with_qt:dis}able-qt \
+       --%{?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-qt4} \
-       %{?with_qt:--with-uic=/usr/bin/uic-qt4}
-%{__make}
+       %{?with_qt:--with-uic=/usr/bin/uic-qt4} \
+       %{?with_wx:--with-wx-config=/usr/bin/wx-gtk2-unicode-config} \
+       --without-curl
+
+rake %{?with_verbose:V=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/images
 
-%{__make} install \
+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
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/guide
+%{_datadir}/%{name}/guide/en
+%lang(es) %{_datadir}/%{name}/guide/es
+%lang(zh_CN) %{_datadir}/%{name}/guide/zh_CN
+%{_datadir}/mime/packages/mkvtoolnix.xml
+%{_desktopdir}/mkvinfo.desktop
+%{_desktopdir}/mkvmergeGUI.desktop
+%{_iconsdir}/hicolor/*/apps/mkvextract.png
+%{_iconsdir}/hicolor/*/apps/mkvinfo.png
+%{_iconsdir}/hicolor/*/apps/mkvmerge.png
+%{_iconsdir}/hicolor/*/apps/mkvmergeGUI.png
+%{_iconsdir}/hicolor/*/apps/mkvpropedit.png
 %{_mandir}/man1/*
+%lang(ja) %{_mandir}/ja/man1/*
+%lang(nl) %{_mandir}/nl/man1/*
+%lang(uk) %{_mandir}/uk/man1/*
+%lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 0.035449 seconds and 4 git commands to generate.