forked from pool/libproxy
Accepting request 77223 from home:vuntz:branches:GNOME:Factory
Stop using xulrunner OBS-URL: https://build.opensuse.org/request/show/77223 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=67
This commit is contained in:
parent
8b1eda1e18
commit
e902cd2e02
31
libproxy-mozjs185.patch
Normal file
31
libproxy-mozjs185.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Index: libproxy-0.4.7/libproxy/cmake/modules/pacrunner_mozjs.cmk
|
||||||
|
===================================================================
|
||||||
|
--- libproxy-0.4.7.orig/libproxy/cmake/modules/pacrunner_mozjs.cmk
|
||||||
|
+++ libproxy-0.4.7/libproxy/cmake/modules/pacrunner_mozjs.cmk
|
||||||
|
@@ -7,19 +7,15 @@ if(WIN32)
|
||||||
|
include_directories("${MOZJS_INCLUDE_DIR}")
|
||||||
|
endif()
|
||||||
|
elseif(NOT APPLE)
|
||||||
|
- set(MOZJS_SEARCH_ORDER "mozilla-js;xulrunner-js;firefox-js;seamonkey-js" CACHE STRING "MozJS search order")
|
||||||
|
option(WITH_MOZJS "Search for MOZJS package" ON)
|
||||||
|
if (WITH_MOZJS)
|
||||||
|
- foreach(MOZJSLIB ${MOZJS_SEARCH_ORDER})
|
||||||
|
- pkg_search_module(MOZJS ${MOZJSLIB}>=2.0b12)
|
||||||
|
- if(MOZJS_FOUND)
|
||||||
|
- include_directories(${MOZJS_INCLUDE_DIRS})
|
||||||
|
- link_directories(${MOZJS_LIBRARY_DIRS})
|
||||||
|
- break()
|
||||||
|
- else()
|
||||||
|
- set(MOZJS_FOUND 0)
|
||||||
|
- endif()
|
||||||
|
- endforeach()
|
||||||
|
+ pkg_search_module(MOZJS mozjs185>=1.8.5)
|
||||||
|
+ if(MOZJS_FOUND)
|
||||||
|
+ include_directories(${MOZJS_INCLUDE_DIRS})
|
||||||
|
+ link_directories(${MOZJS_LIBRARY_DIRS})
|
||||||
|
+ else()
|
||||||
|
+ set(MOZJS_FOUND 0)
|
||||||
|
+ endif()
|
||||||
|
else()
|
||||||
|
set(MOZJS_FOUND 0)
|
||||||
|
endif()
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 27 14:53:34 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Build against js instead of xulrunner:
|
||||||
|
+ Add libproxy-mozjs185.patch: taken from upstream, detect
|
||||||
|
mozjs185 instead of xulrunner in the build system.
|
||||||
|
+ Add pkgconfig(mozjs185) BuildRequires and remove
|
||||||
|
mozilla-xulrunner-devel BuildRequires.
|
||||||
|
+ Change Supplements of libproxy1-pacrunner-mozjs to use
|
||||||
|
libmozjs185-1_0 instead of mozilla-xulrunner.
|
||||||
|
- Change Supplements of libproxy1-pacrunner-webkit to appropriately
|
||||||
|
use libjavascriptcoregtk-1_0-0/libjavascriptcoregtk-3_0-0
|
||||||
|
(depending on %favor_gtk2) instead of libwebkitgtk-0.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 20 18:26:49 UTC 2011 - dimstar@opensuse.org
|
Mon Jun 20 18:26:49 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libproxy-plugins
|
# spec file for package libproxy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -23,19 +23,6 @@
|
|||||||
%define have_mono 0
|
%define have_mono 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1130
|
|
||||||
%define xulrunner_ver 20
|
|
||||||
%else
|
|
||||||
%if 0%{?suse_version} > 1120
|
|
||||||
%define xulrunner_ver 192
|
|
||||||
%else
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
%define xulrunner_ver 191
|
|
||||||
%else
|
|
||||||
%define xulrunner_ver 190
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
Url: http://code.google.com/p/libproxy/
|
Url: http://code.google.com/p/libproxy/
|
||||||
%define _name libproxy
|
%define _name libproxy
|
||||||
|
|
||||||
@ -43,7 +30,7 @@ Name: libproxy-plugins
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: Libproxy provides consistent proxy configuration to applications
|
Summary: Libproxy provides consistent proxy configuration to applications
|
||||||
Version: 0.4.7
|
Version: 0.4.7
|
||||||
Release: 2
|
Release: 3
|
||||||
%if 0%{?build_snapshot}
|
%if 0%{?build_snapshot}
|
||||||
%define _sourcename %{_name}
|
%define _sourcename %{_name}
|
||||||
%else
|
%else
|
||||||
@ -55,6 +42,8 @@ Source98: update-from-svn.sh
|
|||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM libproxy-javascriptcoregtk.patch dimstar@opensuse.org -- Fix build with javascriptcoregtk3, which got split out of webkitgtk3. Patch from upstream svn.
|
# PATCH-FIX-UPSTREAM libproxy-javascriptcoregtk.patch dimstar@opensuse.org -- Fix build with javascriptcoregtk3, which got split out of webkitgtk3. Patch from upstream svn.
|
||||||
Patch0: libproxy-javascriptcoregtk.patch
|
Patch0: libproxy-javascriptcoregtk.patch
|
||||||
|
# PATCH-FIX-UPSTREAM libproxy-mozjs185.patch vuntz@opensuse.org -- Build with libmozjs185 instead of xulrunner. Patch from upstream svn.
|
||||||
|
Patch1: libproxy-mozjs185.patch
|
||||||
License: GPLv2+ ; LGPLv2.1+
|
License: GPLv2+ ; LGPLv2.1+
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -78,11 +67,7 @@ BuildRequires: pkgconfig(gio-2.0) >= 2.26
|
|||||||
BuildRequires: pkgconfig(gobject-2.0)
|
BuildRequires: pkgconfig(gobject-2.0)
|
||||||
BuildRequires: pkgconfig(webkitgtk-3.0)
|
BuildRequires: pkgconfig(webkitgtk-3.0)
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
BuildRequires: pkgconfig(mozjs185)
|
||||||
BuildRequires: mozilla-xulrunner%{xulrunner_ver}-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: xulrunner-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: libkde4-devel
|
BuildRequires: libkde4-devel
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libqt4-devel
|
||||||
@ -280,7 +265,7 @@ Summary: Libproxy module to support wpad/pac parsing via Mozilla JavaScri
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: libproxy1 = %{version}
|
Requires: libproxy1 = %{version}
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Supplements: packageand(libproxy1:mozilla-xulrunner%{xulrunner_ver})
|
Supplements: packageand(libproxy1:libmozjs185-1_0)
|
||||||
%endif
|
%endif
|
||||||
# A virtual symbol to identify that this is a pacrunner.
|
# A virtual symbol to identify that this is a pacrunner.
|
||||||
Provides: libproxy1-pacrunner = %{version}
|
Provides: libproxy1-pacrunner = %{version}
|
||||||
@ -296,7 +281,11 @@ Summary: Libproxy module to support WPAD/PAC parsing via WebKit JavaScrip
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: libproxy1 = %{version}
|
Requires: libproxy1 = %{version}
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Supplements: packageand(libproxy1:libwebkitgtk-0)
|
%if 0%{?favor_gtk2}
|
||||||
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
|
||||||
|
%else
|
||||||
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0)
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# A virtual symbol to identify that this is a pacrunner.
|
# A virtual symbol to identify that this is a pacrunner.
|
||||||
Provides: libproxy1-pacrunner = %{version}
|
Provides: libproxy1-pacrunner = %{version}
|
||||||
@ -323,6 +312,7 @@ about network configuration changes.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_sourcename}
|
%setup -q -n %{_sourcename}
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
|
%patch1 -p1
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 27 14:53:34 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Build against js instead of xulrunner:
|
||||||
|
+ Add libproxy-mozjs185.patch: taken from upstream, detect
|
||||||
|
mozjs185 instead of xulrunner in the build system.
|
||||||
|
+ Add pkgconfig(mozjs185) BuildRequires and remove
|
||||||
|
mozilla-xulrunner-devel BuildRequires.
|
||||||
|
+ Change Supplements of libproxy1-pacrunner-mozjs to use
|
||||||
|
libmozjs185-1_0 instead of mozilla-xulrunner.
|
||||||
|
- Change Supplements of libproxy1-pacrunner-webkit to appropriately
|
||||||
|
use libjavascriptcoregtk-1_0-0/libjavascriptcoregtk-3_0-0
|
||||||
|
(depending on %favor_gtk2) instead of libwebkitgtk-0.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 20 18:26:49 UTC 2011 - dimstar@opensuse.org
|
Mon Jun 20 18:26:49 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -23,19 +23,6 @@
|
|||||||
%define have_mono 0
|
%define have_mono 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1130
|
|
||||||
%define xulrunner_ver 20
|
|
||||||
%else
|
|
||||||
%if 0%{?suse_version} > 1120
|
|
||||||
%define xulrunner_ver 192
|
|
||||||
%else
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
%define xulrunner_ver 191
|
|
||||||
%else
|
|
||||||
%define xulrunner_ver 190
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
Url: http://code.google.com/p/libproxy/
|
Url: http://code.google.com/p/libproxy/
|
||||||
%define _name libproxy
|
%define _name libproxy
|
||||||
|
|
||||||
@ -55,6 +42,8 @@ Source98: update-from-svn.sh
|
|||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM libproxy-javascriptcoregtk.patch dimstar@opensuse.org -- Fix build with javascriptcoregtk3, which got split out of webkitgtk3. Patch from upstream svn.
|
# PATCH-FIX-UPSTREAM libproxy-javascriptcoregtk.patch dimstar@opensuse.org -- Fix build with javascriptcoregtk3, which got split out of webkitgtk3. Patch from upstream svn.
|
||||||
Patch0: libproxy-javascriptcoregtk.patch
|
Patch0: libproxy-javascriptcoregtk.patch
|
||||||
|
# PATCH-FIX-UPSTREAM libproxy-mozjs185.patch vuntz@opensuse.org -- Build with libmozjs185 instead of xulrunner. Patch from upstream svn.
|
||||||
|
Patch1: libproxy-mozjs185.patch
|
||||||
License: GPLv2+ ; LGPLv2.1+
|
License: GPLv2+ ; LGPLv2.1+
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -78,11 +67,7 @@ BuildRequires: pkgconfig(gio-2.0) >= 2.26
|
|||||||
BuildRequires: pkgconfig(gobject-2.0)
|
BuildRequires: pkgconfig(gobject-2.0)
|
||||||
BuildRequires: pkgconfig(webkitgtk-3.0)
|
BuildRequires: pkgconfig(webkitgtk-3.0)
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
BuildRequires: pkgconfig(mozjs185)
|
||||||
BuildRequires: mozilla-xulrunner%{xulrunner_ver}-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: xulrunner-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: libkde4-devel
|
BuildRequires: libkde4-devel
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libqt4-devel
|
||||||
@ -280,7 +265,7 @@ Summary: Libproxy module to support wpad/pac parsing via Mozilla JavaScri
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: libproxy1 = %{version}
|
Requires: libproxy1 = %{version}
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Supplements: packageand(libproxy1:mozilla-xulrunner%{xulrunner_ver})
|
Supplements: packageand(libproxy1:libmozjs185-1_0)
|
||||||
%endif
|
%endif
|
||||||
# A virtual symbol to identify that this is a pacrunner.
|
# A virtual symbol to identify that this is a pacrunner.
|
||||||
Provides: libproxy1-pacrunner = %{version}
|
Provides: libproxy1-pacrunner = %{version}
|
||||||
@ -296,7 +281,11 @@ Summary: Libproxy module to support WPAD/PAC parsing via WebKit JavaScrip
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: libproxy1 = %{version}
|
Requires: libproxy1 = %{version}
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Supplements: packageand(libproxy1:libwebkitgtk-0)
|
%if 0%{?favor_gtk2}
|
||||||
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
|
||||||
|
%else
|
||||||
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0)
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# A virtual symbol to identify that this is a pacrunner.
|
# A virtual symbol to identify that this is a pacrunner.
|
||||||
Provides: libproxy1-pacrunner = %{version}
|
Provides: libproxy1-pacrunner = %{version}
|
||||||
@ -323,6 +312,7 @@ about network configuration changes.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_sourcename}
|
%setup -q -n %{_sourcename}
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
|
%patch1 -p1
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user