SHA256
1
0
forked from pool/libproxy

Accepting request 522333 from GNOME:Factory

- Update descriptions and RPM categories. (forwarded request 522148 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/522333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libproxy?expand=0&rev=70
This commit is contained in:
Dominique Leuenberger 2017-09-13 19:43:53 +00:00 committed by Git OBS Bridge
commit a279411a9e
6 changed files with 171 additions and 229 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6220a6cab837a8996116a0568324cadfd09a07ec16b930d2a330e16d5c2e1eb6
size 92783

3
0.4.15.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:18f58b0a0043b6881774187427ead158d310127fc46a1c668ad6d207fb28b4e0
size 93084

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Sep 7 19:29:58 UTC 2017 - jengelh@inai.de
- Update descriptions and RPM categories.
-------------------------------------------------------------------
Thu May 11 09:36:16 UTC 2017 - dimstar@opensuse.org
- Update to version 0.4.15:
+ Port to, and require, SpiderMonkey 38.
+ Fix "NetworkManager plugin not being built"
(gh#libproxy/libproxy#53).
+ Fix "networkmanager plugin not working
(gh#libproxy/libproxy#58).
+ Fix "Invalid read after free" (gh#libproxy/libproxy#59).
+ Fix intermittent unit test failures.
- Replace pkgconfig(mozjs185) buildRequires with
pkgconfig(mozjs-38), following upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 6 12:30:17 UTC 2017 - dimstar@opensuse.org Mon Feb 6 12:30:17 UTC 2017 - dimstar@opensuse.org

View File

@ -23,24 +23,24 @@
%else %else
%bcond_with mono %bcond_with mono
%endif %endif
Url: http://code.google.com/p/libproxy/
%define _name libproxy %define _name libproxy
Name: libproxy-plugins
Summary: Libproxy provides consistent proxy configuration to applications
License: GPL-2.0+ and LGPL-2.1+
Group: System/Libraries
Version: 0.4.14
Release: 0
%if 0%{?build_snapshot} %if 0%{?build_snapshot}
%define _sourcename %{_name} %define _sourcename %{_name}
%else %else
%define _sourcename %{_name}-%{version} %define _sourcename %{_name}-%{version}
%endif %endif
%{!?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)}
Name: libproxy-plugins
Version: 0.4.15
Release: 0
Summary: Automatic proxy configuration management for applications
License: GPL-2.0+ AND LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://code.google.com/p/libproxy/
Source: https://github.com/libproxy/%{_name}/archive/%{version}.tar.gz Source: https://github.com/libproxy/%{_name}/archive/%{version}.tar.gz
Source99: baselibs.conf Source99: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libmodman-devel BuildRequires: libmodman-devel
@ -50,11 +50,15 @@ BuildRequires: pkgconfig
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if !%{build_core_not_modules} %if !%{build_core_not_modules}
%if ! 0%{?windows} %if ! 0%{?windows}
BuildRequires: NetworkManager-devel
BuildRequires: dbus-1-devel BuildRequires: dbus-1-devel
BuildRequires: gconf2-devel BuildRequires: gconf2-devel
# For directory ownership, but also because we want to rebuild the modules if # For directory ownership, but also because we want to rebuild the modules if
# the library changed # the library changed
BuildRequires: libproxy1 = %{version} BuildRequires: libproxy1 = %{version}
BuildRequires: perl
BuildRequires: python-devel
BuildRequires: python3-devel
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
BuildRequires: pkgconfig(gconf-2.0) BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-2.0)
@ -64,98 +68,74 @@ BuildRequires: pkgconfig(gio-2.0) >= 2.26
BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(javascriptcoregtk-4.0) BuildRequires: pkgconfig(javascriptcoregtk-4.0)
%endif %endif
BuildRequires: NetworkManager-devel
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
BuildRequires: libKF5ConfigCore5 BuildRequires: libKF5ConfigCore5
%endif %endif
%if %{build_mozjs} %if %{build_mozjs}
BuildRequires: pkgconfig(mozjs185) BuildRequires: pkgconfig(mozjs-38)
%endif %endif
%if %{with mono} %if %{with mono}
BuildRequires: mono-devel BuildRequires: mono-devel
%endif %endif
BuildRequires: perl
BuildRequires: python-devel
BuildRequires: python3-devel
%endif %endif
%endif %endif
%{!?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)}
%description %description
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* 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 %build_core_not_modules %if %build_core_not_modules
%package tools %package tools
Summary: A simple application using libproxy Summary: An example application using libproxy
Group: System/Libraries Group: System/Libraries
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%description tools %description tools
A simple application that will use libproxy to give the results you can An example application that will use libproxy to give the results that can
expect from other applications. It can be used to debug what would be expected from other applications. It can be used to debug what would
happen in various cases. happen in various cases.
%package devel %package devel
Summary: Libproxy provides consistent proxy configuration to applications - Development Files Summary: Development files for libproxy, a library to do PAC/WPAD
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%description devel %description devel
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* 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
This subpackage contains header files for developing applications
that want to make use of libproxy.
%package -n libproxy1 %package -n libproxy1
Summary: Libproxy provides consistent proxy configuration to applications Summary: Automatic proxy configuration management for applications
Group: System/Libraries Group: System/Libraries
%if !%{build_mozjs} %if !%{build_mozjs}
Obsoletes: libproxy1-pacrunner-mozjs <= %{version} Obsoletes: libproxy1-pacrunner-mozjs <= %{version}
%endif %endif
%description -n libproxy1 %description -n libproxy1
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules Proxy autoconfiguration (PAC) requires JavaScript (which most
may have dependencies) applications do not have), and determing the PAC script location
* only 3 functions in the stable external API requires a WPAD protocol implementation, which complicate proxy
* dynamic adjustment to changing network topology support. libproxy exists to abstract this issue and provides
* a standard way of dealing with proxy settings across all scenarios an answer how to reach a certain network resource.
%else %else
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
%package -n libproxy1-config-gnome %package -n libproxy1-config-gnome
Summary: Libproxy module for GNOME configuration Summary: Libproxy module for GNOME configuration
Group: System/Libraries Group: System/Libraries
%else %else
%package -n libproxy1-config-gnome3 %package -n libproxy1-config-gnome3
Summary: Libproxy module for GNOME3 configuration Summary: Libproxy module for GNOME3 configuration
Group: System/Libraries Group: System/Libraries
%endif %endif
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%if 0%{?suse_version} %if 0%{?suse_version}
Recommends: libproxy1-pacrunner = %{version} Recommends: libproxy1-pacrunner = %{version}
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
@ -170,11 +150,9 @@ Provides: libproxy-gnome = %{version}
Obsoletes: libproxy-gnome < %{version} Obsoletes: libproxy-gnome < %{version}
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
%description -n libproxy1-config-gnome %description -n libproxy1-config-gnome
%else %else
%description -n libproxy1-config-gnome3 %description -n libproxy1-config-gnome3
%endif %endif
@ -183,10 +161,14 @@ proxy settings.
%package -n libproxy1-config-kde %package -n libproxy1-config-kde
Summary: Libproxy module for KDE configuration Summary: Libproxy module for KDE configuration
Group: System/Libraries
Requires: libproxy1 = %{version}
# We don't really need the library, but this package brings kreadconfig5 # We don't really need the library, but this package brings kreadconfig5
Group: System/Libraries
Requires: libKF5ConfigCore5 Requires: libKF5ConfigCore5
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
# The kde plugin requires 'qtpaths', which is part of libqt5-qtpaths in TW / libqt5-qttools in older releases # The kde plugin requires 'qtpaths', which is part of libqt5-qtpaths in TW / libqt5-qttools in older releases
%if %{?suse_version} > 1320 %if %{?suse_version} > 1320
Requires: libqt5-qtpaths Requires: libqt5-qtpaths
@ -200,35 +182,31 @@ Supplements: packageand(libproxy1:plasma5-session)
%else %else
Requires: libproxy1-pacrunner = %{version} Requires: libproxy1-pacrunner = %{version}
%endif %endif
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
%description -n libproxy1-config-kde %description -n libproxy1-config-kde
A module to extend libproxy with capabilities to query KDE4 about proxy A module to extend libproxy with capabilities to query KDE4 about proxy
settings. settings.
%if %{build_mozjs}
%package -n libproxy1-pacrunner-mozjs %package -n libproxy1-pacrunner-mozjs
Summary: Libproxy module to support wpad/pac parsing via Mozilla JavaScript Engine Summary: Libproxy module to support WPAD/PAC parsing via the Mozilla JavaScript Engine
Group: System/Libraries Group: System/Libraries
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%if 0%{?suse_version} %if 0%{?suse_version}
Supplements: packageand(libproxy1:libmozjs185-1_0) Supplements: packageand(libproxy1:libmozjs185-1_0)
%endif %endif
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%description -n libproxy1-pacrunner-mozjs %description -n libproxy1-pacrunner-mozjs
A module to extend libproxy with capabilities to pass addresses to a A module to extend libproxy with capabilities to pass addresses to a
WPAD/PAC script and have it find the correct proxy. WPAD/PAC script and have it find the correct proxy.
%endif
%package -n libproxy1-pacrunner-webkit %package -n libproxy1-pacrunner-webkit
Summary: Libproxy module to support WPAD/PAC parsing via WebKit JavaScript Engine Summary: Libproxy module to support WPAD/PAC parsing via the WebKit JavaScript Engine
Group: System/Libraries Group: System/Libraries
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%if 0%{?suse_version} %if 0%{?suse_version}
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0) Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
@ -236,8 +214,6 @@ Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0) Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0)
%endif %endif
%endif %endif
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%description -n libproxy1-pacrunner-webkit %description -n libproxy1-pacrunner-webkit
A module to extend libproxy with capabilities to pass addresses to a A module to extend libproxy with capabilities to pass addresses to a
@ -257,44 +233,36 @@ about network configuration changes.
%package -n python3-libproxy %package -n python3-libproxy
Summary: Python3 bindings for libproxy Summary: Python3 bindings for libproxy
Group: System/Libraries Group: Development/Languages/Python
Requires: libproxy1 = %{version}
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %endif
Requires: libproxy1 = %{version}
%description -n python3-libproxy %description -n python3-libproxy
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Python 3 bindings for libproxy.
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 python-libproxy %package -n python-libproxy
Summary: Python bindings for libproxy Summary: Python bindings for libproxy
Group: System/Libraries Group: Development/Languages/Python
Requires: libproxy1 = %{version}
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%py_requires %py_requires
%endif %endif
Requires: libproxy1 = %{version}
%description -n python-libproxy %description -n python-libproxy
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Python 2 bindings for libproxy.
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 %package -n perl-Net-Libproxy
Summary: Perl bindings for libproxy Summary: Perl bindings for libproxy
Group: Development/Libraries/Perl Group: Development/Languages/Perl
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%if 0%{?perl_requires:1} %if 0%{?perl_requires:1}
%{perl_requires} %{perl_requires}
@ -304,16 +272,10 @@ Requires: perl >= %{perl_version}
%endif %endif
%description -n perl-Net-Libproxy %description -n perl-Net-Libproxy
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Perl for libproxy.
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 %package -n libproxy-sharp
Summary: .Net bindings for libproxy Summary: .Net bindings for libproxy
@ -321,17 +283,12 @@ Group: Development/Languages/Mono
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%description -n libproxy-sharp %description -n libproxy-sharp
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Mono/.NET for libproxy.
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
%endif %endif # build_core_not_modules
%prep %prep
%setup -q -n %{_sourcename} %setup -q -n %{_sourcename}
@ -393,7 +350,7 @@ cmake \
-DWITH_GNOME3=ON \ -DWITH_GNOME3=ON \
%endif %endif
.. ..
%{__make} VERBOSE=1 make VERBOSE=1
%install %install
cd build cd build
@ -426,7 +383,6 @@ cd build
make test make test
%if %build_core_not_modules %if %build_core_not_modules
%post -n libproxy1 -p /sbin/ldconfig %post -n libproxy1 -p /sbin/ldconfig
%postun -n libproxy1 -p /sbin/ldconfig %postun -n libproxy1 -p /sbin/ldconfig
@ -460,7 +416,6 @@ make test
%endif %endif
%else %else
%if ! 0%{?windows} %if ! 0%{?windows}
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
%files -n libproxy1-config-kde %files -n libproxy1-config-kde
@ -469,13 +424,11 @@ make test
%endif %endif
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
%files -n libproxy1-config-gnome %files -n libproxy1-config-gnome
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/libproxy-%{version}/modules/config_gnome.so %{_libdir}/libproxy-%{version}/modules/config_gnome.so
%{_libexecdir}/libproxy-%{version}/pxgconf %{_libexecdir}/libproxy-%{version}/pxgconf
%else %else
%files -n libproxy1-config-gnome3 %files -n libproxy1-config-gnome3
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/libproxy-%{version}/modules/config_gnome3.so %{_libdir}/libproxy-%{version}/modules/config_gnome3.so
@ -513,7 +466,6 @@ make test
%{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so %{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so
%if %{with mono} %if %{with mono}
%files -n libproxy-sharp %files -n libproxy-sharp
%defattr(-, root, root) %defattr(-, root, root)
%{_assemblies_dir}/gac/libproxy-sharp %{_assemblies_dir}/gac/libproxy-sharp

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Sep 7 19:29:58 UTC 2017 - jengelh@inai.de
- Update descriptions and RPM categories.
-------------------------------------------------------------------
Thu May 11 09:36:16 UTC 2017 - dimstar@opensuse.org
- Update to version 0.4.15:
+ Port to, and require, SpiderMonkey 38.
+ Fix "NetworkManager plugin not being built"
(gh#libproxy/libproxy#53).
+ Fix "networkmanager plugin not working
(gh#libproxy/libproxy#58).
+ Fix "Invalid read after free" (gh#libproxy/libproxy#59).
+ Fix intermittent unit test failures.
- Replace pkgconfig(mozjs185) buildRequires with
pkgconfig(mozjs-38), following upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 6 12:30:17 UTC 2017 - dimstar@opensuse.org Mon Feb 6 12:30:17 UTC 2017 - dimstar@opensuse.org

View File

@ -23,24 +23,24 @@
%else %else
%bcond_with mono %bcond_with mono
%endif %endif
Url: http://code.google.com/p/libproxy/
%define _name libproxy %define _name libproxy
Name: libproxy
Summary: Libproxy provides consistent proxy configuration to applications
License: GPL-2.0+ and LGPL-2.1+
Group: System/Libraries
Version: 0.4.14
Release: 0
%if 0%{?build_snapshot} %if 0%{?build_snapshot}
%define _sourcename %{_name} %define _sourcename %{_name}
%else %else
%define _sourcename %{_name}-%{version} %define _sourcename %{_name}-%{version}
%endif %endif
%{!?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)}
Name: libproxy
Version: 0.4.15
Release: 0
Summary: Automatic proxy configuration management for applications
License: GPL-2.0+ AND LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://code.google.com/p/libproxy/
Source: https://github.com/libproxy/%{_name}/archive/%{version}.tar.gz Source: https://github.com/libproxy/%{_name}/archive/%{version}.tar.gz
Source99: baselibs.conf Source99: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libmodman-devel BuildRequires: libmodman-devel
@ -50,11 +50,15 @@ BuildRequires: pkgconfig
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if !%{build_core_not_modules} %if !%{build_core_not_modules}
%if ! 0%{?windows} %if ! 0%{?windows}
BuildRequires: NetworkManager-devel
BuildRequires: dbus-1-devel BuildRequires: dbus-1-devel
BuildRequires: gconf2-devel BuildRequires: gconf2-devel
# For directory ownership, but also because we want to rebuild the modules if # For directory ownership, but also because we want to rebuild the modules if
# the library changed # the library changed
BuildRequires: libproxy1 = %{version} BuildRequires: libproxy1 = %{version}
BuildRequires: perl
BuildRequires: python-devel
BuildRequires: python3-devel
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
BuildRequires: pkgconfig(gconf-2.0) BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-2.0)
@ -64,98 +68,74 @@ BuildRequires: pkgconfig(gio-2.0) >= 2.26
BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(javascriptcoregtk-4.0) BuildRequires: pkgconfig(javascriptcoregtk-4.0)
%endif %endif
BuildRequires: NetworkManager-devel
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
BuildRequires: libKF5ConfigCore5 BuildRequires: libKF5ConfigCore5
%endif %endif
%if %{build_mozjs} %if %{build_mozjs}
BuildRequires: pkgconfig(mozjs185) BuildRequires: pkgconfig(mozjs-38)
%endif %endif
%if %{with mono} %if %{with mono}
BuildRequires: mono-devel BuildRequires: mono-devel
%endif %endif
BuildRequires: perl
BuildRequires: python-devel
BuildRequires: python3-devel
%endif %endif
%endif %endif
%{!?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)}
%description %description
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* 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 %build_core_not_modules %if %build_core_not_modules
%package tools %package tools
Summary: A simple application using libproxy Summary: An example application using libproxy
Group: System/Libraries Group: System/Libraries
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%description tools %description tools
A simple application that will use libproxy to give the results you can An example application that will use libproxy to give the results that can
expect from other applications. It can be used to debug what would be expected from other applications. It can be used to debug what would
happen in various cases. happen in various cases.
%package devel %package devel
Summary: Libproxy provides consistent proxy configuration to applications - Development Files Summary: Development files for libproxy, a library to do PAC/WPAD
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%description devel %description devel
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* 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
This subpackage contains header files for developing applications
that want to make use of libproxy.
%package -n libproxy1 %package -n libproxy1
Summary: Libproxy provides consistent proxy configuration to applications Summary: Automatic proxy configuration management for applications
Group: System/Libraries Group: System/Libraries
%if !%{build_mozjs} %if !%{build_mozjs}
Obsoletes: libproxy1-pacrunner-mozjs <= %{version} Obsoletes: libproxy1-pacrunner-mozjs <= %{version}
%endif %endif
%description -n libproxy1 %description -n libproxy1
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules Proxy autoconfiguration (PAC) requires JavaScript (which most
may have dependencies) applications do not have), and determing the PAC script location
* only 3 functions in the stable external API requires a WPAD protocol implementation, which complicate proxy
* dynamic adjustment to changing network topology support. libproxy exists to abstract this issue and provides
* a standard way of dealing with proxy settings across all scenarios an answer how to reach a certain network resource.
%else %else
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
%package -n libproxy1-config-gnome %package -n libproxy1-config-gnome
Summary: Libproxy module for GNOME configuration Summary: Libproxy module for GNOME configuration
Group: System/Libraries Group: System/Libraries
%else %else
%package -n libproxy1-config-gnome3 %package -n libproxy1-config-gnome3
Summary: Libproxy module for GNOME3 configuration Summary: Libproxy module for GNOME3 configuration
Group: System/Libraries Group: System/Libraries
%endif %endif
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%if 0%{?suse_version} %if 0%{?suse_version}
Recommends: libproxy1-pacrunner = %{version} Recommends: libproxy1-pacrunner = %{version}
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
@ -170,11 +150,9 @@ Provides: libproxy-gnome = %{version}
Obsoletes: libproxy-gnome < %{version} Obsoletes: libproxy-gnome < %{version}
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
%description -n libproxy1-config-gnome %description -n libproxy1-config-gnome
%else %else
%description -n libproxy1-config-gnome3 %description -n libproxy1-config-gnome3
%endif %endif
@ -183,10 +161,14 @@ proxy settings.
%package -n libproxy1-config-kde %package -n libproxy1-config-kde
Summary: Libproxy module for KDE configuration Summary: Libproxy module for KDE configuration
Group: System/Libraries
Requires: libproxy1 = %{version}
# We don't really need the library, but this package brings kreadconfig5 # We don't really need the library, but this package brings kreadconfig5
Group: System/Libraries
Requires: libKF5ConfigCore5 Requires: libKF5ConfigCore5
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
# The kde plugin requires 'qtpaths', which is part of libqt5-qtpaths in TW / libqt5-qttools in older releases # The kde plugin requires 'qtpaths', which is part of libqt5-qtpaths in TW / libqt5-qttools in older releases
%if %{?suse_version} > 1320 %if %{?suse_version} > 1320
Requires: libqt5-qtpaths Requires: libqt5-qtpaths
@ -200,35 +182,31 @@ Supplements: packageand(libproxy1:plasma5-session)
%else %else
Requires: libproxy1-pacrunner = %{version} Requires: libproxy1-pacrunner = %{version}
%endif %endif
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
%description -n libproxy1-config-kde %description -n libproxy1-config-kde
A module to extend libproxy with capabilities to query KDE4 about proxy A module to extend libproxy with capabilities to query KDE4 about proxy
settings. settings.
%if %{build_mozjs}
%package -n libproxy1-pacrunner-mozjs %package -n libproxy1-pacrunner-mozjs
Summary: Libproxy module to support wpad/pac parsing via Mozilla JavaScript Engine Summary: Libproxy module to support WPAD/PAC parsing via the Mozilla JavaScript Engine
Group: System/Libraries Group: System/Libraries
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%if 0%{?suse_version} %if 0%{?suse_version}
Supplements: packageand(libproxy1:libmozjs185-1_0) Supplements: packageand(libproxy1:libmozjs185-1_0)
%endif %endif
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%description -n libproxy1-pacrunner-mozjs %description -n libproxy1-pacrunner-mozjs
A module to extend libproxy with capabilities to pass addresses to a A module to extend libproxy with capabilities to pass addresses to a
WPAD/PAC script and have it find the correct proxy. WPAD/PAC script and have it find the correct proxy.
%endif
%package -n libproxy1-pacrunner-webkit %package -n libproxy1-pacrunner-webkit
Summary: Libproxy module to support WPAD/PAC parsing via WebKit JavaScript Engine Summary: Libproxy module to support WPAD/PAC parsing via the WebKit JavaScript Engine
Group: System/Libraries Group: System/Libraries
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%if 0%{?suse_version} %if 0%{?suse_version}
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0) Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
@ -236,8 +214,6 @@ Supplements: packageand(libproxy1:libjavascriptcoregtk-1_0-0)
Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0) Supplements: packageand(libproxy1:libjavascriptcoregtk-3_0-0)
%endif %endif
%endif %endif
# A virtual symbol to identify that this is a pacrunner.
Provides: libproxy1-pacrunner = %{version}
%description -n libproxy1-pacrunner-webkit %description -n libproxy1-pacrunner-webkit
A module to extend libproxy with capabilities to pass addresses to a A module to extend libproxy with capabilities to pass addresses to a
@ -257,44 +233,36 @@ about network configuration changes.
%package -n python3-libproxy %package -n python3-libproxy
Summary: Python3 bindings for libproxy Summary: Python3 bindings for libproxy
Group: System/Libraries Group: Development/Languages/Python
Requires: libproxy1 = %{version}
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %endif
Requires: libproxy1 = %{version}
%description -n python3-libproxy %description -n python3-libproxy
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Python 3 bindings for libproxy.
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 python-libproxy %package -n python-libproxy
Summary: Python bindings for libproxy Summary: Python bindings for libproxy
Group: System/Libraries Group: Development/Languages/Python
Requires: libproxy1 = %{version}
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%py_requires %py_requires
%endif %endif
Requires: libproxy1 = %{version}
%description -n python-libproxy %description -n python-libproxy
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Python 2 bindings for libproxy.
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 %package -n perl-Net-Libproxy
Summary: Perl bindings for libproxy Summary: Perl bindings for libproxy
Group: Development/Libraries/Perl Group: Development/Languages/Perl
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%if 0%{?perl_requires:1} %if 0%{?perl_requires:1}
%{perl_requires} %{perl_requires}
@ -304,16 +272,10 @@ Requires: perl >= %{perl_version}
%endif %endif
%description -n perl-Net-Libproxy %description -n perl-Net-Libproxy
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Perl for libproxy.
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 %package -n libproxy-sharp
Summary: .Net bindings for libproxy Summary: .Net bindings for libproxy
@ -321,17 +283,12 @@ Group: Development/Languages/Mono
Requires: libproxy1 = %{version} Requires: libproxy1 = %{version}
%description -n libproxy-sharp %description -n libproxy-sharp
libproxy offers the following features: * extremely small core libproxy is a library that provides automatic proxy configuration
footprint (< 35K) management.
* no external dependencies within libproxy core (libproxy modules This package contains the Mono/.NET for libproxy.
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
%endif %endif # build_core_not_modules
%prep %prep
%setup -q -n %{_sourcename} %setup -q -n %{_sourcename}
@ -393,7 +350,7 @@ cmake \
-DWITH_GNOME3=ON \ -DWITH_GNOME3=ON \
%endif %endif
.. ..
%{__make} VERBOSE=1 make VERBOSE=1
%install %install
cd build cd build
@ -426,7 +383,6 @@ cd build
make test make test
%if %build_core_not_modules %if %build_core_not_modules
%post -n libproxy1 -p /sbin/ldconfig %post -n libproxy1 -p /sbin/ldconfig
%postun -n libproxy1 -p /sbin/ldconfig %postun -n libproxy1 -p /sbin/ldconfig
@ -460,7 +416,6 @@ make test
%endif %endif
%else %else
%if ! 0%{?windows} %if ! 0%{?windows}
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
%files -n libproxy1-config-kde %files -n libproxy1-config-kde
@ -469,13 +424,11 @@ make test
%endif %endif
%if 0%{?favor_gtk2} %if 0%{?favor_gtk2}
%files -n libproxy1-config-gnome %files -n libproxy1-config-gnome
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/libproxy-%{version}/modules/config_gnome.so %{_libdir}/libproxy-%{version}/modules/config_gnome.so
%{_libexecdir}/libproxy-%{version}/pxgconf %{_libexecdir}/libproxy-%{version}/pxgconf
%else %else
%files -n libproxy1-config-gnome3 %files -n libproxy1-config-gnome3
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/libproxy-%{version}/modules/config_gnome3.so %{_libdir}/libproxy-%{version}/modules/config_gnome3.so
@ -513,7 +466,6 @@ make test
%{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so %{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so
%if %{with mono} %if %{with mono}
%files -n libproxy-sharp %files -n libproxy-sharp
%defattr(-, root, root) %defattr(-, root, root)
%{_assemblies_dir}/gac/libproxy-sharp %{_assemblies_dir}/gac/libproxy-sharp