--- /dev/null
+diff -ur gjs-0.7.4-o//configure.ac gjs-0.7.4/configure.ac
+--- gjs-0.7.4-o//configure.ac 2010-10-04 14:05:05.000000000 -0600
++++ gjs-0.7.4/configure.ac 2010-10-14 23:12:27.000000000 -0600
+@@ -116,14 +116,14 @@
+ FIREFOX_JS_SDKDIR=`$PKG_CONFIG --variable=sdkdir $JS_PACKAGE`
+ FIREFOX_JS_LIBDIR=`$PKG_CONFIG --variable=libdir $JS_PACKAGE`
+
+- ## Ubuntu does not set libdir in mozilla-js.pc
++ ## PLD does not set libdir in mozilla-js.pc
+ if test x"$FIREFOX_JS_LIBDIR" = x ; then
+- ## Ubuntu returns xulrunner-devel as the sdkdir, but for the
++ ## PLD returns xulrunner-devel as the sdkdir, but for the
+ ## libdir we want the runtime location on the target system,
+ ## so can't use -devel.
+ ## The library is in the non-devel directory also.
+ ## Don't ask me why it's in two places.
+- FIREFOX_JS_LIBDIR=`echo "$FIREFOX_JS_SDKDIR" | sed -e 's/-devel//g'`
++ FIREFOX_JS_LIBDIR=`echo "$FIREFOX_JS_SDKDIR" | sed -e 's/-sdk//g'`
+
+ if ! test -d "$FIREFOX_JS_LIBDIR" ; then
+ FIREFOX_JS_LIBDIR=
+diff -ur gjs-0.7.4-o//Makefile-gi.am gjs-0.7.4/Makefile-gi.am
+--- gjs-0.7.4-o//Makefile-gi.am 2010-09-17 06:49:48.000000000 -0600
++++ gjs-0.7.4/Makefile-gi.am 2010-10-14 23:06:07.000000000 -0600
+@@ -10,7 +10,7 @@
+ libgjs.la \
+ $(GJS_GI_LIBS)
+ libgjs_gi_la_LDFLAGS = \
+- -export-symbols-regex "^[^_].*" -version-info 0:0:0 -rdynamic -no-undefined
++ -export-symbols-regex "^[^_].*" -version-info 0:0:0 -rdynamic -no-undefined -R $(FIREFOX_JS_LIBDIR)
+
+ nobase_gjsgiinclude_HEADERS = \
+ gi/arg.h \
Summary: JavaScript bindings for GNOME
Summary(pl.UTF-8): Wiązania JavaScript dla GNOME
Name: gjs
-Version: 0.7.1
+Version: 0.7.4
Release: 1
License: MIT and (MPL v1.1 / GPL v2+ / LGPL v2+)
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/0.7/%{name}-%{version}.tar.bz2
-# Source0-md5: 3235be92281ba534f86c1c481058d105
+# Source0-md5: e9205b087d0174b2440c30af9e8872b4
+Patch0: %{name}-rpath.patch
URL: http://live.gnome.org/Gjs
BuildRequires: autoconf >= 2.61
BuildRequires: automake
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
%attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so
%attr(755,root,root) %{_libdir}/gjs-1.0/console.so
%attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so
-%attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so
+#%attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so
%attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so
%attr(755,root,root) %{_libdir}/gjs-1.0/gi.so
%attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so