Accepting request 73981 from home:vuntz:branches:GNOME:Factory
Build against js instead of xulrunner, will be cool; current js in Factory doesn't work, though, so wait a bit OBS-URL: https://build.opensuse.org/request/show/73981 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gjs?expand=0&rev=45
This commit is contained in:
parent
6d874dd5a1
commit
cf22262adf
12
gjs.changes
12
gjs.changes
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 17 09:49:37 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Make it possible to build against js instead of xulrunner. This
|
||||||
|
is controlled by a build_with_xulrunner define:
|
||||||
|
+ if it's set to a value other than 0, we keep the previous
|
||||||
|
behavior.
|
||||||
|
+ if it's set to 0, we ignore all the xulrunner-related
|
||||||
|
BuildRequires and Requires, and instead use a
|
||||||
|
pkgconfig(mozjs185) BuildRequires.
|
||||||
|
- Stop pretending we build against xulrunner from old openSUSE.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 15 12:31:48 CEST 2011 - dimstar@opensuse.org
|
Wed Jun 15 12:31:48 CEST 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
19
gjs.spec
19
gjs.spec
@ -15,16 +15,10 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Set to 1 to build with xulrunner, else we build with js
|
||||||
|
%define build_with_xulrunner 0
|
||||||
|
|
||||||
%if 0%{suse_version} > 1130
|
|
||||||
%define xulrunner_ver 20
|
%define xulrunner_ver 20
|
||||||
%else
|
|
||||||
%if 0%{suse_version} > 1120
|
|
||||||
%define xulrunner_ver 192
|
|
||||||
%else
|
|
||||||
%define xulrunner_ver 191
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: gjs
|
Name: gjs
|
||||||
Version: 1.29.0
|
Version: 1.29.0
|
||||||
@ -36,13 +30,18 @@ Group: Development/Libraries/GNOME
|
|||||||
Url: http://live.gnome.org/Gjs
|
Url: http://live.gnome.org/Gjs
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%if %{build_with_xulrunner}
|
||||||
BuildRequires: mozilla-xulrunner%{xulrunner_ver}-devel
|
BuildRequires: mozilla-xulrunner%{xulrunner_ver}-devel
|
||||||
|
%endif
|
||||||
BuildRequires: python
|
BuildRequires: python
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: systemtap-sdt-devel
|
BuildRequires: systemtap-sdt-devel
|
||||||
BuildRequires: pkgconfig(cairo)
|
BuildRequires: pkgconfig(cairo)
|
||||||
BuildRequires: pkgconfig(dbus-glib-1)
|
BuildRequires: pkgconfig(dbus-glib-1)
|
||||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||||
|
%if ! %{build_with_xulrunner}
|
||||||
|
BuildRequires: pkgconfig(mozjs185)
|
||||||
|
%endif
|
||||||
Requires: libgjs0 = %{version}
|
Requires: libgjs0 = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -54,9 +53,11 @@ Mozilla SpiderMonkey JavaScript engine.
|
|||||||
License: MIT License (or similar)
|
License: MIT License (or similar)
|
||||||
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
||||||
Group: Development/Libraries/GNOME
|
Group: Development/Libraries/GNOME
|
||||||
|
%if %{build_with_xulrunner}
|
||||||
# Explicitly requires the xulrunner version we need, instead of hoping we'll
|
# Explicitly requires the xulrunner version we need, instead of hoping we'll
|
||||||
# get the right one with the libmozjs.so Requires.
|
# get the right one with the libmozjs.so Requires.
|
||||||
Requires: mozilla-xulrunner%{xulrunner_ver}
|
Requires: mozilla-xulrunner%{xulrunner_ver}
|
||||||
|
%endif
|
||||||
Provides: libgjs-0 = %{version}
|
Provides: libgjs-0 = %{version}
|
||||||
Obsoletes: libgjs-0 < %{version}
|
Obsoletes: libgjs-0 < %{version}
|
||||||
|
|
||||||
@ -69,7 +70,9 @@ License: MIT License (or similar)
|
|||||||
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
||||||
Group: Development/Libraries/GNOME
|
Group: Development/Libraries/GNOME
|
||||||
Requires: libgjs0 = %{version}
|
Requires: libgjs0 = %{version}
|
||||||
|
%if %{build_with_xulrunner}
|
||||||
Requires: mozilla-xulrunner%{xulrunner_ver}-devel
|
Requires: mozilla-xulrunner%{xulrunner_ver}-devel
|
||||||
|
%endif
|
||||||
# Just a helper provides
|
# Just a helper provides
|
||||||
Provides: gjs-devel = %{version}
|
Provides: gjs-devel = %{version}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user