Accepting request 894770 from GNOME:Next
Scripted push from GNOME:Next OBS-URL: https://build.opensuse.org/request/show/894770 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/anjuta?expand=0&rev=214
This commit is contained in:
parent
1e0c74ddaa
commit
02a2b87e23
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 14 19:42:44 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
- Add libgda-6.patch: support GDA 6
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jan 25 14:05:22 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
Sat Jan 25 14:05:22 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
13
anjuta.spec
13
anjuta.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package anjuta
|
# spec file for package anjuta
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,6 +25,8 @@ Group: Development/Tools/IDE
|
|||||||
URL: https://wiki.gnome.org/Apps/Anjuta
|
URL: https://wiki.gnome.org/Apps/Anjuta
|
||||||
Source0: https://download.gnome.org/sources/anjuta/3.34/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/anjuta/3.34/%{name}-%{version}.tar.xz
|
||||||
Source99: %{name}-rpmlintrc
|
Source99: %{name}-rpmlintrc
|
||||||
|
# PATCH-FIX-UPSTREAM libgda-6.patch gmbr3@opensuse.org -- Require and support GDA 6
|
||||||
|
Patch0: libgda-6.patch
|
||||||
BuildRequires: autogen
|
BuildRequires: autogen
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
@ -44,6 +46,7 @@ BuildRequires: subversion-devel
|
|||||||
BuildRequires: translation-update-upstream
|
BuildRequires: translation-update-upstream
|
||||||
BuildRequires: vala
|
BuildRequires: vala
|
||||||
BuildRequires: yelp-tools
|
BuildRequires: yelp-tools
|
||||||
|
BuildRequires: gnome-common
|
||||||
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.0.0
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.0.0
|
||||||
BuildRequires: pkgconfig(gdl-3.0) >= 3.5.5
|
BuildRequires: pkgconfig(gdl-3.0) >= 3.5.5
|
||||||
BuildRequires: pkgconfig(gladeui-2.0) >= 3.12.0
|
BuildRequires: pkgconfig(gladeui-2.0) >= 3.12.0
|
||||||
@ -51,7 +54,7 @@ BuildRequires: pkgconfig(glib-2.0) >= 2.34.0
|
|||||||
BuildRequires: pkgconfig(gtk+-3.0) >= 3.6.0
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.6.0
|
||||||
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.0.0
|
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.0.0
|
||||||
BuildRequires: pkgconfig(libdevhelp-3.0) >= 3.7.5
|
BuildRequires: pkgconfig(libdevhelp-3.0) >= 3.7.5
|
||||||
BuildRequires: pkgconfig(libgda-5.0) >= 5.0.0
|
BuildRequires: pkgconfig(libgda-6.0) >= 6.0.0
|
||||||
BuildRequires: pkgconfig(libgvc)
|
BuildRequires: pkgconfig(libgvc)
|
||||||
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.23
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.23
|
||||||
BuildRequires: pkgconfig(serf-1)
|
BuildRequires: pkgconfig(serf-1)
|
||||||
@ -62,7 +65,7 @@ Requires: autogen
|
|||||||
Requires: automake
|
Requires: automake
|
||||||
Requires: gettext
|
Requires: gettext
|
||||||
# libgda-sqlite is needed by the symbol-db plugin. See bnc#624924.
|
# libgda-sqlite is needed by the symbol-db plugin. See bnc#624924.
|
||||||
Requires: libgda-sqlite
|
Requires: libgda-sqlite >= 6.0.0
|
||||||
Requires: libtool
|
Requires: libtool
|
||||||
%ifnarch ia64 s390 s390x aarch64 ppc64le
|
%ifnarch ia64 s390 s390x aarch64 ppc64le
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
@ -125,10 +128,12 @@ GNOME desktop.
|
|||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
translation-update-upstream
|
translation-update-upstream
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export AUTOPOINT='intltoolize --automake --copy'
|
||||||
|
autoreconf -fiv
|
||||||
%configure\
|
%configure\
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-glade-catalog \
|
--enable-glade-catalog \
|
||||||
|
87
libgda-6.patch
Normal file
87
libgda-6.patch
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
From 77bf4308332d3660c136719c5590dd2e882e3f44 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ting-Wei Lan <lantw@src.gnome.org>
|
||||||
|
Date: Sat, 22 Sep 2018 14:51:42 +0800
|
||||||
|
Subject: [PATCH] symbol-db: Fix build with the current libgda master branch
|
||||||
|
|
||||||
|
GdaTimestamp has been removed and replaced by GDateTime. The version
|
||||||
|
number went back to 5.90 and bumped to 5.91 on the libgda master branch.
|
||||||
|
---
|
||||||
|
configure.ac | 2 +-
|
||||||
|
plugins/symbol-db/symbol-db-engine-core.c | 21 +++++++++++++++++++++
|
||||||
|
2 files changed, 22 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index eeda3ed3e..569b81fe1 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -37,7 +37,7 @@ GTHREAD_REQUIRED=2.22.0
|
||||||
|
GDK_PIXBUF_REQUIRED=2.0.0
|
||||||
|
GDA4_REQUIRED=4.2.0
|
||||||
|
GDA5_REQUIRED=5.0.0
|
||||||
|
-GDA6_REQUIRED=5.99.0
|
||||||
|
+GDA6_REQUIRED=6.0.0
|
||||||
|
LIBXML_REQUIRED=2.4.23
|
||||||
|
GDL_REQUIRED=3.5.5
|
||||||
|
LIBWNCK_REQUIRED=2.12
|
||||||
|
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
|
||||||
|
index 37d6e048a..c3f0d4f55 100644
|
||||||
|
--- a/plugins/symbol-db/symbol-db-engine-core.c
|
||||||
|
+++ b/plugins/symbol-db/symbol-db-engine-core.c
|
||||||
|
@@ -5443,7 +5443,11 @@ symbol_db_engine_update_project_symbols (SymbolDBEngine *dbe,
|
||||||
|
G_TYPE_STRING,
|
||||||
|
G_TYPE_INT,
|
||||||
|
G_TYPE_INT,
|
||||||
|
+#ifdef HAVE_GDA6
|
||||||
|
+ G_TYPE_DATE_TIME,
|
||||||
|
+#else
|
||||||
|
GDA_TYPE_TIMESTAMP,
|
||||||
|
+#endif
|
||||||
|
G_TYPE_NONE
|
||||||
|
};
|
||||||
|
data_model = gda_connection_statement_execute_select_full (priv->db_connection,
|
||||||
|
@@ -5473,7 +5477,11 @@ symbol_db_engine_update_project_symbols (SymbolDBEngine *dbe,
|
||||||
|
for (i = 0; i < num_rows; i++)
|
||||||
|
{
|
||||||
|
const GValue *value, *value1;
|
||||||
|
+#ifdef HAVE_GDA6
|
||||||
|
+ GDateTime *timestamp;
|
||||||
|
+#else
|
||||||
|
const GdaTimestamp *timestamp;
|
||||||
|
+#endif
|
||||||
|
const gchar *file_name;
|
||||||
|
gchar *file_abs_path = NULL;
|
||||||
|
struct tm filetm;
|
||||||
|
@@ -5530,17 +5538,30 @@ symbol_db_engine_update_project_symbols (SymbolDBEngine *dbe,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
+#ifdef HAVE_GDA6
|
||||||
|
+ timestamp = g_value_get_boxed (value1);
|
||||||
|
+#else
|
||||||
|
timestamp = gda_value_get_timestamp (value1);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* fill a struct tm with the date retrieved by the string. */
|
||||||
|
/* string is something like '2007-04-18 23:51:39' */
|
||||||
|
memset (&filetm, 0, sizeof (struct tm));
|
||||||
|
+#ifdef HAVE_GDA6
|
||||||
|
+ filetm.tm_year = g_date_time_get_year (timestamp) - 1900;
|
||||||
|
+ filetm.tm_mon = g_date_time_get_month (timestamp) - 1;
|
||||||
|
+ filetm.tm_mday = g_date_time_get_day_of_month (timestamp);
|
||||||
|
+ filetm.tm_hour = g_date_time_get_hour (timestamp);
|
||||||
|
+ filetm.tm_min = g_date_time_get_minute (timestamp);
|
||||||
|
+ filetm.tm_sec = g_date_time_get_second (timestamp);
|
||||||
|
+#else
|
||||||
|
filetm.tm_year = timestamp->year - 1900;
|
||||||
|
filetm.tm_mon = timestamp->month - 1;
|
||||||
|
filetm.tm_mday = timestamp->day;
|
||||||
|
filetm.tm_hour = timestamp->hour;
|
||||||
|
filetm.tm_min = timestamp->minute;
|
||||||
|
filetm.tm_sec = timestamp->second;
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* remove one hour to the db_file_time. */
|
||||||
|
db_time = mktime (&filetm) - 3600;
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
Loading…
Reference in New Issue
Block a user