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
|
|
|
#
|
2020-03-12 21:36:36 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2018-10-05 18:01:49 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-02-13 04:41:31 +01:00
|
|
|
#
|
|
|
|
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2018-12-13 06:37:21 +01:00
|
|
|
%define flavor @BUILD_FLAVOR@%nil
|
|
|
|
%if "%{flavor}" == ""
|
|
|
|
%define build_core_not_modules 1
|
|
|
|
%else
|
|
|
|
%define name_suffix %{flavor}
|
|
|
|
%define dash -
|
|
|
|
%define build_core_not_modules 0
|
|
|
|
%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
|
|
|
%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
|
2009-04-24 02:55:32 +02:00
|
|
|
%define _name libproxy
|
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
|
2020-03-12 21:36:36 +01:00
|
|
|
%bcond_without python2
|
2017-08-31 09:45:51 +02:00
|
|
|
%{!?_assemblies_dir: %global _assemblies_dir %(pkg-config cecil --variable=assemblies_dir)}
|
2018-12-13 06:37:21 +01:00
|
|
|
Name: libproxy%{?dash}%{?name_suffix}
|
2017-08-31 09:45:51 +02:00
|
|
|
Version: 0.4.15
|
|
|
|
Release: 0
|
2017-09-08 17:04:45 +02:00
|
|
|
Summary: Automatic proxy configuration management for applications
|
2018-07-08 05:59:03 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2017-09-08 17:04:45 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-05 18:01:49 +02:00
|
|
|
URL: http://libproxy.github.io/libproxy/
|
2016-01-14 12:29:29 +01:00
|
|
|
Source: https://github.com/libproxy/%{_name}/archive/%{version}.tar.gz
|
2010-02-19 16:32:14 +01:00
|
|
|
Source99: baselibs.conf
|
2018-10-05 18:01:49 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libproxy-python3.7.patch dimstar@opensuse.org -- Add support for python 3.7 and 3.8, taken from upstream
|
|
|
|
Patch0: libproxy-python3.7.patch
|
2020-04-27 15:52:42 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libproxy-pxgsettings.patch dimstar@opensuse.org -- pxgsettings: use the correct syntax to connect to the changed signal
|
|
|
|
Patch1: libproxy-pxgsettings.patch
|
2020-10-05 17:07:11 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libproxy-CVE-2020-25219.patch boo#1176410 mgorse@suse.com -- Rewrite url::recvline to be nonrecursive.
|
|
|
|
Patch2: libproxy-CVE-2020-25219.patch
|
|
|
|
# PATCH-FIX-UPSTREAM libproxy-fix-pac-buffer-overflow.patch boo#1177143 mgorse@suse.com -- fix buffer overflow when PAC is enabled.
|
|
|
|
Patch3: libproxy-fix-pac-buffer-overflow.patch
|
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}
|
2017-08-31 09:45:51 +02:00
|
|
|
BuildRequires: NetworkManager-devel
|
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
|
2016-01-25 15:20:48 +01:00
|
|
|
BuildRequires: libproxy1 = %{version}
|
2017-08-31 09:45:51 +02:00
|
|
|
BuildRequires: perl
|
2020-03-12 21:36:36 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-08-31 09:45:51 +02:00
|
|
|
BuildRequires: python3-devel
|
2020-03-12 21:36:36 +01:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-devel
|
|
|
|
%endif
|
2011-06-07 12:47:11 +02:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.26
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2016-04-29 14:25:50 +02:00
|
|
|
BuildRequires: pkgconfig(javascriptcoregtk-4.0)
|
2020-09-22 11:02:23 +02:00
|
|
|
%if 0%{?sle_version} > 150200 || 0%{?is_opensuse}
|
2016-01-14 12:29:29 +01:00
|
|
|
BuildRequires: libKF5ConfigCore5
|
2016-02-19 15:33:11 +01: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
|
|
|
%if %{build_mozjs}
|
2017-08-31 09:45:51 +02:00
|
|
|
BuildRequires: pkgconfig(mozjs-38)
|
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
|
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
|
|
|
|
2009-02-13 04:41:31 +01:00
|
|
|
%description
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%if %build_core_not_modules
|
2009-02-13 04:41:31 +01:00
|
|
|
%package tools
|
2017-09-08 17:04:45 +02:00
|
|
|
Summary: An example 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
|
2017-09-08 17:04:45 +02:00
|
|
|
An example application that will use libproxy to give the results that can
|
|
|
|
be expected from other applications. It can be used to debug what would
|
2009-02-16 18:41:52 +01:00
|
|
|
happen in various cases.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%package devel
|
2017-09-08 17:04:45 +02:00
|
|
|
Summary: Development files for libproxy, a library to do PAC/WPAD
|
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
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2017-09-08 17:04:45 +02:00
|
|
|
This subpackage contains header files for developing applications
|
|
|
|
that want to make use of libproxy.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1
|
2017-09-08 17:04:45 +02:00
|
|
|
Summary: Automatic proxy configuration management for 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
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2017-09-08 17:04:45 +02:00
|
|
|
Proxy autoconfiguration (PAC) requires JavaScript (which most
|
|
|
|
applications do not have), and determing the PAC script location
|
|
|
|
requires a WPAD protocol implementation, which complicate proxy
|
|
|
|
support. libproxy exists to abstract this issue and provides
|
|
|
|
an answer how to reach a certain network resource.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%else
|
|
|
|
%package -n libproxy1-config-gnome3
|
|
|
|
Summary: Libproxy module for GNOME3 configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2018-10-05 18:01:49 +02:00
|
|
|
Provides: libproxy-gnome = %{version}
|
|
|
|
Obsoletes: libproxy-gnome < %{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}
|
2014-08-06 12:49:37 +02:00
|
|
|
Supplements: packageand(libproxy1:gnome-session-core)
|
2011-06-07 12:47:11 +02:00
|
|
|
%else
|
2010-08-24 17:43:14 +02:00
|
|
|
Requires: libproxy1-pacrunner = %{version}
|
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2011-06-07 12:47:11 +02:00
|
|
|
%description -n libproxy1-config-gnome3
|
2011-06-08 16:22:58 +02:00
|
|
|
|
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
|
|
|
|
2016-01-14 12:29:29 +01:00
|
|
|
%package -n libproxy1-config-kde
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for KDE configuration
|
2016-01-14 12:29:29 +01:00
|
|
|
# We don't really need the library, but this package brings kreadconfig5
|
2017-09-08 17:04:45 +02:00
|
|
|
Group: System/Libraries
|
2016-01-14 12:29:29 +01:00
|
|
|
Requires: libKF5ConfigCore5
|
2017-08-31 09:45:51 +02:00
|
|
|
Requires: libproxy1 = %{version}
|
|
|
|
Provides: libproxy-kde = %{version}
|
|
|
|
Obsoletes: libproxy-kde < %{version}
|
|
|
|
# A generic KDE config loader was introduced in 0.4.12
|
|
|
|
Obsoletes: libproxy1-config-kde4 < 0.4.12
|
2017-02-06 13:47:59 +01:00
|
|
|
# The kde plugin requires 'qtpaths', which is part of libqt5-qtpaths in TW / libqt5-qttools in older releases
|
|
|
|
%if %{?suse_version} > 1320
|
|
|
|
Requires: libqt5-qtpaths
|
|
|
|
%else
|
2016-05-10 19:28:15 +02:00
|
|
|
Requires: libqt5-qttools
|
2017-02-06 13:47:59 +01:00
|
|
|
%endif
|
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)
|
2016-05-10 19:28:15 +02:00
|
|
|
Supplements: packageand(libproxy1:plasma5-session)
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
Requires: libproxy1-pacrunner = %{version}
|
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2016-01-14 12:29:29 +01:00
|
|
|
%description -n libproxy1-config-kde
|
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
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-pacrunner-mozjs
|
2017-09-08 17:04:45 +02:00
|
|
|
Summary: Libproxy module to support WPAD/PAC parsing via the 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}
|
2017-08-31 09:45:51 +02:00
|
|
|
# A virtual symbol to identify that this is a pacrunner.
|
|
|
|
Provides: libproxy1-pacrunner = %{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-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.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-pacrunner-webkit
|
2017-09-08 17:04:45 +02:00
|
|
|
Summary: Libproxy module to support WPAD/PAC parsing via the 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}
|
2017-08-31 09:45:51 +02:00
|
|
|
# A virtual symbol to identify that this is a pacrunner.
|
|
|
|
Provides: libproxy1-pacrunner = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-07-28 00:05:24 +02:00
|
|
|
Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0)
|
|
|
|
%endif
|
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.
|
|
|
|
|
2016-09-08 23:24:49 +02:00
|
|
|
%package -n python3-libproxy
|
|
|
|
Summary: Python3 bindings for libproxy
|
2017-09-08 17:04:45 +02:00
|
|
|
Group: Development/Languages/Python
|
2017-08-31 09:45:51 +02:00
|
|
|
Requires: libproxy1 = %{version}
|
2016-09-08 23:24:49 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n python3-libproxy
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2016-09-08 23:24:49 +02:00
|
|
|
|
2017-09-08 17:04:45 +02:00
|
|
|
This package contains the Python 3 bindings for libproxy.
|
2016-09-08 23:24:49 +02:00
|
|
|
|
2013-08-07 13:33:48 +02:00
|
|
|
%package -n python-libproxy
|
|
|
|
Summary: Python bindings for libproxy
|
2017-09-08 17:04:45 +02:00
|
|
|
Group: Development/Languages/Python
|
2017-08-31 09:45:51 +02:00
|
|
|
Requires: libproxy1 = %{version}
|
2013-08-07 13:33:48 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n python-libproxy
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2013-08-07 13:33:48 +02:00
|
|
|
|
2017-09-08 17:04:45 +02:00
|
|
|
This package contains the Python 2 bindings for libproxy.
|
2013-08-07 13:33:48 +02:00
|
|
|
|
|
|
|
%package -n perl-Net-Libproxy
|
|
|
|
Summary: Perl bindings for libproxy
|
2017-09-08 17:04:45 +02:00
|
|
|
Group: Development/Languages/Perl
|
2013-08-07 13:33:48 +02:00
|
|
|
Requires: libproxy1 = %{version}
|
2013-09-05 18:12:04 +02:00
|
|
|
%if 0%{?perl_requires:1}
|
|
|
|
%{perl_requires}
|
|
|
|
%else
|
2013-08-07 13:33:48 +02:00
|
|
|
# For Fedora at least perl = perl_version does not work.
|
|
|
|
Requires: perl >= %{perl_version}
|
2013-09-05 18:12:04 +02:00
|
|
|
%endif
|
2013-08-07 13:33:48 +02:00
|
|
|
|
|
|
|
%description -n perl-Net-Libproxy
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2013-08-07 13:33:48 +02:00
|
|
|
|
2017-09-08 17:04:45 +02:00
|
|
|
This package contains the Perl for libproxy.
|
2013-08-07 13:33:48 +02:00
|
|
|
|
|
|
|
%package -n libproxy-sharp
|
|
|
|
Summary: .Net bindings for libproxy
|
|
|
|
Group: Development/Languages/Mono
|
|
|
|
Requires: libproxy1 = %{version}
|
|
|
|
|
|
|
|
%description -n libproxy-sharp
|
2017-09-08 17:04:45 +02:00
|
|
|
libproxy is a library that provides automatic proxy configuration
|
|
|
|
management.
|
2013-08-07 13:33:48 +02:00
|
|
|
|
2017-09-08 17:04:45 +02:00
|
|
|
This package contains the Mono/.NET for libproxy.
|
|
|
|
|
|
|
|
%endif # build_core_not_modules
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%prep
|
2010-08-28 00:58:31 +02:00
|
|
|
%setup -q -n %{_sourcename}
|
2018-10-05 18:01:49 +02:00
|
|
|
%patch0 -p1
|
2020-04-27 15:52:42 +02:00
|
|
|
%patch1 -p1
|
2020-10-05 17:07:11 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
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%{?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 \
|
2016-09-08 23:24:49 +02:00
|
|
|
-DWITH_PYTHON2=OFF \
|
|
|
|
-DWITH_PYTHON3=OFF \
|
2016-05-09 20:26:51 +02:00
|
|
|
%endif
|
2020-09-22 11:02:23 +02:00
|
|
|
%if %build_core_not_modules || (! 0%{?is_opensuse} && 0%{?sle_version} <= 150200)
|
2016-04-29 14:25:50 +02:00
|
|
|
-DWITH_KDE=OFF \
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_INSTALL_CONFIG_NAME=RelWithDebInfo \
|
2011-06-07 12:47:11 +02:00
|
|
|
-DWITH_WEBKIT3=ON \
|
|
|
|
-DWITH_GNOME3=ON \
|
2010-03-18 23:49:11 +01:00
|
|
|
..
|
2017-08-31 09:45:51 +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
|
2017-01-09 18:04:14 +01: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
|
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)
|
2018-02-26 15:08:27 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc README AUTHORS
|
2010-08-24 17:43:14 +02:00
|
|
|
%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}
|
2020-09-22 11:02:23 +02:00
|
|
|
%if 0%{?sle_version} > 150200 || 0%{?is_opensuse}
|
2016-01-14 12:29:29 +01:00
|
|
|
%files -n libproxy1-config-kde
|
2009-08-17 14:32:29 +02:00
|
|
|
%defattr(-, root, root)
|
2016-01-14 12:29:29 +01:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/config_kde.so
|
2016-02-19 15:33:11 +01:00
|
|
|
%endif
|
2009-08-17 14:32:29 +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
|
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
|
|
|
|
2020-03-12 21:36:36 +01:00
|
|
|
%if %{with python2}
|
2013-08-07 13:33:48 +02:00
|
|
|
%files -n python-libproxy
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{python_sitelib}/*.py
|
2020-03-12 21:36:36 +01:00
|
|
|
%endif
|
2013-08-07 13:33:48 +02:00
|
|
|
|
2016-09-08 23:24:49 +02:00
|
|
|
%files -n python3-libproxy
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{python3_sitelib}/*.py
|
|
|
|
|
2013-08-07 13:33:48 +02:00
|
|
|
%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
|