SHA256
1
0
forked from pool/gjs

Accepting request 923493 from GNOME:Next

- Add upstream crash fixer patches from stable branch:
  + b9e122044a7ccc1e2a3374c680b6ea82066bfa59.patch: arg: Replace
    gsize with size_t
  + 62025d4a2738a36ea5f1a7cebef08b22b5eef613.patch: Handle optional
    out parameters in callbacks
- Stop disabling lto: Following this, stop passing dtrace=true and
  systemtap=true to meson, aswell as dropping systemtap-sdt-devel
  BuildRequires, follow upstream default.
- Add optional pkgconfig(gtk4) BuildRequires: meson checks for it.

OBS-URL: https://build.opensuse.org/request/show/923493
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gjs?expand=0&rev=203
This commit is contained in:
2021-10-06 19:35:32 +00:00
committed by Git OBS Bridge
parent 7faca748fa
commit 6da4f8b49b
4 changed files with 152 additions and 8 deletions

View File

@@ -24,13 +24,16 @@ License: LGPL-2.0-or-later AND MIT
Group: Development/Libraries/GNOME
URL: https://wiki.gnome.org/Projects/Gjs
Source0: https://download.gnome.org/sources/gjs/1.70/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM b9e122044a7ccc1e2a3374c680b6ea82066bfa59.patch -- arg: Replace gsize with size_t
Patch0: b9e122044a7ccc1e2a3374c680b6ea82066bfa59.patch
# PATCH-FIX-UPSTREAM 62025d4a2738a36ea5f1a7cebef08b22b5eef613.patch -- Handle optional out parameters in callbacks
Patch1: 62025d4a2738a36ea5f1a7cebef08b22b5eef613.patch
BuildRequires: c++_compiler
BuildRequires: git
BuildRequires: meson >= 0.52.0
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: systemtap-sdt-devel
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
BuildRequires: xorg-x11-Xvfb
%else
@@ -46,6 +49,7 @@ BuildRequires: pkgconfig(gobject-2.0) >= 2.58.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.53.4
BuildRequires: pkgconfig(gthread-2.0) >= 2.50.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(mozjs-78)
# Hack - fix sysprof static devel requires instead
@@ -98,12 +102,7 @@ Mozilla SpiderMonkey JavaScript engine.
%autosetup -p1
%build
# FIXME # Doesn't play well with systemtap -- lets test this during 3.37 unstable round, do we still needed?
%global _lto_cflags %{nil}
%meson \
-Ddtrace=true \
-Dsystemtap=true \
-Dinstalled_tests=false \
%{nil}
%meson_build
@@ -111,7 +110,7 @@ Mozilla SpiderMonkey JavaScript engine.
%install
%meson_install
# FIXME # Try again on next versionbump
# FIXME # Try again on next versionbump -- version 1.70.0: does anyone know what this fixme is about?
%check
export DISPLAY=:98
Xvfb :98 >& Xvfb.log & trap "kill $! || true" EXIT
@@ -141,6 +140,5 @@ sleep 10
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/%{name}-1.0/
%{_datadir}/systemtap/tapset/*.stp
%changelog