2009-02-13 03:41:31 +00:00
#
2021-07-20 07:13:03 +00:00
# spec file
2009-02-13 03:41:31 +00:00
#
2022-02-10 11:32:28 +00:00
# Copyright (c) 2022 SUSE LLC
2009-02-13 03:41:31 +00: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 16:01:49 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2009-02-13 03:41:31 +00:00
#
2010-09-03 13:25:33 +00:00
2018-12-13 05:37:21 +00: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 14:22:53 +00:00
%define build_mozjs 0
2010-08-24 15:43:14 +00:00
%if 0%{?suse_version}
2013-07-14 21:33:22 +00:00
%bcond_without mono
2010-08-24 15:43:14 +00:00
%else
2013-07-14 21:33:22 +00:00
%bcond_with mono
2011-11-03 19:20:41 +00:00
%endif
2009-04-24 00:55:32 +00:00
%define _name libproxy
2010-08-24 15:43:14 +00:00
%if 0%{?build_snapshot}
2010-08-27 22:58:31 +00:00
%define _sourcename %{_name}
%else
%define _sourcename %{_name}-%{version}
2010-08-24 15:43:14 +00:00
%endif
2020-03-12 20:36:36 +00:00
%bcond_without python2
2017-08-31 07:45:51 +00:00
%{!?_assemblies_dir: %global _assemblies_dir %(pkg-config cecil --variable=assemblies_dir)}
2018-12-13 05:37:21 +00:00
Name : libproxy%{?dash} %{?name_suffix}
2020-12-29 13:02:44 +00:00
Version : 0.4.17
2017-08-31 07:45:51 +00:00
Release : 0
2017-09-08 15:04:45 +00:00
Summary : Automatic proxy configuration management for applications
2018-07-08 03:59:03 +00:00
License : GPL-2.0-or-later AND LGPL-2.1-or-later
2017-09-08 15:04:45 +00:00
Group : Development/Libraries/C and C++
2018-10-05 16:01:49 +00:00
URL : http://libproxy.github.io/libproxy/
2020-12-29 13:02:44 +00:00
Source : https://github.com/libproxy/libproxy/releases/download/%{version} /%{_name}-%{version} .tar.xz
2010-02-19 15:32:14 +00:00
Source99 : baselibs.conf
2022-05-16 12:59:13 +00:00
# PATCH-FIX-OPENSUSE libproxy-python-310.patch dimstar@opensuse.org -- Detect python 3.10. upstream has more sophisticated changes already in the queue
Patch0 : libproxy-python-310.patch
2010-03-05 01:14:28 +00:00
BuildRequires : cmake
BuildRequires : gcc-c++
2012-10-12 14:38:05 +00:00
# netcfg is needed for the test suite.
BuildRequires : netcfg
2010-08-24 15:43:14 +00:00
BuildRequires : pkgconfig
2010-03-05 01:14:28 +00:00
BuildRequires : zlib-devel
2010-08-24 15:43:14 +00:00
%if !%{build_core_not_modules}
%if ! 0%{?windows}
2017-08-31 07:45:51 +00:00
BuildRequires : NetworkManager-devel
2009-02-13 03:41:31 +00:00
BuildRequires : dbus-1-devel
2009-08-17 12:32:29 +00:00
# For directory ownership, but also because we want to rebuild the modules if
2009-04-24 00:55:32 +00:00
# the library changed
2016-01-25 14:20:48 +00:00
BuildRequires : libproxy1 = %{version}
2017-08-31 07:45:51 +00:00
BuildRequires : perl
2020-03-12 20:36:36 +00:00
BuildRequires : python-rpm-macros
2017-08-31 07:45:51 +00:00
BuildRequires : python3-devel
2020-03-12 20:36:36 +00:00
%if %{with python2}
BuildRequires : python-devel
%endif
2011-06-07 10:47:11 +00:00
BuildRequires : pkgconfig(gio-2.0) >= 2.26
BuildRequires : pkgconfig(gobject-2.0)
2016-04-29 12:25:50 +00:00
BuildRequires : pkgconfig(javascriptcoregtk-4.0)
2020-09-22 09:02:23 +00:00
%if 0%{?sle_version} > 150200 || 0%{?is_opensuse}
2016-01-14 11:29:29 +00:00
BuildRequires : libKF5ConfigCore5
2016-02-19 14:33:11 +00: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 14:22:53 +00:00
%if %{build_mozjs}
2017-08-31 07:45:51 +00:00
BuildRequires : pkgconfig(mozjs-38)
2010-08-24 15:43:14 +00:00
%endif
2013-07-14 21:33:22 +00:00
%if %{with mono}
2010-08-24 15:43:14 +00:00
BuildRequires : mono-devel
%endif
2009-04-24 00:55:32 +00:00
%endif
2013-08-07 11:33:48 +00:00
%endif
2010-03-05 01:14:28 +00:00
2009-02-13 03:41:31 +00:00
%description
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2009-02-13 03:41:31 +00:00
2009-08-17 12:32:29 +00:00
%if %build_core_not_modules
2009-02-13 03:41:31 +00:00
%package tools
2017-09-08 15:04:45 +00:00
Summary : An example application using libproxy
2009-02-13 03:41:31 +00:00
Group : System/Libraries
2010-03-05 01:14:28 +00:00
Requires : libproxy1 = %{version}
2009-02-13 03:41:31 +00:00
%description tools
2017-09-08 15:04:45 +00: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 17:41:52 +00:00
happen in various cases.
2009-02-13 03:41:31 +00:00
2009-08-17 12:32:29 +00:00
%package devel
2017-09-08 15:04:45 +00:00
Summary : Development files for libproxy, a library to do PAC/WPAD
2009-02-13 03:41:31 +00:00
Group : Development/Libraries/C and C++
2010-03-05 01:14:28 +00:00
Requires : libproxy1 = %{version}
2009-02-13 03:41:31 +00:00
%description devel
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2009-02-13 03:41:31 +00:00
2017-09-08 15:04:45 +00:00
This subpackage contains header files for developing applications
that want to make use of libproxy.
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%package -n libproxy1
2017-09-08 15:04:45 +00:00
Summary : Automatic proxy configuration management for applications
2009-02-13 03:41:31 +00: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 14:22:53 +00:00
%if !%{build_mozjs}
Obsoletes : libproxy1-pacrunner-mozjs <= %{version}
%endif
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%description -n libproxy1
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2009-02-13 03:41:31 +00:00
2017-09-08 15:04:45 +00: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 03:41:31 +00:00
2011-06-07 10:47:11 +00:00
%else
2021-07-20 07:13:03 +00:00
2011-06-07 10:47:11 +00:00
%package -n libproxy1-config-gnome3
Summary : Libproxy module for GNOME3 configuration
2009-02-13 03:41:31 +00:00
Group : System/Libraries
2010-03-05 01:14:28 +00:00
Requires : libproxy1 = %{version}
2018-10-05 16:01:49 +00:00
Provides : libproxy-gnome = %{version}
Obsoletes : libproxy-gnome < %{version}
2010-08-24 15:43:14 +00:00
%if 0%{?suse_version}
2010-03-05 01:14:28 +00:00
Recommends: libproxy1-pacrunner = %{version}
2022-02-10 11:32:28 +00:00
Supplements: (libproxy1 and gnome-session-core)
2011-06-07 10:47:11 +00:00
%else
2010-08-24 15:43:14 +00:00
Requires : libproxy1-pacrunner = %{version}
%endif
2009-02-13 03:41:31 +00:00
2011-06-07 10:47:11 +00:00
%description -n libproxy1-config-gnome3
2011-06-08 14:22:58 +00:00
2009-08-17 12:32:29 +00:00
A module to extend libproxy with capabilities to query GNOME about
2009-02-16 17:41:52 +00:00
proxy settings.
2009-02-13 03:41:31 +00:00
2016-01-14 11:29:29 +00:00
%package -n libproxy1-config-kde
2009-08-17 12:32:29 +00:00
Summary : Libproxy module for KDE configuration
2016-01-14 11:29:29 +00:00
# We don't really need the library, but this package brings kreadconfig5
2017-09-08 15:04:45 +00:00
Group : System/Libraries
2016-01-14 11:29:29 +00:00
Requires : libKF5ConfigCore5
2017-08-31 07:45:51 +00: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 12:47:59 +00: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 17:28:15 +00:00
Requires : libqt5-qttools
2017-02-06 12:47:59 +00:00
%endif
2010-08-24 15:43:14 +00:00
%if 0%{?suse_version}
2010-03-05 01:14:28 +00:00
Recommends: libproxy1-pacrunner = %{version}
2022-02-10 11:32:28 +00:00
Supplements: (libproxy1 and libkde4)
Supplements: (libproxy1 and plasma5-session)
2010-08-24 15:43:14 +00:00
%else
Requires : libproxy1-pacrunner = %{version}
%endif
2009-02-13 03:41:31 +00:00
2016-01-14 11:29:29 +00:00
%description -n libproxy1-config-kde
2009-10-09 18:27:03 +00:00
A module to extend libproxy with capabilities to query KDE4 about proxy
2009-02-16 17:41:52 +00:00
settings.
2009-02-13 03:41:31 +00:00
2020-12-29 13:02:44 +00:00
%package -n libproxy1-config-pacrunner
Summary : Libproxy module for PacRunner configuration
Group : System/Libraries
Requires : libproxy1 = %{version}
%description -n libproxy1-config-pacrunner
A module to extend libproxy with capabilities to query PacRunner about
proxy settings.
2010-03-05 01:14:28 +00:00
%package -n libproxy1-pacrunner-mozjs
2017-09-08 15:04:45 +00:00
Summary : Libproxy module to support WPAD/PAC parsing via the Mozilla JavaScript Engine
2009-02-13 03:41:31 +00:00
Group : System/Libraries
2010-03-05 01:14:28 +00:00
Requires : libproxy1 = %{version}
2017-08-31 07:45:51 +00:00
# A virtual symbol to identify that this is a pacrunner.
Provides : libproxy1-pacrunner = %{version}
2010-08-24 15:43:14 +00:00
%if 0%{?suse_version}
2022-02-10 11:32:28 +00:00
Supplements: (libproxy1 and libmozjs185-1_0)
2010-08-24 15:43:14 +00:00
%endif
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%description -n libproxy1-pacrunner-mozjs
2009-08-17 12:32:29 +00:00
A module to extend libproxy with capabilities to pass addresses to a
2009-02-16 17:41:52 +00:00
WPAD/PAC script and have it find the correct proxy.
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%package -n libproxy1-pacrunner-webkit
2017-09-08 15:04:45 +00:00
Summary : Libproxy module to support WPAD/PAC parsing via the WebKit JavaScript Engine
2009-02-13 03:41:31 +00:00
Group : System/Libraries
2010-03-05 01:14:28 +00:00
Requires : libproxy1 = %{version}
2017-08-31 07:45:51 +00:00
# A virtual symbol to identify that this is a pacrunner.
Provides : libproxy1-pacrunner = %{version}
2010-08-24 15:43:14 +00:00
%if 0%{?suse_version}
2022-02-10 11:32:28 +00:00
Supplements: (libproxy1 and libjavascriptcoregtk-3_0-0)
2011-07-27 22:05:24 +00:00
%endif
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%description -n libproxy1-pacrunner-webkit
2009-08-17 12:32:29 +00:00
A module to extend libproxy with capabilities to pass addresses to a
2009-02-16 17:41:52 +00:00
WPAD/PAC script and have it find the correct proxy.
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%package -n libproxy1-networkmanager
2009-08-17 12:32:29 +00:00
Summary : Libproxy module for NetworkManager configuration
2009-02-13 03:41:31 +00:00
Group : System/Libraries
2010-03-05 01:14:28 +00:00
Requires : libproxy1 = %{version}
2010-08-24 15:43:14 +00:00
%if 0%{?suse_version}
2022-02-10 11:32:28 +00:00
Supplements: (libproxy1 and NetworkManager)
2010-08-24 15:43:14 +00:00
%endif
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%description -n libproxy1-networkmanager
2009-08-17 12:32:29 +00:00
A module to extend libproxy with capabilities to query NetworkManager
about network configuration changes.
2016-09-08 21:24:49 +00:00
%package -n python3-libproxy
Summary : Python3 bindings for libproxy
2017-09-08 15:04:45 +00:00
Group : Development/Languages/Python
2017-08-31 07:45:51 +00:00
Requires : libproxy1 = %{version}
2016-09-08 21:24:49 +00:00
BuildArch : noarch
%description -n python3-libproxy
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2016-09-08 21:24:49 +00:00
2017-09-08 15:04:45 +00:00
This package contains the Python 3 bindings for libproxy.
2016-09-08 21:24:49 +00:00
2013-08-07 11:33:48 +00:00
%package -n python-libproxy
Summary : Python bindings for libproxy
2017-09-08 15:04:45 +00:00
Group : Development/Languages/Python
2017-08-31 07:45:51 +00:00
Requires : libproxy1 = %{version}
2013-08-07 11:33:48 +00:00
BuildArch : noarch
%description -n python-libproxy
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2013-08-07 11:33:48 +00:00
2017-09-08 15:04:45 +00:00
This package contains the Python 2 bindings for libproxy.
2013-08-07 11:33:48 +00:00
%package -n perl-Net-Libproxy
Summary : Perl bindings for libproxy
2017-09-08 15:04:45 +00:00
Group : Development/Languages/Perl
2013-08-07 11:33:48 +00:00
Requires : libproxy1 = %{version}
2013-09-05 16:12:04 +00:00
%if 0%{?perl_requires:1}
%{perl_requires}
%else
2013-08-07 11:33:48 +00:00
# For Fedora at least perl = perl_version does not work.
Requires : perl >= %{perl_version}
2013-09-05 16:12:04 +00:00
%endif
2013-08-07 11:33:48 +00:00
%description -n perl-Net-Libproxy
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2013-08-07 11:33:48 +00:00
2017-09-08 15:04:45 +00:00
This package contains the Perl for libproxy.
2013-08-07 11:33:48 +00:00
%package -n libproxy-sharp
Summary : .Net bindings for libproxy
Group : Development/Languages/Mono
Requires : libproxy1 = %{version}
%description -n libproxy-sharp
2017-09-08 15:04:45 +00:00
libproxy is a library that provides automatic proxy configuration
management.
2013-08-07 11:33:48 +00:00
2017-09-08 15:04:45 +00:00
This package contains the Mono/.NET for libproxy.
2020-12-29 13:02:44 +00:00
%endif %dnl build_core_not_modules
2009-02-13 03:41:31 +00:00
%prep
2020-12-29 13:02:44 +00:00
%autosetup -n %{_sourcename} -p1
2010-03-18 22:49:11 +00:00
mkdir build
2009-02-13 03:41:31 +00:00
%build
2010-03-18 22:49:11 +00:00
cd build
2010-08-24 15:43:14 +00:00
export CXXFLAGS=" %{optflags} "
export CFLAGS=" %{optflags} "
%if 0%{?windows}
export CXXFLAGS=" %{optflags} - f n o - s t a c k - p r o t e c t o r - s t a t i c - l i b g c c "
%endif
2010-03-18 22:49:11 +00:00
cmake \
2010-08-24 15:43:14 +00:00
%if 0%{?windows}
-DCMAKE_TOOLCHAIN_FILE=../cmake/mingw32.cmake \
-DBUILD_TESTING=False \
-DWITH_DOTNET=OFF \
%else
2010-05-28 15:22:42 +00:00
-DWITH_VALA=yes \
2013-07-14 21:33:22 +00:00
%if %{with mono}
-DWITH_DOTNET=1 \
%endif
2010-08-24 15:43:14 +00:00
%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 09:41:17 +00:00
-DPYTHON_SITEPKG_DIR=%{python_sitelib} \
2010-08-24 15:43:14 +00:00
-DSHARE_INSTALL_PREFIX=%{_datadir} \
-DINCLUDE_INSTALL_DIR=%{_includedir} \
2010-05-28 15:22:42 +00: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 14:22:53 +00:00
-DBIPR=0 \
2013-08-07 11:33:48 +00:00
%if %build_core_not_modules
2010-08-24 15:43:14 +00:00
-DWITH_DOTNET=OFF \
2013-08-07 11:33:48 +00:00
-DWITH_PERL=OFF \
2016-09-08 21:24:49 +00:00
-DWITH_PYTHON2=OFF \
-DWITH_PYTHON3=OFF \
2016-05-09 18:26:51 +00:00
%endif
2020-09-22 09:02:23 +00:00
%if %build_core_not_modules || (! 0%{?is_opensuse} && 0%{?sle_version} <= 150200)
2016-04-29 12:25:50 +00:00
-DWITH_KDE=OFF \
2010-08-24 15:43:14 +00:00
%endif
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_CONFIG_NAME=RelWithDebInfo \
2011-06-07 10:47:11 +00:00
-DWITH_WEBKIT3=ON \
-DWITH_GNOME3=ON \
2010-03-18 22:49:11 +00:00
..
2017-08-31 07:45:51 +00:00
make VERBOSE=1
2009-02-13 03:41:31 +00:00
%install
2010-03-18 22:49:11 +00:00
cd build
2010-08-24 15:43:14 +00: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 01:14:28 +00: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 15:43:14 +00:00
install -d %{buildroot} %{_libexecdir} /libproxy-%{version}
install -d %{buildroot} %{_libdir} /%{name} -%{version} /modules
2009-04-24 00:55:32 +00:00
%else
# remove files that are part of the core
2010-08-24 15:43:14 +00:00
rm -f %{buildroot} %{_includedir} /*.h
2010-03-05 01:14:28 +00:00
# Delete all files that exist in the base libproxy package
2010-08-24 15:43:14 +00: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 00:55:32 +00:00
%endif
2010-08-24 15:43:14 +00:00
%check
2017-01-09 17:04:14 +00:00
cd build
make test
2010-08-24 15:43:14 +00:00
2009-08-17 12:32:29 +00:00
%if %build_core_not_modules
2010-03-05 01:14:28 +00:00
%post -n libproxy1 -p /sbin/ldconfig
%postun -n libproxy1 -p /sbin/ldconfig
2009-02-13 03:41:31 +00:00
%files tools
%defattr (-, root, root)
2010-08-24 15:43:14 +00:00
%{_bindir} /proxy%{?windows:.exe}
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%files -n libproxy1
2009-02-13 03:41:31 +00:00
%defattr (-, root, root)
2018-02-26 14:08:27 +00:00
%license COPYING
%doc README AUTHORS
2010-08-24 15:43:14 +00:00
%if ! 0%{?windows}
2010-03-05 01:14:28 +00:00
%{_libdir} /libproxy.so.*
2010-08-24 15:43:14 +00:00
%else
%{_libdir} /libproxy.dll
%endif
%dir %{_libexecdir} /libproxy-%{version}
%dir %{_libdir} /libproxy-%{version}
%dir %{_libdir} /libproxy-%{version} /modules
2009-02-13 03:41:31 +00:00
%files devel
%defattr (-, root, root)
2009-02-26 11:23:48 +00:00
%{_includedir} /*.h
2010-08-24 15:43:14 +00:00
%if ! 0%{?windows}
2009-02-26 11:23:48 +00:00
%{_libdir} /*.so
2010-03-05 01:14:28 +00:00
%{_libdir} /pkgconfig/libproxy-1.0.pc
2010-03-18 22:49:11 +00:00
%{_datadir} /cmake/Modules/Findlibproxy.cmake
2010-05-28 15:22:42 +00:00
%dir %{_datadir} /vala
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/libproxy-1.0.vapi
2010-08-24 15:43:14 +00:00
%endif
2009-02-13 03:41:31 +00:00
2009-04-24 00:55:32 +00:00
%else
2010-08-24 15:43:14 +00:00
%if ! 0%{?windows}
2020-09-22 09:02:23 +00:00
%if 0%{?sle_version} > 150200 || 0%{?is_opensuse}
2016-01-14 11:29:29 +00:00
%files -n libproxy1-config-kde
2009-08-17 12:32:29 +00:00
%defattr (-, root, root)
2016-01-14 11:29:29 +00:00
%{_libdir} /libproxy-%{version} /modules/config_kde.so
2016-02-19 14:33:11 +00:00
%endif
2009-08-17 12:32:29 +00:00
2011-06-07 10:47:11 +00:00
%files -n libproxy1-config-gnome3
%defattr (-, root, root)
%{_libdir} /libproxy-%{version} /modules/config_gnome3.so
%{_libexecdir} /libproxy-%{version} /pxgsettings
2009-08-17 12:32:29 +00:00
2020-12-29 13:02:44 +00:00
%files -n libproxy1-config-pacrunner
%{_libdir} /libproxy-%{version} /modules/config_pacrunner.so
2010-03-05 01:14:28 +00:00
%files -n libproxy1-networkmanager
2009-02-13 03:41:31 +00:00
%defattr (-, root, root)
2010-08-24 15:43:14 +00:00
%{_libdir} /libproxy-%{version} /modules/network_networkmanager.so
2009-02-13 03:41:31 +00:00
2010-03-05 01:14:28 +00:00
%files -n libproxy1-pacrunner-webkit
2009-02-13 03:41:31 +00:00
%defattr (-, root, root)
2010-08-24 15:43:14 +00:00
%{_libdir} /libproxy-%{version} /modules/pacrunner_webkit.so
2009-02-13 03:41:31 +00: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 14:22:53 +00:00
%if %{build_mozjs}
2010-03-05 01:14:28 +00:00
%files -n libproxy1-pacrunner-mozjs
2009-02-13 03:41:31 +00:00
%defattr (-, root, root)
2010-08-24 15:43:14 +00:00
%{_libdir} /libproxy-%{version} /modules/pacrunner_mozjs.so
%endif
2013-08-07 11:33:48 +00:00
2020-03-12 20:36:36 +00:00
%if %{with python2}
2013-08-07 11:33:48 +00:00
%files -n python-libproxy
%defattr (-, root, root)
%{python_sitelib} /*.py
2020-03-12 20:36:36 +00:00
%endif
2013-08-07 11:33:48 +00:00
2016-09-08 21:24:49 +00:00
%files -n python3-libproxy
%defattr (-, root, root)
%{python3_sitelib} /*.py
2013-08-07 11:33:48 +00: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 00:55:32 +00: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 14:22:53 +00:00
%endif
2009-02-13 03:41:31 +00:00
%changelog