]> git.pld-linux.org Git - packages/gjs.git/commitdiff
- updated to 1.56.2 auto/th/gjs-1.56.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 May 2019 12:54:15 +0000 (14:54 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 May 2019 12:54:15 +0000 (14:54 +0200)
- added noc++17 patch (stick to C++ 14 features as specified by docs; require just gcc 5)

gjs-noc++17.patch [new file with mode: 0644]
gjs.spec

diff --git a/gjs-noc++17.patch b/gjs-noc++17.patch
new file mode 100644 (file)
index 0000000..2c75fe3
--- /dev/null
@@ -0,0 +1,12 @@
+Fixes build in C++14 mode (insert(pair&&) is C++17)
+--- gjs-1.56.2/gi/gtype.cpp.orig       2019-05-08 01:34:52.000000000 +0200
++++ gjs-1.56.2/gi/gtype.cpp    2019-05-24 15:52:21.984123467 +0200
+@@ -172,7 +172,7 @@
+     /* Saving a reference to the wrapper pointer, as heap_wrapper will be
+      * nullified by std::move */
+     JSObject *gtype_wrapper = *heap_wrapper;
+-    weak_pointer_list.insert({gtype, std::move(heap_wrapper)});
++    weak_pointer_list.emplace(gtype, std::move(heap_wrapper));
+     return gtype_wrapper;
+ }
index 5a59112a2fddcfd5d3c1d2850c07b3bca769f166..ba9efd060f51642ae6d5e55b1d1db6c49c8f9b5c 100644 (file)
--- a/gjs.spec
+++ b/gjs.spec
@@ -5,29 +5,30 @@
 Summary:       JavaScript bindings for GNOME
 Summary(pl.UTF-8):     Wiązania JavaScriptu dla GNOME
 Name:          gjs
-Version:       1.54.3
+Version:       1.56.2
 Release:       1
 License:       MIT and (MPL v1.1 or GPL v2+ or LGPL v2+)
 Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/gjs/1.54/%{name}-%{version}.tar.xz
-# Source0-md5: 387dd08d40d4f1f1ffec9546b52e7619
-URL:           http://live.gnome.org/Gjs
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/gjs/1.56/%{name}-%{version}.tar.xz
+# Source0-md5: 6744153c56e958ad496021062e21823f
+Patch0:                %{name}-noc++17.patch
+URL:           https://wiki.gnome.org/Projects/Gjs
 BuildRequires: autoconf >= 2.64
 BuildRequires: automake >= 1:1.11.1
 BuildRequires: cairo-devel
 BuildRequires: cairo-gobject-devel
 BuildRequires: gettext-tools
-BuildRequires: glib2-devel >= 1:2.50.0
+BuildRequires: glib2-devel >= 1:2.54.0
 BuildRequires: gobject-introspection-devel >= 1.41.4
 BuildRequires: gtk+3-devel >= 3.20
 BuildRequires: libffi-devel
-BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: libstdc++-devel >= 6:5.0
 BuildRequires: libtool >= 2:2.2.0
-BuildRequires: mozjs60-devel
+BuildRequires: mozjs60-devel >= 60
 BuildRequires: pkgconfig
 BuildRequires: readline-devel
 %{?with_systemtap:BuildRequires:       systemtap-sdt-devel}
-Requires:      glib2 >= 1:2.50.0
+Requires:      glib2 >= 1:2.54.0
 Requires:      gtk+3 >= 3.20
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -47,11 +48,11 @@ Group:              Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      cairo-devel
 Requires:      cairo-gobject-devel
-Requires:      glib2-devel >= 1:2.50.0
+Requires:      glib2-devel >= 1:2.54.0
 Requires:      gobject-introspection-devel >= 1.41.4
 Requires:      gtk+3-devel >= 3.20
 Requires:      libffi-devel
-Requires:      mozjs60-devel
+Requires:      mozjs60-devel >= 60
 
 %description devel
 Header files for gjs library.
@@ -74,6 +75,7 @@ Sondy systemtap/dtrace dla gjs.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.824992 seconds and 4 git commands to generate.