rpms/gxine/EL-5 gxine.spec,1.15,1.16

Martin Sourada mso at fedoraproject.org
Tue Sep 9 17:15:01 UTC 2008


Author: mso

Update of /cvs/extras/rpms/gxine/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29125

Modified Files:
	gxine.spec 
Log Message:


Add --rpath for libmozjs.so (for some reason it's not shared).




Index: gxine.spec
===================================================================
RCS file: /cvs/extras/rpms/gxine/EL-5/gxine.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- gxine.spec	9 Sep 2008 15:21:25 -0000	1.15
+++ gxine.spec	9 Sep 2008 17:14:31 -0000	1.16
@@ -1,3 +1,6 @@
+%define gecko_stable_ver 1.9
+%define xul_mozjs_path %{_libdir}/xulrunner-%{gecko_stable_ver}
+
 Name:           gxine
 Version:        0.5.11
 Release:        17%{?dist}
@@ -13,7 +16,7 @@
 Patch1:         gxine-0.5.11-keep-wnd-state.patch
 
 
-BuildRequires:  gecko-devel >= 1.9
+BuildRequires:  gecko-devel >= %{gecko_stable_ver}
 BuildRequires:  desktop-file-utils
 BuildRequires:  gettext
 BuildRequires:  gtk2-devel
@@ -32,7 +35,7 @@
 BuildRequires:  libXaw-devel
 BuildRequires:  nspr-devel
 
-Requires:       gecko-libs >= 1.9
+Requires:       gecko-libs >= %{gecko_stable_ver}
 
 %description
 gxine is a fully-featured free audio/video player for unix-like systems which
@@ -62,6 +65,7 @@
 
 %build
 %configure --with-dbus --with-logo-format=image --with-browser-plugin --disable-integration-wizard
+%{__sed} -i 's at LDFLAGS = -Wl,--as-needed at LDFLAGS = -Wl,--as-needed,--rpath=%{xul_mozjs_path}@' src/Makefile
 
 make %{?_smp_mflags}
 
@@ -126,6 +130,7 @@
 - use correct xulrunner (build)require
 - rebuild (-16 release blocks xulrunner update)
 - add dbus-devel BR (broken dbus-glib-devel deps)
+- add --rpath to LDFLAGS, so that it finds libmozjs.so correctly
 
 * Thu Jul 17 2008 Martin Sourada <martin.sourada at gmail.com> - 0.5.11-16
 - rebuild for xulrunner in EPEL 5




More information about the fedora-extras-commits mailing list