mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
Merge pull request #240 from Rafostar/pkgs
Update Flatpak, remove RPM specfiles
This commit is contained in:
2
.github/workflows/flatpak.yml
vendored
2
.github/workflows/flatpak.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
name: "Flatpak"
|
name: "Flatpak"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-41
|
image: bilelmoussaoui/flatpak-github-actions:gnome-42
|
||||||
options: --privileged
|
options: --privileged
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@@ -40,7 +40,6 @@
|
|||||||
"flathub/lib/libdvdnav.json",
|
"flathub/lib/libdvdnav.json",
|
||||||
"flathub/lib/libass.json",
|
"flathub/lib/libass.json",
|
||||||
"flathub/lib/ffmpeg.json",
|
"flathub/lib/ffmpeg.json",
|
||||||
"testing/libsoup3.json",
|
|
||||||
"testing/gstreamer.json",
|
"testing/gstreamer.json",
|
||||||
"testing/gst-plugins-rs.json",
|
"testing/gst-plugins-rs.json",
|
||||||
"testing/gtuber.json",
|
"testing/gtuber.json",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"app-id": "com.github.rafostar.Clapper",
|
"app-id": "com.github.rafostar.Clapper",
|
||||||
"runtime": "org.gnome.Platform",
|
"runtime": "org.gnome.Platform",
|
||||||
"runtime-version": "41",
|
"runtime-version": "42",
|
||||||
"sdk": "org.gnome.Sdk",
|
"sdk": "org.gnome.Sdk",
|
||||||
"command": "com.github.rafostar.Clapper",
|
"command": "com.github.rafostar.Clapper",
|
||||||
"finish-args": [
|
"finish-args": [
|
||||||
@@ -33,9 +33,8 @@
|
|||||||
"flathub/lib/libass.json",
|
"flathub/lib/libass.json",
|
||||||
"flathub/lib/ffmpeg.json",
|
"flathub/lib/ffmpeg.json",
|
||||||
"flathub/lib/uchardet.json",
|
"flathub/lib/uchardet.json",
|
||||||
"testing/libsoup3.json",
|
|
||||||
"flathub/gstreamer-1.0/gstreamer.json",
|
"flathub/gstreamer-1.0/gstreamer.json",
|
||||||
"flathub/lib/gtk4.json",
|
"testing/gtk4.json",
|
||||||
"flathub/lib/libadwaita.json",
|
"flathub/lib/libadwaita.json",
|
||||||
"testing/gtuber.json",
|
"testing/gtuber.json",
|
||||||
{
|
{
|
||||||
|
Submodule pkgs/flatpak/flathub updated: 4b3bdfab8c...4f3bee93b7
31
pkgs/flatpak/testing/gtk4-popover-unrealize.patch
Normal file
31
pkgs/flatpak/testing/gtk4-popover-unrealize.patch
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
From b413ee2c7d458c7005d3d3d1da8822cd86893ac0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Rafostar <40623528+Rafostar@users.noreply.github.com>
|
||||||
|
Date: Fri, 4 Dec 2020 19:25:34 +0100
|
||||||
|
Subject: [PATCH] popover: Call unrealize on hide
|
||||||
|
|
||||||
|
When popover is shown "realize" method is called which creates a new
|
||||||
|
surface for popup. Unfortunately this causes performance drop on Wayland until that
|
||||||
|
surface is destroyed what happens inside "unrealize" method during popover destruction.
|
||||||
|
|
||||||
|
This commit changes default behavior in a way that surface will be destroyed
|
||||||
|
when popover is closed and app will ragain the performance it lost when
|
||||||
|
popover was shown.
|
||||||
|
---
|
||||||
|
gtk/gtkpopover.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
|
||||||
|
index 504dcd6cc1..a7a764d483 100644
|
||||||
|
--- a/gtk/gtkpopover.c
|
||||||
|
+++ b/gtk/gtkpopover.c
|
||||||
|
@@ -951,6 +951,7 @@ gtk_popover_hide (GtkWidget *widget)
|
||||||
|
|
||||||
|
gtk_popover_set_mnemonics_visible (GTK_POPOVER (widget), FALSE);
|
||||||
|
_gtk_widget_set_visible_flag (widget, FALSE);
|
||||||
|
+ gtk_widget_unrealize (widget);
|
||||||
|
gtk_widget_unmap (widget);
|
||||||
|
g_signal_emit (widget, signals[CLOSED], 0);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
37
pkgs/flatpak/testing/gtk4.json
Normal file
37
pkgs/flatpak/testing/gtk4.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"name": "gtk",
|
||||||
|
"buildsystem": "meson",
|
||||||
|
"build-options": {
|
||||||
|
"build-args": [
|
||||||
|
"--share=network"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"config-opts": [
|
||||||
|
"--buildtype=release",
|
||||||
|
|
||||||
|
"-Dwin32-backend=false",
|
||||||
|
"-Dmacos-backend=false",
|
||||||
|
"-Dmedia-ffmpeg=disabled",
|
||||||
|
"-Dprint-cups=disabled",
|
||||||
|
"-Dintrospection=enabled",
|
||||||
|
"-Ddemos=false",
|
||||||
|
"-Dbuild-examples=false",
|
||||||
|
"-Dbuild-tests=false"
|
||||||
|
],
|
||||||
|
"cleanup": [
|
||||||
|
"/bin/gtk4-builder-tool",
|
||||||
|
"/bin/gtk4-encode-symbolic-svg"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://gitlab.gnome.org/GNOME/gtk.git",
|
||||||
|
"tag": "4.6.2",
|
||||||
|
"commit": "aec7ca82007dbe07faee6be084d20758ebac2b91"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"path": "gtk4-popover-unrealize.patch"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "libsoup3",
|
|
||||||
"buildsystem": "meson",
|
|
||||||
"config-opts": [
|
|
||||||
"-Dintrospection=enabled",
|
|
||||||
"-Dvapi=disabled",
|
|
||||||
"-Dtests=false",
|
|
||||||
"-Dsysprof=disabled",
|
|
||||||
"-Dhttp2_tests=disabled",
|
|
||||||
"-Dpkcs11_tests=disabled"
|
|
||||||
],
|
|
||||||
"cleanup": [
|
|
||||||
"/include",
|
|
||||||
"/lib/pkgconfig"
|
|
||||||
],
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://gitlab.gnome.org/GNOME/libsoup.git",
|
|
||||||
"tag": "3.0.4",
|
|
||||||
"commit": "25a728020c4b53b5db4c4c675070e92f947fbd4d"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
3
pkgs/rpm/.gitignore
vendored
3
pkgs/rpm/.gitignore
vendored
@@ -1,3 +0,0 @@
|
|||||||
.osc/
|
|
||||||
clapper/
|
|
||||||
.lock
|
|
@@ -1 +0,0 @@
|
|||||||
addFilter("explicit-lib-dependency")
|
|
@@ -1,193 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package clapper
|
|
||||||
#
|
|
||||||
# Copyright (C) 2020 sp1rit
|
|
||||||
# Copyright (C) 2020-21 Rafostar
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
%define debug_package %{nil}
|
|
||||||
|
|
||||||
%global appname com.github.rafostar.Clapper
|
|
||||||
%global gst_version 1.18.0
|
|
||||||
%global gtk4_version 4.0.0
|
|
||||||
%global meson_version 0.50
|
|
||||||
%global glib2_version 2.56.0
|
|
||||||
%global soup_version 3.0.0
|
|
||||||
|
|
||||||
Name: clapper
|
|
||||||
Version: 0.4.1
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: Simple and modern GNOME media player
|
|
||||||
|
|
||||||
License: GPL-3.0
|
|
||||||
URL: https://github.com/Rafostar/clapper
|
|
||||||
BuildRoot: %{_builddir}/%{name}-%{version}-build
|
|
||||||
Source0: _service
|
|
||||||
|
|
||||||
BuildRequires: meson >= %{meson_version}
|
|
||||||
BuildRequires: gtk4-devel >= %{gtk4_version}
|
|
||||||
BuildRequires: glib2-devel >= %{glib2_version}
|
|
||||||
BuildRequires: gobject-introspection-devel
|
|
||||||
BuildRequires: gjs
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: desktop-file-utils
|
|
||||||
BuildRequires: hicolor-icon-theme
|
|
||||||
|
|
||||||
Requires: gjs
|
|
||||||
Requires: gtk4 >= %{gtk4_version}
|
|
||||||
Requires: libadwaita
|
|
||||||
Requires: hicolor-icon-theme
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
# SUSE recommends group tag, while Fedora discourages their use
|
|
||||||
Group: Productivity/Multimedia/Video/Players
|
|
||||||
|
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
BuildRequires: gstreamer-devel >= %{gst_version}
|
|
||||||
BuildRequires: gstreamer-plugins-base-devel >= %{gst_version}
|
|
||||||
BuildRequires: Mesa-libGLESv2-devel
|
|
||||||
BuildRequires: Mesa-libGLESv3-devel
|
|
||||||
|
|
||||||
Requires: libsoup-devel >= %{soup_version}
|
|
||||||
Requires: gstreamer >= %{gst_version}
|
|
||||||
Requires: gstreamer-plugins-base >= %{gst_version}
|
|
||||||
Requires: gstreamer-plugins-good >= %{gst_version}
|
|
||||||
Requires: gstreamer-plugins-bad >= %{gst_version}
|
|
||||||
|
|
||||||
# Popular video decoders
|
|
||||||
Recommends: gstreamer-plugins-libav >= %{gst_version}
|
|
||||||
|
|
||||||
# CD Playback
|
|
||||||
Suggests: gstreamer-plugins-ugly
|
|
||||||
# Intel/AMD video acceleration
|
|
||||||
Suggests: gstreamer-plugins-vaapi
|
|
||||||
%else
|
|
||||||
BuildRequires: glibc-all-langpacks
|
|
||||||
BuildRequires: gstreamer1-devel >= %{gst_version}
|
|
||||||
BuildRequires: gstreamer1-plugins-base-devel >= %{gst_version}
|
|
||||||
BuildRequires: mesa-libGL-devel
|
|
||||||
BuildRequires: mesa-libGLES-devel
|
|
||||||
BuildRequires: mesa-libGLU-devel
|
|
||||||
BuildRequires: mesa-libEGL-devel
|
|
||||||
|
|
||||||
Requires: libsoup3-devel
|
|
||||||
Requires: gstreamer1 >= %{gst_version}
|
|
||||||
Requires: gstreamer1-plugins-base >= %{gst_version}
|
|
||||||
Requires: gstreamer1-plugins-good >= %{gst_version}
|
|
||||||
Requires: gstreamer1-plugins-bad-free >= %{gst_version}
|
|
||||||
|
|
||||||
# ASS subtitles (assrender)
|
|
||||||
Recommends: gstreamer1-plugins-bad-free-extras >= %{gst_version}
|
|
||||||
|
|
||||||
# CD Playback
|
|
||||||
Suggests: gstreamer1-plugins-ugly-free
|
|
||||||
# Intel/AMD video acceleration
|
|
||||||
Suggests: gstreamer1-vaapi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
A GNOME media player built using GJS with GTK4 toolkit and powered by GStreamer with OpenGL rendering.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{_sourcedir}/%{name}-%{version} -T -D
|
|
||||||
|
|
||||||
%build
|
|
||||||
%meson
|
|
||||||
%meson_build
|
|
||||||
|
|
||||||
%install
|
|
||||||
%meson_install
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%suse_update_desktop_file %{appname}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
|
||||||
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license COPYING
|
|
||||||
%doc README.md
|
|
||||||
%{_bindir}/%{appname}*
|
|
||||||
%{_bindir}/clapper
|
|
||||||
%{_datadir}/%{appname}/
|
|
||||||
%{_datadir}/icons/hicolor/*/apps/*.svg
|
|
||||||
%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml
|
|
||||||
%{_datadir}/mime/packages/%{appname}.xml
|
|
||||||
%{_datadir}/applications/*.desktop
|
|
||||||
%{_datadir}/metainfo/*.metainfo.xml
|
|
||||||
%{_datadir}/gir-1.0/GstClapper-1.0.gir
|
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/%{appname}.mo
|
|
||||||
%{_libdir}/%{appname}/
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Thu Feb 17 2022 Rafostar <rafostar.github@gmail.com> - 0.4.1-2
|
|
||||||
- Require libsoup3
|
|
||||||
|
|
||||||
* Mon Dec 20 2021 Rafostar <rafostar.github@gmail.com> - 0.4.1-1
|
|
||||||
- New version
|
|
||||||
|
|
||||||
* Sun Sep 12 2021 Rafostar <rafostar.github@gmail.com> - 0.4.0-1
|
|
||||||
- New version
|
|
||||||
|
|
||||||
* Thu Aug 26 2021 Rafostar <rafostar.github@gmail.com> - 0.3.0-4
|
|
||||||
- Install translations
|
|
||||||
|
|
||||||
* Thu Aug 26 2021 Rafostar <rafostar.github@gmail.com> - 0.3.0-3
|
|
||||||
- Install clapper symlink
|
|
||||||
|
|
||||||
* Mon Aug 23 2021 Rafostar <rafostar.github@gmail.com> - 0.3.0-2
|
|
||||||
- Require libadwaita
|
|
||||||
|
|
||||||
* Fri Jun 18 2021 Rafostar <rafostar.github@gmail.com> - 0.3.0-1
|
|
||||||
- New version
|
|
||||||
|
|
||||||
* Mon Apr 19 2021 Rafostar <rafostar.github@gmail.com> - 0.2.1-1
|
|
||||||
- New version
|
|
||||||
|
|
||||||
* Tue Apr 13 2021 Rafostar <rafostar.github@gmail.com> - 0.2.0-1
|
|
||||||
- New version
|
|
||||||
|
|
||||||
* Fri Feb 26 2021 Rafostar <rafostar.github@gmail.com> - 0.1.0-1
|
|
||||||
- New version
|
|
||||||
|
|
||||||
* Sun Feb 7 2021 Rafostar <rafostar.github@gmail.com> - 0.0.0-10
|
|
||||||
- Install gstclapper libs to app named subdirectory
|
|
||||||
|
|
||||||
* Fri Feb 5 2021 Rafostar <rafostar.github@gmail.com> - 0.0.0-9
|
|
||||||
- Update build with gstclapper libs support
|
|
||||||
|
|
||||||
* Thu Jan 21 2021 Rafostar <rafostar.github@gmail.com> - 0.0.0-8
|
|
||||||
- Use metainfo instead of deprecated appdata
|
|
||||||
|
|
||||||
* Mon Jan 18 2021 Rafostar <rafostar.github@gmail.com> - 0.0.0-7
|
|
||||||
- Remove gjs-1.0 files
|
|
||||||
|
|
||||||
* Sun Dec 20 2020 Rafostar <rafostar.github@gmail.com> - 0.0.0-6
|
|
||||||
- Include additional app binaries
|
|
||||||
|
|
||||||
* Sat Oct 31 2020 Rafostar <rafostar.github@gmail.com> - 0.0.0-5
|
|
||||||
- Added metainfo
|
|
||||||
|
|
||||||
* Sun Oct 25 2020 Rafostar <rafostar.github@gmail.com> - 0.0.0-4
|
|
||||||
- Added gschema
|
|
||||||
|
|
||||||
* Wed Oct 14 2020 Rafostar <rafostar.github@gmail.com> - 0.0.0-3
|
|
||||||
- Update to GTK4
|
|
||||||
|
|
||||||
* Sat Sep 19 22:02:00 CEST 2020 sp1rit - 0.0.0-2
|
|
||||||
- Added suse_update_desktop_file macro for SuSE packages
|
|
||||||
|
|
||||||
* Fri Sep 18 2020 Rafostar <rafostar.github@gmail.com> - 0.0.0-1
|
|
||||||
- Initial package
|
|
Reference in New Issue
Block a user