commit 3b812a2752394ad645b4ca0d771bca4937d045f6
Author: Martin Gansser <mgansser(a)online.de>
Date: Thu Aug 18 14:03:00 2022 +0200
Fixed gbc3 build command
Add fix-desktop-file.patch
Add fix-project-Component.patch
fix-desktop-file.patch | 20 ++++++++++++++++++++
fix-project-Component.patch | 10 ++++++++++
xt7-player-mpv.spec | 23 +++++++++++++----------
3 files changed, 43 insertions(+), 10 deletions(-)
---
diff --git a/fix-desktop-file.patch b/fix-desktop-file.patch
new file mode 100644
index 0000000..b8facb1
--- /dev/null
+++ b/fix-desktop-file.patch
@@ -0,0 +1,20 @@
+--- a/xt7-player-mpv.desktop.orig 2022-08-18 11:30:44.078463180 +0200
++++ b/xt7-player-mpv.desktop 2022-08-18 11:31:56.870304677 +0200
+@@ -1,13 +1,16 @@
+ [Desktop Entry]
+ Name=xt7-player-mpv
++GenericName=Media player
++GenericName[de]=Medienwiedergabe
+ Comment=Yet another gui for mpv
+ Comment[pt_BR]=Reprodutor de mÃdia
+ Comment[it_IT]=Una gui quasi completa per mpv
+ Comment[ru]=Графический интерфейс к mpv
++Comment[de]=Eine weitere Benutzeroberfläche für mpv
+ Exec=env GB_GUI_PLATFORM=x11 xt7-player-mpv.gambas
+ Icon=xt7-player-mpv
+ Terminal=false
+ Type=Application
+ StartupNotify=true
+
MimeType=audio/ogg;audio/mp3;audio/mpeg3;audio/mpeg4;audio/mpg;audio/mpeg;audio/mpegurl;audio/m3u;audio/mp4;audio/wav;video/msvideo;video/mpeg4;video/mpeg;video/x-m4v;video/x-mpeg;video/x-mpeg2;video/mp4;video/x-msmpeg;video/vnd.mpegurl;video/x-mpegurl;video/x-msvideo;video/quicktime;video/x-qtc;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wma;audio/x-ms-wax;audio/x-ms-wmp;audio/x-ms-wmv;video/x-ms-asf;video/x-ms-asf-plugin;video/x-ms-asx;video/x-ms-wax;video/x-ms-wmp;video/x-ms-wmv;video/x-ms-wma;video/x-ms-wvx;video/x-ms-wmx;video/x-ms-wm;application/asx;application/x-ms-asf;application/vnd.ms-asf;application/x-ms-wmd;application/x-ms-wmz;audio/scpls;audio/x-scpls;audio/x-pls;audio/vnd.mpegurl;audio/x-mpg;audio/x-mpeg;audio/x-mpeg3;audio/x-mpegurl;audio/x-realaudio;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;application/x-pn-realaudio;audio/vnd.rn-realaudio;video/x-realvideo;video/x-pn-realvideo;video/vnd.rn-realvideo;video/x-pn-realvideo-plugin;application/vnd.rn-realmedia;appl
ication/vnd.rn-realmedia-vbr;application/vnd.rn-realplayer;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;video/nsv;audio/x-mp3;video/x-ogm;video/x-theora;audio/vorbis;audio/x-vorbis;audio/x-oggflac;application/x-ogg;application/ogg;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/x-wav;video/avi;video/x-avi;video/x-divx;video/x-fli;video/x-matroska;audio/x-matroska;application/x-mplayer2;application/x-cda;audio/aac;audio/ac3;audio/basic;audio/m4a;audio/x-aac;audio/x-adpcm;audio/x-flac;audio/x-m3u;audio/x-m4a;audio/x-musepack;audio/x-pn-windows-pcm;video/x-3gpp;video/x-3gpp2;video/mediaplayer;
+-Categories=Qt;AudioVideo;Audio;Video;Player;
++Categories=Qt;AudioVideo;Player;Video;
diff --git a/fix-project-Component.patch b/fix-project-Component.patch
new file mode 100644
index 0000000..f7a8802
--- /dev/null
+++ b/fix-project-Component.patch
@@ -0,0 +1,10 @@
+--- a/.project
++++ b/.project
+@@ -21,6 +21,7 @@
+ Component=gb.qt5.ext
+ Component=gb.signal
+ Component=gb.web
++Component=gb.util.web
+ Description="Xt7-Player, an (almost) complete mpv gui"
+ Authors="Antonio Orefice <xt7player(a)gmail.com>"
+ TabSize=2
diff --git a/xt7-player-mpv.spec b/xt7-player-mpv.spec
index 60c0548..65cbaf3 100644
--- a/xt7-player-mpv.spec
+++ b/xt7-player-mpv.spec
@@ -1,29 +1,27 @@
%global giturl
https://github.com/kokoko3k/xt7-player-mpv
-%global commit 6e211dfbc6af44f3f68e1d6da3f1c27db6c329fd
-%global gitdate 20191030
+%global commit 1d28e4380f6a9fcebf12b90b51512c2790a39983
+%global gitdate 20210120
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global gitrelease .%{gitdate}.git%{shortcommit}
Name: xt7-player-mpv
Version: 0.34.3172
#Release: 0.1%%{?gitrelease}%%{?dist}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Qt/Gambas gui to mpv media player
License: GPLv3+
URL:
http://xt7-player.sourceforge.net/xt7forum/
-#Source0: %%{giturl}/archive/%%{commit}/%%{name}-%%{shortcommit}.tar.gz
+# Source0: %%{giturl}/archive/%%{commit}/%%{name}-%%{shortcommit}.tar.gz
Source0: %{giturl}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0: fix-desktop-file.patch
+Patch1: fix-project-Component.patch
BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils
BuildRequires: gettext
-%if 0%{?fedora} <= 33
-BuildRequires: gambas3-devel >= 3.8.4
-%else
BuildRequires: gambas3-dev-tools
BuildRequires: gambas3-gb-desktop-x11
BuildRequires: gambas3-gb-qt5-wayland
-%endif
BuildRequires: gambas3-gb-args
BuildRequires: gambas3-gb-compress
BuildRequires: gambas3-gb-db
@@ -87,13 +85,13 @@ more.
sed -i '/project_group/d' xt7-player-mpv.appdata.xml
%build
-gbc3 -e -a -g -t -p -m
+gbc3 -e -a -g -t -f public-module -f public-control
gba3
%install
# executable
mkdir -p %{buildroot}%{_bindir}
-# install -m755 %{name}-%{commit}.gambas %{buildroot}%{_bindir}/%{name}.gambas
+# install -m755 %%{name}-%%{commit}.gambas %%{buildroot}%%{_bindir}/%%{name}.gambas
install -m755 %{name}-%{version}.gambas %{buildroot}%{_bindir}/%{name}.gambas
#icons
@@ -122,6 +120,11 @@ appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/*.appdata.xml
%{_metainfodir}/%{name}*.xml
%changelog
+* Thu Aug 18 2022 Martin Gansser <martinkg(a)fedoraproject.org> - 0.34.3172-3
+- Fixed gbc3 build command
+- Add fix-desktop-file.patch
+- Add fix-project-Component.patch
+
* Mon Aug 08 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
0.34.3172-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1