commit 85f590200815bcdd2ce98053c0f050db4f183ab5
Author: Martin Gansser <mgansser(a)online.de>
Date: Fri Oct 13 18:49:39 2017 +0200
Initial import (#4641).
.gitignore | 1 +
mp4tools-wx-config.patch | 27 +++++++++++
mp4tools.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 142 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b9986f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MP4Tools-3.5.tar.bz2
diff --git a/mp4tools-wx-config.patch b/mp4tools-wx-config.patch
new file mode 100644
index 0000000..7b73e52
--- /dev/null
+++ b/mp4tools-wx-config.patch
@@ -0,0 +1,27 @@
+--- configure.orig 2017-03-20 21:25:19.000000000 +0100
++++ configure 2017-09-01 12:40:14.860865091 +0200
+@@ -4601,18 +4601,18 @@
+
+ WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
+ wx_config_major_version=`echo $WX_VERSION | \
+- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
++ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\1/'`
+ wx_config_minor_version=`echo $WX_VERSION | \
+- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
++ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\2/'`
+ wx_config_micro_version=`echo $WX_VERSION | \
+- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
++ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\3/'`
+
+ wx_requested_major_version=`echo $min_wx_version | \
+- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
++ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\1/'`
+ wx_requested_minor_version=`echo $min_wx_version | \
+- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
++ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\2/'`
+ wx_requested_micro_version=`echo $min_wx_version | \
+- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
++ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\3/'`
+
+
+ wx_ver_ok=""
diff --git a/mp4tools.spec b/mp4tools.spec
new file mode 100644
index 0000000..e24937d
--- /dev/null
+++ b/mp4tools.spec
@@ -0,0 +1,113 @@
+%global pname MP4Tools
+
+Name: mp4tools
+Version: 3.5
+Release: 3%{?dist}
+Summary: A free cross-platform tool to manipulate MP4 files
+License: GPLv2
+URL:
http://www.mp4joiner.org
+Source0:
http://app.oldfoss.com:81/download/MP4Joiner/%{pname}-%{version}.tar.bz2
+# fedora specific patch
+Patch0: %{name}-wx-config.patch
+
+BuildRequires: compat-wxGTK3-gtk2-devel
+BuildRequires: desktop-file-utils
+BuildRequires: ffmpeg
+BuildRequires: ffmpeg-devel
+BuildRequires: gettext-devel
+BuildRequires: gpac
+BuildRequires: wxsvg-devel
+Requires: ffmpeg
+
+
+%description
+MP4Tools is a collection of cross-platform free tools to manipulate MP4 files.
+It contains following applications:
+⦁ MP4Joiner is a free application that allows join multiple MP4 files into one
+⦁ MP4Splitter is a free application that allows split a MP4 file in multiple
+files
+
+
+%prep
+%autosetup -n %{pname}-%{version}
+
+%build
+
+%configure \
+%if (0%{?fedora} && 0%{?fedora} < 28)
+ --with-wx-config=%{_bindir}/wx-config-3.0-gtk2
+%endif
+
+%make_build
+
+
+%install
+%make_install
+
+#menu
+mkdir -p %{buildroot}%{_datadir}/applications
+cat > %{buildroot}%{_datadir}/applications/mp4joiner.desktop <<EOF
+[Desktop Entry]
+Name=MP4Joiner
+Comment=Join multiple MP4 files.
+Exec=mp4joiner
+Icon=mp4joiner
+Type=Application
+Terminal=false
+Categories=Video;
+EOF
+
+cat > %{buildroot}%{_datadir}/applications/mp4splitter.desktop <<EOF
+[Desktop Entry]
+Name=MP4Splitter
+Comment=Split MP4 files.
+Exec=mp4splitter
+Icon=mp4splitter
+Type=Application
+Terminal=false
+Categories=Video;
+EOF
+
+#icon
+mkdir -p %{buildroot}%{_datadir}/pixmaps
+install -m 644 resources/mp4joiner.png \
+%{buildroot}%{_datadir}/pixmaps/mp4joiner.png
+
+install -m 644 resources/mp4splitter.png \
+%{buildroot}%{_datadir}/pixmaps/mp4splitter.png
+# remove not relevant file
+rm -f %{buildroot}%{_docdir}/%{name}/INSTALL
+
+rm -f %{buildroot}%{_pkgdocdir}/COPYING
+
+
+%find_lang %name
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/mp4joiner.desktop
+desktop-file-validate %{buildroot}%{_datadir}/applications/mp4splitter.desktop
+
+%files -f %{name}.lang
+%doc README ChangeLog AUTHORS
+%license COPYING
+%{_bindir}/mp4joiner
+%{_bindir}/mp4splitter
+%{_datadir}/applications/mp4joiner.desktop
+%{_datadir}/applications/mp4splitter.desktop
+%{_datadir}/pixmaps/mp4joiner.png
+%{_datadir}/pixmaps/mp4splitter.png
+
+%changelog
+* Thu Oct 12 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 3.5-3
+- COPYING file does not report a GPLv3 license, use GPLv2
+- Do not use %%license and %%{_pkgdocdir} together
+
+* Sat Sep 02 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 3.5-2
+- remove scriptlets now longer needed
+
+* Fri Sep 01 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 3.5-1
+- Update to 3.5
+- Add %%{name}-wx-config.patch
+
+* Fri Sep 01 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 3.4-1
+- initial build
diff --git a/sources b/sources
index e69de29..3d5ec4f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3669260ed488b56254df2dd1bc602bbe MP4Tools-3.5.tar.bz2