Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
82894e127e
!16 update to version 44.0
From: @lwg99 
Reviewed-by: @open-bot 
Signed-off-by: @open-bot
2023-11-29 07:07:47 +00:00
lwg K
2030461181 update to version 44.0 2023-11-24 10:45:04 +08:00
openeuler-ci-bot
c0149bd2b0
!15 Update to 43.0.1
From: @dwl301 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
2023-02-03 08:46:36 +00:00
dwl301
5d5bcc6fed Update to 43.0.1 2023-01-31 18:00:59 +08:00
openeuler-ci-bot
e46b985908
!12 Upgrade to 42.1
From: @zhang__3125 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
2022-06-13 04:18:30 +00:00
zhang__3125
ec475cded6 Upgrade to 42.1 2022-06-09 11:14:27 +08:00
openeuler-ci-bot
66efb815a5
!6 fix spec changelog date
From: @loong-C 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
2022-05-30 06:29:23 +00:00
loong_C
c8c6aea143 fix spec changelog date 2022-05-19 09:47:27 +08:00
openeuler-ci-bot
0d0b5dc934 !3 Upgrade to 3.38.2
From: @weijin-deng
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-06-28 06:46:40 +00:00
weijin-deng
833f22c450 Upgrade to 3.38.2
Delete 0001-Fix-compiler-errors.patch which existed in version 3.38.2
Add sub package gnome-calculator-devel
2021-06-16 15:06:45 +08:00
5 changed files with 60 additions and 87 deletions

View File

@ -1,66 +0,0 @@
From 21cd87cee68108712aaba82e2b0c47ebdd6a70be Mon Sep 17 00:00:00 2001
From: lizhenhua <lizhenhua@sina.com>
Date: Wed, 10 Jun 2020 17:34:25 +0800
Subject: [PATCH] Fix compiler errors
---
lib/equation-parser.vala | 6 +++---
lib/math-equation.vala | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/equation-parser.vala b/lib/equation-parser.vala
index 668e1cd..f919d37 100644
--- a/lib/equation-parser.vala
+++ b/lib/equation-parser.vala
@@ -76,7 +76,7 @@ public class ParseNode : Object
public ParseNode.WithList (Parser parser, List<LexerToken> token_list, uint precedence, Associativity associativity, string? value = null)
{
this.parser = parser;
- this.token_list = token_list.copy();
+ this.token_list = token_list.copy_deep((CopyFunc) Object.ref);
this.precedence = precedence;
this.associativity = associativity;
this.value = value;
@@ -101,7 +101,7 @@ public class ParseNode : Object
public abstract class RNode : ParseNode
{
- public RNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
+ protected RNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
{
base (parser, token, precedence, associativity);
}
@@ -132,7 +132,7 @@ public abstract class RNode : ParseNode
public abstract class LRNode : ParseNode
{
- public LRNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
+ protected LRNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
{
base (parser, token, precedence, associativity);
}
diff --git a/lib/math-equation.vala b/lib/math-equation.vala
index bb9c771..65b10ab 100644
--- a/lib/math-equation.vala
+++ b/lib/math-equation.vala
@@ -824,7 +824,7 @@ public class MathEquation : Gtk.SourceBuffer
{
Gtk.TextIter iter;
get_iter_at_mark (out iter, get_insert ());
- (this as Gtk.TextBuffer).backspace (iter, true, true);
+ (this as Gtk.TextBuffer).backspace (ref iter, true, true);
insert_at_cursor ("^", -1);
return;
}
@@ -1245,7 +1245,7 @@ public class MathEquation : Gtk.SourceBuffer
{
Gtk.TextIter iter;
get_iter_at_mark (out iter, get_insert ());
- (this as Gtk.TextBuffer).backspace (iter, true, true);
+ (this as Gtk.TextBuffer).backspace (ref iter, true, true);
}
}
--
2.23.0

Binary file not shown.

Binary file not shown.

View File

@ -1,26 +1,38 @@
Name: gnome-calculator
Version: 3.30.1
Release: 3
Summary: A GNOME desktop calculator application
%global gtksourceview_version 5.3.0
%global libadwaita_version 1.2.0
Name: gnome-calculator
Version: 44.0
Release: 1
Summary: A desktop calculator
License: GPLv3+
URL: https://wiki.gnome.org/Apps/Calculator
Source0: https://download.gnome.org/sources/%{name}/3.30/%{name}-%{version}.tar.xz
Patch0000: 0001-Fix-compiler-errors.patch
Source0: https://download.gnome.org/sources/%{name}/44/%{name}-%{version}.tar.xz
BuildRequires: desktop-file-utils gettext itstool libmpc-devel libsoup-devel meson mpfr-devel
BuildRequires: pkgconfig(glib-2.0) pkgconfig(gtk+-3.0) pkgconfig(gtksourceview-3.0) pkgconfig(libxml-2.0)
BuildRequires: /usr/bin/appstream-util vala
BuildRequires: desktop-file-utils gettext itstool libmpc-devel libsoup3-devel meson mpfr-devel
BuildRequires: pkgconfig(glib-2.0) pkgconfig(gtk4) pkgconfig(gtksourceview-5) >= %{gtksourceview_version} pkgconfig(libxml-2.0)
BuildRequires: libappstream-glib vala vala-devel pkgconfig(gee-0.8)
BuildRequires: pkgconfig(libadwaita-1) >= %{libadwaita_version}
Provides: gcalctool = 6.6.2-3
Obsoletes: gcalctool < 6.6.2-3
Provides: gcalctool = %{version}
Obsoletes: gcalctool < %{version}
Requires: gtksourceview5%{?_isa} >= %{gtksourceview_version}
Requires: libadwaita%{?_isa} >= %{libadwaita_version}
%description
it is a powerful desktop calculator with logical, scientific
and financial modes. It uses a multi-precision package to
achieve a high degree of accuracy.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package help
Summary: Documents for gnome-calculator
Requires: man
@ -32,40 +44,67 @@ Man pages for gnome-calculator.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%find_lang gnome-calculator --with-gnome --all-name
%find_lang %{name} --with-gnome --all-name
%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/org.gnome.Calculator.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.Calculator.desktop
%files -f gnome-calculator.lang
%license COPYING
%doc NEWS
%{_bindir}/*
%{_libdir}/girepository-1.0/*.typelib
%{_libdir}/libgcalc-2.so.1*
%{_libdir}/libgci-1.so.0*
%{_libexecdir}/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/*
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/gnome-shell/
%{_datadir}/icons/hicolor/scalable/apps/gnome-calculator-symbolic.svg
%{_datadir}/icons/hicolor/*/apps/gnome-calculator.png
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Calculator*.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Calculator-symbolic.svg
%{_datadir}/metainfo/org.gnome.Calculator.appdata.xml
%files devel
%{_includedir}/gci-2/
%{_includedir}/gcalc-2/
%{_libdir}/libgcalc-2.so
%{_libdir}/libgci-1.so
%{_libdir}/pkgconfig/gcalc-2.pc
%{_libdir}/pkgconfig/gci-1.pc
%{_datadir}/gir-1.0/GCalc-2.gir
%{_datadir}/gir-1.0/GCi-1.gir
%{_datadir}/devhelp/*
%{_datadir}/vala/vapi/gcalc-2.deps
%{_datadir}/vala/vapi/gcalc-2.vapi
%{_datadir}/vala/vapi/gci-1.deps
%{_datadir}/vala/vapi/gci-1.vapi
%files help
%doc NEWS README.md
%{_mandir}/man1/*
%changelog
* Fri Nov 24 2023 lwg <liweiganga@uniontech.com> - 44.0-1
- update to version 44.0
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 43.0.1-1
- Update to 43.0.1
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 42.1-1
- Upgrade to 42.1
* Wed Jun 16 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 3.38.2-1
- Upgrade to 3.38.2
- Delete 0001-Fix-compiler-errors.patch which existed in version 3.38.2
- Add sub package gnome-calculator-devel
* Wed June 10 2020 lizhenhua <lizhenhua21@huawei.com> - 3.30.1-3
- Add patch to fix compiler errors

View File

@ -1,4 +1,4 @@
version_control: gitlab.gnome
src_repo: gnome-calculator
tag_prefix: GCALCTOOL_
seperator: _
separator: _