--- /dev/null
+--- 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)
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
%{?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
%prep
%setup -q
%{?with_systemd:%patch0 -p1}
+%patch1 -p1
%build
%{?with_apidocs:%{__gtkdocize}}