2009-02-13 04:41:31 +01:00
|
|
|
#
|
2011-02-18 12:02:07 +01:00
|
|
|
# spec file for package libproxy
|
2009-02-13 04:41:31 +01:00
|
|
|
#
|
2013-02-28 20:02:40 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-02-13 04:41:31 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%define build_core_not_modules 1
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%define build_mozjs 0
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-07-14 23:33:22 +02:00
|
|
|
%bcond_without mono
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
2013-07-14 23:33:22 +02:00
|
|
|
%bcond_with mono
|
2011-11-03 20:20:41 +01:00
|
|
|
%endif
|
2010-08-24 17:43:14 +02:00
|
|
|
|
2009-02-13 04:41:31 +01:00
|
|
|
Url: http://code.google.com/p/libproxy/
|
2009-04-24 02:55:32 +02:00
|
|
|
%define _name libproxy
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
Name: libproxy
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications
|
2012-10-09 20:52:59 +02:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2012-02-02 08:56:49 +01:00
|
|
|
Group: System/Libraries
|
2012-12-04 10:28:28 +01:00
|
|
|
Version: 0.4.11
|
2012-02-02 08:56:49 +01:00
|
|
|
Release: 0
|
2012-10-17 22:18:20 +02:00
|
|
|
# FIXME: verify if test suite works - 0.4.10 has weird behavior in some cases, where the internal server times out.
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?build_snapshot}
|
2010-08-28 00:58:31 +02:00
|
|
|
%define _sourcename %{_name}
|
|
|
|
%else
|
|
|
|
%define _sourcename %{_name}-%{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2012-10-09 20:52:59 +02:00
|
|
|
Source: http://libproxy.googlecode.com/files/%{_name}-%{version}.tar.gz
|
2010-08-24 17:43:14 +02:00
|
|
|
# Script used for automatic snapshot updates
|
|
|
|
Source98: update-from-svn.sh
|
2010-02-19 16:32:14 +01:00
|
|
|
Source99: baselibs.conf
|
2009-02-13 04:41:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2010-08-24 17:43:14 +02:00
|
|
|
BuildRequires: libmodman-devel
|
2012-10-12 16:38:05 +02:00
|
|
|
# netcfg is needed for the test suite.
|
|
|
|
BuildRequires: netcfg
|
2010-08-24 17:43:14 +02:00
|
|
|
BuildRequires: pkgconfig
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: zlib-devel
|
2010-08-24 17:43:14 +02:00
|
|
|
%if !%{build_core_not_modules}
|
|
|
|
%if ! 0%{?windows}
|
2009-02-13 04:41:31 +01:00
|
|
|
BuildRequires: dbus-1-devel
|
2009-04-24 02:55:32 +02:00
|
|
|
BuildRequires: gconf2-devel
|
2009-08-17 14:32:29 +02:00
|
|
|
# For directory ownership, but also because we want to rebuild the modules if
|
2009-04-24 02:55:32 +02:00
|
|
|
# the library changed
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: libproxy1
|
2011-06-07 12:47:11 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(webkit-1.0)
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.26
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(webkitgtk-3.0)
|
|
|
|
%endif
|
2009-04-24 02:55:32 +02:00
|
|
|
BuildRequires: NetworkManager-devel
|
2009-10-09 20:27:03 +02:00
|
|
|
BuildRequires: libkde4-devel
|
|
|
|
BuildRequires: libqt4-devel
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%if %{build_mozjs}
|
2012-03-14 12:56:26 +01:00
|
|
|
BuildRequires: pkgconfig(mozjs185)
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2013-07-14 23:33:22 +02:00
|
|
|
%if %{with mono}
|
2010-08-24 17:43:14 +02:00
|
|
|
BuildRequires: mono-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: python-devel
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2013-08-07 13:33:48 +02:00
|
|
|
%endif
|
2010-03-05 02:14:28 +01:00
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%__python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%__python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%{!?_assemblies_dir: %global _assemblies_dir %(pkg-config cecil --variable=assemblies_dir)}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-02-13 04:41:31 +01:00
|
|
|
may have dependencies)
|
|
|
|
* only 3 functions in the stable external API
|
|
|
|
* dynamic adjustment to changing network topology
|
|
|
|
* a standard way of dealing with proxy settings across all scenarios
|
|
|
|
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%if %build_core_not_modules
|
2009-04-24 02:55:32 +02:00
|
|
|
|
2009-02-13 04:41:31 +01:00
|
|
|
%package tools
|
2009-02-16 18:41:52 +01:00
|
|
|
Summary: A simple application using libproxy
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%description tools
|
2009-02-16 18:41:52 +01:00
|
|
|
A simple application that will use libproxy to give the results you can
|
|
|
|
expect from other applications. It can be used to debug what would
|
|
|
|
happen in various cases.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications - Development Files
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-02-13 04:41:31 +01:00
|
|
|
may have dependencies)
|
|
|
|
* only 3 functions in the stable external API
|
|
|
|
* dynamic adjustment to changing network topology
|
|
|
|
* a standard way of dealing with proxy settings across all scenarios
|
|
|
|
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%if !%{build_mozjs}
|
|
|
|
Obsoletes: libproxy1-pacrunner-mozjs <= %{version}
|
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1
|
2009-02-13 04:41:31 +01:00
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-02-13 04:41:31 +01:00
|
|
|
may have dependencies)
|
|
|
|
* only 3 functions in the stable external API
|
|
|
|
* dynamic adjustment to changing network topology
|
|
|
|
* a standard way of dealing with proxy settings across all scenarios
|
|
|
|
|
2009-04-24 02:55:32 +02:00
|
|
|
%else
|
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-config-gnome
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for GNOME configuration
|
2012-02-02 08:56:49 +01:00
|
|
|
Group: System/Libraries
|
2011-06-07 12:47:11 +02:00
|
|
|
%else
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%package -n libproxy1-config-gnome3
|
|
|
|
Summary: Libproxy module for GNOME3 configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2012-02-02 08:56:49 +01:00
|
|
|
%endif
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Recommends: libproxy1-pacrunner = %{version}
|
2011-06-07 12:47:11 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
2010-03-05 02:14:28 +01:00
|
|
|
Supplements: packageand(libproxy1:gconf2)
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
2011-06-07 12:47:11 +02:00
|
|
|
Supplements: packageand(libproxy1:libgio-2_0-0)
|
|
|
|
%endif
|
|
|
|
%else
|
2010-08-24 17:43:14 +02:00
|
|
|
Requires: libproxy1-pacrunner = %{version}
|
|
|
|
%endif
|
2009-02-26 12:23:48 +01:00
|
|
|
Provides: libproxy-gnome = %{version}
|
|
|
|
Obsoletes: libproxy-gnome < %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-config-gnome
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%else
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%description -n libproxy1-config-gnome3
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%endif
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to query GNOME about
|
2009-02-16 18:41:52 +01:00
|
|
|
proxy settings.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-config-kde4
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for KDE configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Recommends: libproxy1-pacrunner = %{version}
|
|
|
|
Supplements: packageand(libproxy1:libkde4)
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
Requires: libproxy1-pacrunner = %{version}
|
|
|
|
%endif
|
2009-02-26 12:23:48 +01:00
|
|
|
Provides: libproxy-kde = %{version}
|
|
|
|
Obsoletes: libproxy-kde < %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-config-kde4
|
2009-10-09 20:27:03 +02:00
|
|
|
A module to extend libproxy with capabilities to query KDE4 about proxy
|
2009-02-16 18:41:52 +01:00
|
|
|
settings.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%if %{build_mozjs}
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-pacrunner-mozjs
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module to support wpad/pac parsing via Mozilla JavaScript Engine
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-07-28 00:05:24 +02:00
|
|
|
Supplements: packageand(libproxy1:libmozjs185-1_0)
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-08-17 14:32:29 +02:00
|
|
|
# A virtual symbol to identify that this is a pacrunner.
|
2010-03-05 02:14:28 +01:00
|
|
|
Provides: libproxy1-pacrunner = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-pacrunner-mozjs
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to pass addresses to a
|
2009-02-16 18:41:52 +01:00
|
|
|
WPAD/PAC script and have it find the correct proxy.
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-pacrunner-webkit
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module to support WPAD/PAC parsing via WebKit JavaScript Engine
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-07-28 00:05:24 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
|
|
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
|
|
|
|
%else
|
|
|
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0)
|
|
|
|
%endif
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-08-17 14:32:29 +02:00
|
|
|
# A virtual symbol to identify that this is a pacrunner.
|
2010-03-05 02:14:28 +01:00
|
|
|
Provides: libproxy1-pacrunner = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-pacrunner-webkit
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to pass addresses to a
|
2009-02-16 18:41:52 +01:00
|
|
|
WPAD/PAC script and have it find the correct proxy.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-networkmanager
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for NetworkManager configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Supplements: packageand(libproxy1:NetworkManager)
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-networkmanager
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to query NetworkManager
|
|
|
|
about network configuration changes.
|
|
|
|
|
2013-08-07 13:33:48 +02:00
|
|
|
%package -n python-libproxy
|
|
|
|
Summary: Python bindings for libproxy
|
|
|
|
Group: System/Libraries
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%py_requires
|
|
|
|
%endif
|
|
|
|
Requires: libproxy1 = %{version}
|
|
|
|
|
|
|
|
%description -n python-libproxy
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
|
|
|
may have dependencies)
|
|
|
|
* only 3 functions in the stable external API
|
|
|
|
* dynamic adjustment to changing network topology
|
|
|
|
* a standard way of dealing with proxy settings across all scenarios
|
|
|
|
|
|
|
|
%package -n perl-Net-Libproxy
|
|
|
|
Summary: Perl bindings for libproxy
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: libproxy1 = %{version}
|
|
|
|
# For Fedora at least perl = perl_version does not work.
|
|
|
|
Requires: perl >= %{perl_version}
|
|
|
|
|
|
|
|
%description -n perl-Net-Libproxy
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
|
|
|
may have dependencies)
|
|
|
|
* only 3 functions in the stable external API
|
|
|
|
* dynamic adjustment to changing network topology
|
|
|
|
* a standard way of dealing with proxy settings across all scenarios
|
|
|
|
|
|
|
|
%if %{with mono}
|
|
|
|
|
|
|
|
%package -n libproxy-sharp
|
|
|
|
Summary: .Net bindings for libproxy
|
|
|
|
Group: Development/Languages/Mono
|
|
|
|
Requires: libproxy1 = %{version}
|
|
|
|
|
|
|
|
%description -n libproxy-sharp
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
|
|
|
may have dependencies)
|
|
|
|
* only 3 functions in the stable external API
|
|
|
|
* dynamic adjustment to changing network topology
|
|
|
|
* a standard way of dealing with proxy settings across all scenarios
|
|
|
|
%endif
|
|
|
|
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%prep
|
2010-08-28 00:58:31 +02:00
|
|
|
%setup -q -n %{_sourcename}
|
2010-03-18 23:49:11 +01:00
|
|
|
mkdir build
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-18 23:49:11 +01:00
|
|
|
cd build
|
2010-08-24 17:43:14 +02:00
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%if 0%{?suse_version} < 1120 && 0%{?suse_version}
|
|
|
|
export CXXFLAGS="%{optflags} -DXP_UNIX"
|
|
|
|
%endif
|
|
|
|
%if 0%{?windows}
|
|
|
|
export CXXFLAGS="%{optflags} -fno-stack-protector -static-libgcc"
|
|
|
|
%endif
|
2010-03-18 23:49:11 +01:00
|
|
|
cmake \
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?windows}
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/mingw32.cmake \
|
|
|
|
-DBUILD_TESTING=False \
|
|
|
|
-DWITH_DOTNET=OFF \
|
|
|
|
%else
|
2010-05-28 17:22:42 +02:00
|
|
|
-DWITH_VALA=yes \
|
2013-07-14 23:33:22 +02:00
|
|
|
%if %{with mono}
|
|
|
|
-DWITH_DOTNET=1 \
|
|
|
|
%endif
|
2010-08-24 17:43:14 +02:00
|
|
|
-DFORCE_SYSTEM_LIBMODMAN=ON \
|
|
|
|
%endif
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DBIN_INSTALL_DIR=%{_bindir} \
|
|
|
|
-DLIB_INSTALL_DIR=%{_libdir} \
|
|
|
|
-DMODULE_INSTALL_DIR=%{_libdir}/libproxy-%{version}/modules \
|
|
|
|
-DLIBEXEC_INSTALL_DIR=%{_libexecdir}/libproxy-%{version} \
|
2010-09-13 11:41:17 +02:00
|
|
|
-DPYTHON_SITEPKG_DIR=%{python_sitelib} \
|
2010-08-24 17:43:14 +02:00
|
|
|
-DSHARE_INSTALL_PREFIX=%{_datadir} \
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir} \
|
2010-05-28 17:22:42 +02:00
|
|
|
-DPERL_VENDORINSTALL=yes \
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
-DBIPR=0 \
|
2013-08-07 13:33:48 +02:00
|
|
|
%if %build_core_not_modules
|
2010-08-24 17:43:14 +02:00
|
|
|
-DWITH_DOTNET=OFF \
|
2013-08-07 13:33:48 +02:00
|
|
|
-DWITH_PERL=OFF \
|
|
|
|
-DWITH_PYTHON=OFF \
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1120
|
|
|
|
-DCMAKE_BUILD_TYPE=DebugFull \
|
|
|
|
-DCMAKE_INSTALL_CONFIG_NAME=DebugFull \
|
|
|
|
%else
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_INSTALL_CONFIG_NAME=RelWithDebInfo \
|
|
|
|
%endif
|
2011-06-07 12:47:11 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
|
|
|
-DWITH_WEBKIT3=OFF \
|
|
|
|
-DWITH_GNOME3=OFF \
|
|
|
|
%else
|
|
|
|
-DWITH_WEBKIT3=ON \
|
|
|
|
-DWITH_GNOME3=ON \
|
|
|
|
%endif
|
2010-03-18 23:49:11 +01:00
|
|
|
..
|
2010-08-24 17:43:14 +02:00
|
|
|
%{__make} VERBOSE=1
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%install
|
2010-03-18 23:49:11 +01:00
|
|
|
cd build
|
2010-08-24 17:43:14 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
# On Windows we also do not want to provide the static libraries.
|
|
|
|
%if 0%{?windows}
|
|
|
|
find %{buildroot}%{_libdir} -name '*.dll.a' -delete -print
|
|
|
|
rm %{buildroot}%{_libdir}/libmodman.dll
|
|
|
|
%endif
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%if %build_core_not_modules
|
|
|
|
# Build the basic directory structure for the modules so we can
|
|
|
|
# own the directories in the main library package
|
2010-08-24 17:43:14 +02:00
|
|
|
install -d %{buildroot}%{_libexecdir}/libproxy-%{version}
|
|
|
|
install -d %{buildroot}%{_libdir}/%{name}-%{version}/modules
|
2009-04-24 02:55:32 +02:00
|
|
|
%else
|
|
|
|
# remove files that are part of the core
|
2010-08-24 17:43:14 +02:00
|
|
|
rm -f %{buildroot}%{_includedir}/*.h
|
2010-03-05 02:14:28 +01:00
|
|
|
# Delete all files that exist in the base libproxy package
|
2010-08-24 17:43:14 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/proxy%{?windows:.exe}
|
|
|
|
rm -f %{buildroot}%{_libdir}/libproxy.*
|
|
|
|
rm -f %{buildroot}%{_libdir}/pkgconfig/libproxy-1.0.pc
|
|
|
|
rm -f %{buildroot}%{_datadir}/cmake/Modules/Findlibproxy.cmake
|
|
|
|
rm -f %{buildroot}%{_datadir}/vala/vapi/libproxy-1.0.vapi
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2010-08-24 17:43:14 +02:00
|
|
|
|
|
|
|
%check
|
2012-10-17 22:18:20 +02:00
|
|
|
#cd build
|
|
|
|
#make test
|
2010-08-24 17:43:14 +02:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%if %build_core_not_modules
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%post -n libproxy1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libproxy1 -p /sbin/ldconfig
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_bindir}/proxy%{?windows:.exe}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%doc COPYING README AUTHORS
|
|
|
|
%if ! 0%{?windows}
|
2010-03-05 02:14:28 +01:00
|
|
|
%{_libdir}/libproxy.so.*
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
%{_libdir}/libproxy.dll
|
|
|
|
%endif
|
|
|
|
%dir %{_libexecdir}/libproxy-%{version}
|
|
|
|
%dir %{_libdir}/libproxy-%{version}
|
|
|
|
%dir %{_libdir}/libproxy-%{version}/modules
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2009-02-26 12:23:48 +01:00
|
|
|
%{_includedir}/*.h
|
2010-08-24 17:43:14 +02:00
|
|
|
%if ! 0%{?windows}
|
2009-02-26 12:23:48 +01:00
|
|
|
%{_libdir}/*.so
|
2010-03-05 02:14:28 +01:00
|
|
|
%{_libdir}/pkgconfig/libproxy-1.0.pc
|
2010-03-18 23:49:11 +01:00
|
|
|
%{_datadir}/cmake/Modules/Findlibproxy.cmake
|
2010-05-28 17:22:42 +02:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/libproxy-1.0.vapi
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2009-04-24 02:55:32 +02:00
|
|
|
%else
|
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%if ! 0%{?windows}
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-config-kde4
|
2009-08-17 14:32:29 +02:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/config_kde4.so
|
2009-08-17 14:32:29 +02:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%if 0%{?favor_gtk2}
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-config-gnome
|
2009-08-17 14:32:29 +02:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/config_gnome.so
|
|
|
|
%{_libexecdir}/libproxy-%{version}/pxgconf
|
2011-06-07 12:47:11 +02:00
|
|
|
%else
|
2011-06-08 16:22:58 +02:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%files -n libproxy1-config-gnome3
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libproxy-%{version}/modules/config_gnome3.so
|
|
|
|
%{_libexecdir}/libproxy-%{version}/pxgsettings
|
|
|
|
%endif
|
2009-08-17 14:32:29 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-networkmanager
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/network_networkmanager.so
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-pacrunner-webkit
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/pacrunner_webkit.so
|
2009-02-13 04:41:31 +01:00
|
|
|
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%if %{build_mozjs}
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-pacrunner-mozjs
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/pacrunner_mozjs.so
|
|
|
|
%endif
|
2013-08-07 13:33:48 +02:00
|
|
|
|
|
|
|
%files -n python-libproxy
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{python_sitelib}/*.py
|
|
|
|
|
|
|
|
%files -n perl-Net-Libproxy
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{perl_vendorarch}/Net
|
|
|
|
%dir %{perl_vendorarch}/auto/Net
|
|
|
|
%dir %{perl_vendorarch}/auto/Net/Libproxy
|
|
|
|
%{perl_vendorarch}/Net/Libproxy.pm
|
|
|
|
%{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so
|
|
|
|
|
|
|
|
%if %{with mono}
|
|
|
|
|
|
|
|
%files -n libproxy-sharp
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_assemblies_dir}/gac/libproxy-sharp
|
|
|
|
%{_assemblies_dir}/libproxy-sharp
|
|
|
|
%{_libdir}/pkgconfig/libproxy-sharp-1.0.pc
|
|
|
|
%endif
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
Accepting request 124317 from home:dimstar:branches:GNOME:Factory
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
- Add libproxy-force-bipr.patch: Force building pacrunner as module
This is required as libproxy, when building only one pacrunner,
links the module internal. But as we only temporarly disable
the mozjs, we do need to keep the webkit runner as an external
module.
- Also pass -DBIPR=0 to cmake, to enable the patch above.
- Temporaryly disable the mozjs pacrunner: it casues crashes due
to symbol conflicts in Firefox (bnc#759123):
+ Introduce build_mozjs defnies, currently set to 0
+ Conditionally build the pacrunner-mozjs package
+ conditionally buildrequire pkgconfig(mozjs185)
+ When not building mozjs pacrunner, obsolete the package by
libproxy1.
OBS-URL: https://build.opensuse.org/request/show/124317
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=78
2012-06-09 16:22:53 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%changelog
|