2014-11-17 08:34:46 +00:00
|
|
|
#
|
|
|
|
# spec file for RPM-based distributions
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: mkvtoolnix
|
2015-11-22 10:13:59 +00:00
|
|
|
URL: https://mkvtoolnix.download/
|
2017-07-23 08:11:32 +00:00
|
|
|
Version: 14.0.0
|
2014-11-17 08:34:46 +00:00
|
|
|
Release: 1
|
|
|
|
Summary: Tools to create, alter and inspect Matroska files
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2017-04-20 13:54:06 +00:00
|
|
|
Requires: hicolor-icon-theme
|
2014-11-17 08:34:46 +00:00
|
|
|
|
2017-07-30 12:04:51 +00:00
|
|
|
BuildRequires: desktop-file-utils, fdupes, file-devel, flac, flac-devel, glibc-devel, libogg-devel, libstdc++-devel, libvorbis-devel, make, pkgconfig, zlib-devel, boost-devel >= 1.46.0, po4a
|
2014-11-17 08:34:46 +00:00
|
|
|
|
2017-01-08 20:00:10 +00:00
|
|
|
%if 0%{?centos}
|
2017-04-20 12:43:57 +00:00
|
|
|
BuildRequires: devtoolset-6-gcc-c++, rubygem-drake
|
2016-12-10 10:31:53 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2017-04-20 12:59:25 +00:00
|
|
|
BuildRequires: gettext-tools libqt5-qtbase-devel, libqt5-qtmultimedia-devel, ruby2.1-rubygem-rake, libxslt-tools, docbook-xsl-stylesheets, googletest-devel
|
2016-12-10 10:31:53 +00:00
|
|
|
%else
|
2017-04-20 12:59:25 +00:00
|
|
|
BuildRequires: gettext-devel, qt5-qtbase-devel, qt5-qtmultimedia-devel, libxslt, docbook-style-xsl, gtest-devel
|
2014-11-17 08:34:46 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2017-07-30 10:21:50 +00:00
|
|
|
BuildRequires: gcc7-c++
|
2014-11-17 08:34:46 +00:00
|
|
|
%endif
|
|
|
|
|
2015-03-01 17:38:57 +00:00
|
|
|
%if 0%{?fedora}
|
2017-04-20 10:55:57 +00:00
|
|
|
BuildRequires: gcc-c++ >= 4.9.0, rubypick, pugixml-devel, rubygem-drake, json-devel >= 2
|
2014-11-17 08:34:46 +00:00
|
|
|
%endif
|
|
|
|
|
2017-01-08 20:00:10 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
License: GPL-2.0
|
|
|
|
%else
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
License: GPLv2
|
2014-12-05 11:35:39 +00:00
|
|
|
%endif
|
|
|
|
|
2014-11-17 08:34:46 +00:00
|
|
|
%description
|
|
|
|
Tools to create and manipulate Matroska files (extensions .mkv and
|
|
|
|
.mka), a new container format for audio and video files. Includes
|
|
|
|
command line tools mkvextract, mkvinfo, mkvmerge, mkvpropedit and a
|
|
|
|
graphical frontend for them, mkvmerge-gui.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Moritz Bunkus <moritz@bunkus.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
2016-12-10 10:31:37 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2014-11-17 08:34:46 +00:00
|
|
|
|
2016-12-13 22:38:19 +00:00
|
|
|
%if 0%{?centos}
|
2017-04-20 12:43:57 +00:00
|
|
|
export CC=/opt/rh/devtoolset-6/root/bin/gcc
|
|
|
|
export CXX=/opt/rh/devtoolset-6/root/bin/g++
|
2014-11-17 08:34:46 +00:00
|
|
|
%endif
|
|
|
|
|
2016-12-10 10:31:53 +00:00
|
|
|
%if 0%{?suse_version}
|
2017-07-30 10:21:50 +00:00
|
|
|
export CC=/usr/bin/gcc-7
|
|
|
|
export CXX=/usr/bin/g++-7
|
2016-12-10 10:31:53 +00:00
|
|
|
%endif
|
|
|
|
|
2017-04-20 10:57:34 +00:00
|
|
|
%configure \
|
|
|
|
--enable-debug \
|
|
|
|
--disable-optimization
|
2014-11-17 08:34:46 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-20 10:55:57 +00:00
|
|
|
%if 0%{?suse_version}
|
2017-01-08 20:00:10 +00:00
|
|
|
rake
|
2017-04-20 10:55:57 +00:00
|
|
|
%else
|
|
|
|
drake
|
2017-01-08 20:00:10 +00:00
|
|
|
%endif
|
2014-11-17 08:34:46 +00:00
|
|
|
|
2017-04-20 12:59:25 +00:00
|
|
|
%check
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
rake tests:run_unit
|
|
|
|
%else
|
|
|
|
drake tests:run_unit
|
|
|
|
%endif
|
|
|
|
|
2014-11-17 08:34:46 +00:00
|
|
|
%install
|
2016-12-04 14:49:41 +00:00
|
|
|
%if 0%{?suse_version}
|
2017-04-20 10:55:57 +00:00
|
|
|
rake DESTDIR=$RPM_BUILD_ROOT install
|
2016-12-04 14:49:41 +00:00
|
|
|
strip ${RPM_BUILD_ROOT}/usr/bin/*
|
2017-04-20 10:55:57 +00:00
|
|
|
%else
|
|
|
|
drake DESTDIR=$RPM_BUILD_ROOT install
|
2016-12-04 14:49:41 +00:00
|
|
|
%endif
|
|
|
|
|
2017-04-20 10:58:38 +00:00
|
|
|
for f in mkvtoolnix-gui mkvinfo; do
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/org.bunkus.$f.desktop
|
|
|
|
done
|
|
|
|
|
2014-11-17 08:34:46 +00:00
|
|
|
%fdupes -s %buildroot/%_mandir
|
|
|
|
%fdupes -s %buildroot/%_prefix
|
|
|
|
|
2017-04-20 13:54:06 +00:00
|
|
|
%post
|
|
|
|
update-desktop-database &> /dev/null || true
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || true
|
|
|
|
touch --no-create %{_datadir}/mime/packages &> /dev/null || true
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-desktop-database &>/dev/null || true
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || true
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || true
|
|
|
|
touch --no-create %{_datadir}/mime/packages &> /dev/null || true
|
|
|
|
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || true
|
|
|
|
fi
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || true
|
|
|
|
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || true
|
|
|
|
|
2014-11-17 08:34:46 +00:00
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
2016-12-29 18:23:36 +00:00
|
|
|
%doc AUTHORS COPYING README.md NEWS.md
|
2014-11-17 08:34:46 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*.png
|
|
|
|
%{_datadir}/mime/packages/*.xml
|
|
|
|
%lang(ca) %{_datadir}/locale/ca/*/*.mo
|
|
|
|
%lang(cs) %{_datadir}/locale/cs/*/*.mo
|
|
|
|
%lang(de) %{_datadir}/locale/de/*/*.mo
|
|
|
|
%lang(es) %{_datadir}/locale/es/*/*.mo
|
|
|
|
%lang(eu) %{_datadir}/locale/eu/*/*.mo
|
|
|
|
%lang(fr) %{_datadir}/locale/fr/*/*.mo
|
|
|
|
%lang(it) %{_datadir}/locale/it/*/*.mo
|
|
|
|
%lang(ja) %{_datadir}/locale/ja/*/*.mo
|
2016-03-21 16:37:36 +00:00
|
|
|
%lang(ko) %{_datadir}/locale/ko/*/*.mo
|
2014-11-17 08:34:46 +00:00
|
|
|
%lang(lt) %{_datadir}/locale/lt/*/*.mo
|
|
|
|
%lang(nl) %{_datadir}/locale/nl/*/*.mo
|
|
|
|
%lang(pl) %{_datadir}/locale/pl/*/*.mo
|
|
|
|
%lang(pt) %{_datadir}/locale/pt/*/*.mo
|
|
|
|
%lang(pt_BR) %{_datadir}/locale/pt_BR/*/*.mo
|
2017-07-22 13:47:55 +00:00
|
|
|
%lang(ro) %{_datadir}/locale/ro/*/*.mo
|
2014-11-17 08:34:46 +00:00
|
|
|
%lang(ru) %{_datadir}/locale/ru/*/*.mo
|
2015-09-19 11:46:06 +00:00
|
|
|
%lang(sr_RS) %{_datadir}/locale/sr_RS/*/*.mo
|
|
|
|
%lang(sr_RS@latin) %{_datadir}/locale/sr_RS@latin/*/*.mo
|
2015-03-24 11:34:10 +00:00
|
|
|
%lang(sv) %{_datadir}/locale/sv/*/*.mo
|
2014-11-17 08:34:46 +00:00
|
|
|
%lang(tr) %{_datadir}/locale/tr/*/*.mo
|
|
|
|
%lang(uk) %{_datadir}/locale/uk/*/*.mo
|
|
|
|
%lang(zh_CN) %{_datadir}/locale/zh_CN/*/*.mo
|
|
|
|
%lang(zh_TW) %{_datadir}/locale/zh_TW/*/*.mo
|
|
|
|
%{_datadir}/man/man1/*
|
2015-10-16 16:58:36 +00:00
|
|
|
%{_datadir}/man/ca
|
2014-11-17 08:34:46 +00:00
|
|
|
%{_datadir}/man/de
|
2015-07-01 17:51:53 +00:00
|
|
|
%{_datadir}/man/es
|
2014-11-17 08:34:46 +00:00
|
|
|
%{_datadir}/man/ja
|
2016-03-21 16:46:23 +00:00
|
|
|
%{_datadir}/man/ko
|
2014-11-17 08:34:46 +00:00
|
|
|
%{_datadir}/man/nl
|
2016-01-30 12:35:14 +00:00
|
|
|
%{_datadir}/man/pl
|
2014-11-17 08:34:46 +00:00
|
|
|
%{_datadir}/man/uk
|
|
|
|
%{_datadir}/man/zh_CN
|
2017-04-05 11:28:25 +00:00
|
|
|
%{_datadir}/mkvtoolnix
|
2014-11-17 08:34:46 +00:00
|
|
|
|
|
|
|
%changelog -n mkvtoolnix
|
2017-07-23 08:11:32 +00:00
|
|
|
* Sun Jul 23 2017 Moritz Bunkus <moritz@bunkus.org> 14.0.0-1
|
|
|
|
- New version
|
|
|
|
|
2017-06-25 07:59:49 +00:00
|
|
|
* Sun Jun 25 2017 Moritz Bunkus <moritz@bunkus.org> 13.0.0-1
|
|
|
|
- New version
|
|
|
|
|
2017-05-20 17:20:25 +00:00
|
|
|
* Sat May 20 2017 Moritz Bunkus <moritz@bunkus.org> 12.0.0-1
|
|
|
|
- New version
|
|
|
|
|
2017-04-22 15:08:28 +00:00
|
|
|
* Sat Apr 22 2017 Moritz Bunkus <moritz@bunkus.org> 11.0.0-1
|
|
|
|
- New version
|
|
|
|
|
2017-03-25 12:47:21 +00:00
|
|
|
* Sat Mar 25 2017 Moritz Bunkus <moritz@bunkus.org> 10.0.0-1
|
|
|
|
- New version
|
|
|
|
|
2017-02-19 15:14:59 +00:00
|
|
|
* Sun Feb 19 2017 Moritz Bunkus <moritz@bunkus.org> 9.9.0-1
|
|
|
|
- New version
|
|
|
|
|
2017-01-22 13:17:42 +00:00
|
|
|
* Sun Jan 22 2017 Moritz Bunkus <moritz@bunkus.org> 9.8.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-12-27 22:00:47 +00:00
|
|
|
* Tue Dec 27 2016 Moritz Bunkus <moritz@bunkus.org> 9.7.1-1
|
|
|
|
- New version
|
|
|
|
|
2016-12-27 11:19:42 +00:00
|
|
|
* Tue Dec 27 2016 Moritz Bunkus <moritz@bunkus.org> 9.7.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-11-29 18:48:40 +00:00
|
|
|
* Tue Nov 29 2016 Moritz Bunkus <moritz@bunkus.org> 9.6.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-10-16 14:49:00 +00:00
|
|
|
* Sun Oct 16 2016 Moritz Bunkus <moritz@bunkus.org> 9.5.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-09-11 12:16:25 +00:00
|
|
|
* Sun Sep 11 2016 Moritz Bunkus <moritz@bunkus.org> 9.4.2-1
|
|
|
|
- New version
|
|
|
|
|
2016-09-11 08:49:24 +00:00
|
|
|
* Sun Sep 11 2016 Moritz Bunkus <moritz@bunkus.org> 9.4.1-1
|
|
|
|
- New version
|
|
|
|
|
2016-08-22 14:49:10 +00:00
|
|
|
* Mon Aug 22 2016 Moritz Bunkus <moritz@bunkus.org> 9.4.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-07-14 05:50:38 +00:00
|
|
|
* Thu Jul 14 2016 Moritz Bunkus <moritz@bunkus.org> 9.3.1-1
|
|
|
|
- New version
|
|
|
|
|
2016-07-13 15:49:29 +00:00
|
|
|
* Wed Jul 13 2016 Moritz Bunkus <moritz@bunkus.org> 9.3.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-05-28 10:18:50 +00:00
|
|
|
* Sat May 28 2016 Moritz Bunkus <moritz@bunkus.org> 9.2.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-04-23 13:49:59 +00:00
|
|
|
* Sat Apr 23 2016 Moritz Bunkus <moritz@bunkus.org> 9.1.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-03-28 15:56:53 +00:00
|
|
|
* Mon Mar 28 2016 Moritz Bunkus <moritz@bunkus.org> 9.0.1-1
|
|
|
|
- New version
|
|
|
|
|
2016-03-26 13:18:31 +00:00
|
|
|
* Sat Mar 26 2016 Moritz Bunkus <moritz@bunkus.org> 9.0.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-02-21 16:03:35 +00:00
|
|
|
* Sun Feb 21 2016 Moritz Bunkus <moritz@bunkus.org> 8.9.0-1
|
|
|
|
- New version
|
|
|
|
|
2016-01-10 09:35:19 +00:00
|
|
|
* Sun Jan 10 2016 Moritz Bunkus <moritz@bunkus.org> 8.8.0-1
|
|
|
|
- New version
|
|
|
|
|
2015-12-31 12:23:20 +00:00
|
|
|
* Thu Dec 31 2015 Moritz Bunkus <moritz@bunkus.org> 8.7.0-1
|
|
|
|
- New version
|
|
|
|
|
2015-11-29 21:18:15 +00:00
|
|
|
* Sun Nov 29 2015 Moritz Bunkus <moritz@bunkus.org> 8.6.1-1
|
|
|
|
- New version
|
|
|
|
|
2015-11-28 19:18:02 +00:00
|
|
|
* Sat Nov 28 2015 Moritz Bunkus <moritz@bunkus.org> 8.6.0-1
|
|
|
|
- New version
|
|
|
|
|
2015-11-04 19:04:10 +00:00
|
|
|
* Wed Nov 4 2015 Moritz Bunkus <moritz@bunkus.org> 8.5.2-1
|
|
|
|
- New version
|
|
|
|
|
2015-10-21 08:34:06 +00:00
|
|
|
* Wed Oct 21 2015 Moritz Bunkus <moritz@bunkus.org> 8.5.1-1
|
|
|
|
- New version
|
|
|
|
|
2015-10-17 07:59:28 +00:00
|
|
|
* Sat Oct 17 2015 Moritz Bunkus <moritz@bunkus.org> 8.5.0-1
|
|
|
|
- New version
|
|
|
|
|
2015-09-19 11:13:19 +00:00
|
|
|
* Sat Sep 19 2015 Moritz Bunkus <moritz@bunkus.org> 8.4.0-1
|
|
|
|
- New version
|
|
|
|
|
2015-08-15 22:23:33 +00:00
|
|
|
* Sat Aug 15 2015 Moritz Bunkus <moritz@bunkus.org> 8.3.0-1
|
|
|
|
- Removed support for wxWidgets-based GUIs
|
|
|
|
|
2015-05-09 11:43:04 +00:00
|
|
|
* Sat May 9 2015 Moritz Bunkus <moritz@bunkus.org> 7.8.0-1
|
|
|
|
- Add support for the Qt-based GUIs
|
|
|
|
|
2014-11-17 08:34:46 +00:00
|
|
|
* Sat Nov 15 2014 Moritz Bunkus <moritz@bunkus.org> 7.3.0-1
|
|
|
|
- Serious reorganization & fixes for rpmlint complaints
|