aed06f3
%define glib2_version 2.73.3
6612f6b
%global libproxy_version 0.4.16
283e358
283e358
%global tarball_version %%(echo %{version} | tr '~' '.')
ef84415
53d8853
# Not yet sure whether to have libproxy in el10, but assume yes for now.
e09df4d
%global with_libproxy 1
e09df4d
96afc43
Name:           glib-networking
75e2c60
Version:        2.80.0
0e69b58
Release:        %autorelease
Dan Winship 6998807
Summary:        Networking support for GLib
96afc43
97fa4d1
License:        LGPL-2.1-or-later WITH cryptsetup-OpenSSL-exception
fd45e4d
URL:            https://gitlab.gnome.org/GNOME/glib-networking
dd8954d
Source0:        https://download.gnome.org/sources/glib-networking/2.80/%{name}-%{tarball_version}.tar.xz
Michael Catanzaro 441e95c
e09df4d
BuildRequires:  ca-certificates
1b445ce
BuildRequires:  gcc
e09df4d
BuildRequires:  gettext
e09df4d
BuildRequires:  meson
2ce862a
BuildRequires:  pkgconfig(glib-2.0) >= %{glib2_version}
1b445ce
BuildRequires:  pkgconfig(gio-2.0)
2ce862a
BuildRequires:  pkgconfig(gnutls)
e09df4d
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
e09df4d
%if 0%{?with_libproxy}
6612f6b
BuildRequires:  pkgconfig(libproxy-1.0) >= %{libproxy_version}
e09df4d
%endif
2ce862a
BuildRequires:  pkgconfig(p11-kit-1)
58d15bd
BuildRequires:  systemd-rpm-macros
96afc43
ef84415
Requires:       ca-certificates
ef84415
Requires:       glib2%{?_isa} >= %{glib2_version}
ef84415
Requires:       gsettings-desktop-schemas
ef84415
076c6a0
# For glib-pacrunner
2d05ff4
Recommends:     libproxy-duktape
076c6a0
96afc43
%description
Dan Winship 9e51cd2
This package contains modules that extend the networking support in
Dan Winship 9e51cd2
GIO. In particular, it contains libproxy- and GSettings-based
Dan Winship 9e51cd2
GProxyResolver implementations and a gnutls-based GTlsConnection
Dan Winship 9e51cd2
implementation.
96afc43
2608c28
%package tests
2608c28
Summary: Tests for the glib-networking package
97fa4d1
# glib-networking-2.78.0/tls/tests/mock-pkcs11.c is Apache-2.0
768cafc
# pkcs11t.h is LicenseRef-RSA
97fa4d1
# dtls-connection.c is LGPL-2.0-or-later but not currently included in the binaries
768cafc
License: LGPL-2.1-or-later WITH cryptsetup-OpenSSL-exception AND Apache-2.0 AND LicenseRef-RSA
2608c28
Requires: %{name}%{?_isa} = %{version}-%{release}
2608c28
2608c28
%description tests
2608c28
The glib-networking-tests package contains tests that can be used to verify
2608c28
the functionality of the installed glib-networking package.
2608c28
96afc43
%prep
283e358
%autosetup -p1 -n %{name}-%{tarball_version}
96afc43
96afc43
%build
e09df4d
%meson \
e09df4d
%if !0%{?with_libproxy}
e09df4d
  -Dlibproxy=disabled \
b431b62
  -Denvironment_proxy=enabled \
ff78dbe
%endif
e09df4d
  -Dinstalled_tests=true \
e09df4d
  %nil
bbad9d7
%meson_build
96afc43
96afc43
%install
bbad9d7
%meson_install
96afc43
42fb7b6
%check
42fb7b6
%meson_test
42fb7b6
96afc43
%find_lang %{name}
96afc43
96afc43
%files -f %{name}.lang
42fb7b6
%license COPYING LICENSE_EXCEPTION
a785fcc
%doc NEWS README
Dan Winship 9e51cd2
%{_libdir}/gio/modules/libgiognomeproxy.so
Dan Winship 6998807
%{_libdir}/gio/modules/libgiognutls.so
e09df4d
%if 0%{?with_libproxy}
e09df4d
%{_libdir}/gio/modules/libgiolibproxy.so
bb0a1c5
%{_libexecdir}/glib-pacrunner
bb0a1c5
%{_datadir}/dbus-1/services/org.gtk.GLib.PACRunner.service
443be6c
%{_userunitdir}/glib-pacrunner.service
1acec8d
%else
1acec8d
%{_libdir}/gio/modules/libgioenvironmentproxy.so
e09df4d
%endif
96afc43
2608c28
%files tests
2608c28
%{_libexecdir}/installed-tests/glib-networking
2608c28
%{_datadir}/installed-tests
96afc43
96afc43
%changelog
0e69b58
%autochangelog