SHA256
1
0
forked from pool/polari

Accepting request 1111673 from GNOME:Next

New stable release

OBS-URL: https://build.opensuse.org/request/show/1111673
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/polari?expand=0&rev=124
This commit is contained in:
Bjørn Lie 2023-09-18 06:37:55 +00:00 committed by Git OBS Bridge
parent 9b76dee78f
commit 2ab595ba1d
5 changed files with 18 additions and 60 deletions

View File

@ -1,52 +0,0 @@
From 41256a5842dc9d95494bf0bbd6e97875b817197f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Fri, 16 Jun 2023 21:40:24 +0200
Subject: [PATCH] build: Only define GjsContext autocleanup if necessary
Gjs now calls G_DEFINE_AUTOPTR_CLEANUP_FUNC itself, so only define
it for older versions to avoid a compiler warning.
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/274>
---
meson.build | 8 ++++++++
src/polari.c | 2 ++
2 files changed, 10 insertions(+)
diff --git a/meson.build b/meson.build
index b667f931..a2f74160 100644
--- a/meson.build
+++ b/meson.build
@@ -42,8 +42,16 @@ conf = configuration_data()
conf.set_quoted('PKGLIBDIR', pkglibdir)
cc = meson.get_compiler('c')
+gjs_has_autocleanup = cc.compiles(
+'''
+#include <gjs/gjs.h>
+void main(void) { g_autoptr(GjsContext) context = NULL; }
+''',
+ dependencies: [gjs])
+
conf.set('HAVE_STRCASESTR', cc.has_function('strcasestr'))
conf.set('SNAPSHOT', get_option('snapshot'))
+conf.set('GJS_HAS_AUTOCLEANUP', gjs_has_autocleanup)
config_h = declare_dependency(
sources: configure_file(
diff --git a/src/polari.c b/src/polari.c
index 8cb9d454..8f3ddc18 100644
--- a/src/polari.c
+++ b/src/polari.c
@@ -3,7 +3,9 @@
#include "config.h"
+#ifndef GJS_HAS_AUTOCLEANUP
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GjsContext, g_object_unref)
+#endif
#define JS_MAIN "resource:///org/gnome/Polari/js/main.js"
--
GitLab

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:17a192dee61f58e3cd4472500be7011946b99fbe52bc5ac124faaeac2f334147
size 1128316

3
polari-45.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9db7ddc094aa8557f19177e164c42d8be167f54724b927130b7621c829c1d4a1
size 1060220

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sat Sep 16 21:59:28 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 45.0:
+ Remove GNOME from networks list
+ Port to new Adwaita widgets
+ Improve visuals
+ Fix selecting existing room in mobile view
+ Fix user-online notification
+ Misc. bug fixes and cleanups
+ Updated translations.
- Drop 41256a58.patch: Fixed upstream.
-------------------------------------------------------------------
Tue Jul 11 17:53:48 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -18,17 +18,14 @@
Name: polari
Version: 43.0
Version: 45.0
Release: 0
Summary: An IRC Client for GNOME
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Networking/IRC
URL: https://wiki.gnome.org/Apps/Polari
Source0: https://download.gnome.org/sources/polari/43/%{name}-%{version}.tar.xz
Source0: https://download.gnome.org/sources/polari/45/%{name}-%{version}.tar.xz
Source99: polari-rpmlintrc
# PATCH-FIX-UPSTREAM 41256a58.patch -- build: Only define GjsContext autocleanup if necessary
Patch1: https://gitlab.gnome.org/GNOME/polari/-/commit/41256a58.patch
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils