Blob Blame History Raw
%define glib2_version 2.73.3
%global libproxy_version 0.4.16

%global tarball_version %%(echo %{version} | tr '~' '.')

# Not yet sure whether to have libproxy in el10, but assume yes for now.
%global with_libproxy 1

Name:           glib-networking
Version:        2.80.0
Release:        %autorelease
Summary:        Networking support for GLib

License:        LGPL-2.1-or-later WITH cryptsetup-OpenSSL-exception

BuildRequires:  ca-certificates
BuildRequires:  gcc
BuildRequires:  gettext
BuildRequires:  meson
BuildRequires:  pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
%if 0%{?with_libproxy}
BuildRequires:  pkgconfig(libproxy-1.0) >= %{libproxy_version}
BuildRequires:  pkgconfig(p11-kit-1)
BuildRequires:  systemd-rpm-macros

Requires:       ca-certificates
Requires:       glib2%{?_isa} >= %{glib2_version}
Requires:       gsettings-desktop-schemas

# For glib-pacrunner
Recommends:     libproxy-duktape

This package contains modules that extend the networking support in
GIO. In particular, it contains libproxy- and GSettings-based
GProxyResolver implementations and a gnutls-based GTlsConnection

%package tests
Summary: Tests for the glib-networking package
# glib-networking-2.78.0/tls/tests/mock-pkcs11.c is Apache-2.0
# pkcs11t.h is LicenseRef-RSA
# dtls-connection.c is LGPL-2.0-or-later but not currently included in the binaries
License: LGPL-2.1-or-later WITH cryptsetup-OpenSSL-exception AND Apache-2.0 AND LicenseRef-RSA
Requires: %{name}%{?_isa} = %{version}-%{release}

%description tests
The glib-networking-tests package contains tests that can be used to verify
the functionality of the installed glib-networking package.

%autosetup -p1 -n %{name}-%{tarball_version}

%meson \
%if !0%{?with_libproxy}
  -Dlibproxy=disabled \
  -Denvironment_proxy=enabled \
  -Dinstalled_tests=true \



%find_lang %{name}

%files -f %{name}.lang
%if 0%{?with_libproxy}

%files tests