[packages/polkit] - update BR to js187

baggins baggins at pld-linux.org
Mon Dec 29 23:58:49 CET 2014


commit fc718a17a62e3746a73f1e3057716996ef666940
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Dec 29 22:58:30 2014 +0000

    - update BR to js187

 js187.patch | 23 +++++++++++++++++++++++
 polkit.spec |  4 +++-
 2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/polkit.spec b/polkit.spec
index 99aa655..4101e3b 100644
--- a/polkit.spec
+++ b/polkit.spec
@@ -13,6 +13,7 @@ Group:		Libraries
 Source0:	http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
 # Source0-md5:	b0f2fa00a55f47c6a5d88e9b73f80127
 Patch0:		systemd-fallback.patch
+Patch1:		js187.patch
 URL:		http://www.freedesktop.org/wiki/Software/polkit
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.7
@@ -26,7 +27,7 @@ BuildRequires:	gobject-introspection-devel >= 0.6.2
 %{?with_apidocs:BuildRequires:	gtk-doc >= 1.3}
 BuildRequires:	gtk-doc-automake >= 1.3
 BuildRequires:	intltool >= 0.40.0
-BuildRequires:	js185-devel
+BuildRequires:	js187-devel
 BuildRequires:	libtool
 BuildRequires:	libxslt-progs
 BuildRequires:	pam-devel >= 0.80
@@ -111,6 +112,7 @@ Statyczne biblioteki PolicyKit.
 %prep
 %setup -q
 %{?with_systemd:%patch0 -p1}
+%patch1 -p1
 
 %build
 %{?with_apidocs:%{__gtkdocize}}
diff --git a/js187.patch b/js187.patch
new file mode 100644
index 0000000..ac72843
--- /dev/null
+++ b/js187.patch
@@ -0,0 +1,23 @@
+--- polkit-0.112/configure.ac~	2014-12-29 22:40:04.000000000 +0000
++++ polkit-0.112/configure.ac	2014-12-29 22:41:01.765503630 +0000
+@@ -129,16 +129,16 @@
+ AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [G_ENCODE_VERSION(2,34)],
+         [Notify us when we'll need to transition away from g_type_init()])
+ 
+-AC_ARG_WITH(mozjs, AS_HELP_STRING([--with-mozjs=@<:@mozjs185/mozjs-17.0|auto@:>@],
++AC_ARG_WITH(mozjs, AS_HELP_STRING([--with-mozjs=@<:@mozjs187/mozjs-17.0|auto@:>@],
+ 		                  [Specify version of Spidermonkey to use]),,
+             with_mozjs=auto)
+ AS_IF([test x${with_mozjs} != xauto], [
+   PKG_CHECK_MODULES(LIBJS, ${with_mozjs})
+ ], [
+-  PKG_CHECK_MODULES(LIBJS, [mozjs185], have_mozjs185=yes, have_mozjs185=no)
+-  AS_IF([test x${have_mozjs185} = xno], [
++  PKG_CHECK_MODULES(LIBJS, [mozjs187], have_mozjs187=yes, have_mozjs187=no)
++  AS_IF([test x${have_mozjs187} = xno], [
+   PKG_CHECK_MODULES(LIBJS, [mozjs-17.0], have_mozjs17=yes,
+-   [AC_MSG_ERROR([Could not find mozjs185 or mozjs-17.0; see http://ftp.mozilla.org/pub/mozilla.org/js/])])
++   [AC_MSG_ERROR([Could not find mozjs187 or mozjs-17.0; see http://ftp.mozilla.org/pub/mozilla.org/js/])])
+   ])
+ ])
+ AC_SUBST(LIBJS_CFLAGS)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/polkit.git/commitdiff/fc718a17a62e3746a73f1e3057716996ef666940



More information about the pld-cvs-commit mailing list