[packages/gjs] - updated to 1.58.1 - removed obsolete noc++17 patch
qboosh
qboosh at pld-linux.org
Tue Oct 15 19:31:06 CEST 2019
commit aee54d63efe60be2e9bfceb8a103dfd617db884c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Oct 15 19:34:33 2019 +0200
- updated to 1.58.1
- removed obsolete noc++17 patch
gjs-noc++17.patch | 12 ------------
gjs.spec | 26 ++++++++++++++------------
2 files changed, 14 insertions(+), 24 deletions(-)
---
diff --git a/gjs.spec b/gjs.spec
index ba9efd0..a3330cf 100644
--- a/gjs.spec
+++ b/gjs.spec
@@ -1,35 +1,35 @@
#
# Conditional build:
+%bcond_without sysprof # sysprof profiling
%bcond_without systemtap # systemtap/dtrace trace support
#
Summary: JavaScript bindings for GNOME
Summary(pl.UTF-8): Wiązania JavaScriptu dla GNOME
Name: gjs
-Version: 1.56.2
+Version: 1.58.1
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.56/%{name}-%{version}.tar.xz
-# Source0-md5: 6744153c56e958ad496021062e21823f
-Patch0: %{name}-noc++17.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.58/%{name}-%{version}.tar.xz
+# Source0-md5: 49ae54cccbf212e2f80fa1726d5f974c
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.54.0
+BuildRequires: glib2-devel >= 1:2.58.0
BuildRequires: gobject-introspection-devel >= 1.41.4
-BuildRequires: gtk+3-devel >= 3.20
BuildRequires: libffi-devel
BuildRequires: libstdc++-devel >= 6:5.0
BuildRequires: libtool >= 2:2.2.0
BuildRequires: mozjs60-devel >= 60
BuildRequires: pkgconfig
BuildRequires: readline-devel
+# pkgconfig(sysprof-capture-3)
+%{?with_sysprof:BuildRequires: sysprof-devel >= 3.34}
%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
-Requires: glib2 >= 1:2.54.0
-Requires: gtk+3 >= 3.20
+Requires: glib2 >= 1:2.58.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -48,9 +48,8 @@ Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: cairo-devel
Requires: cairo-gobject-devel
-Requires: glib2-devel >= 1:2.54.0
+Requires: glib2-devel >= 1:2.58.0
Requires: gobject-introspection-devel >= 1.41.4
-Requires: gtk+3-devel >= 3.20
Requires: libffi-devel
Requires: mozjs60-devel >= 60
@@ -75,7 +74,6 @@ Sondy systemtap/dtrace dla gjs.
%prep
%setup -q
-%patch0 -p1
%build
%{__libtoolize}
@@ -84,6 +82,7 @@ Sondy systemtap/dtrace dla gjs.
%{__autoheader}
%{__automake}
%configure \
+ --enable-profiler%{!?with_sysprof:=no} \
--disable-silent-rules \
%{?with_systemtap:--enable-systemtap}
%{__make}
@@ -95,9 +94,12 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
-cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+# belongs to installed-tests
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.GjsTest.gschema.xml
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/gjs-noc++17.patch b/gjs-noc++17.patch
deleted file mode 100644
index 2c75fe3..0000000
--- a/gjs-noc++17.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-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;
- }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gjs.git/commitdiff/aee54d63efe60be2e9bfceb8a103dfd617db884c
More information about the pld-cvs-commit
mailing list