2022-03-23 08:43:12 +00:00
|
|
|
%define glib2_version 2.69.0
|
2021-02-18 19:07:48 +00:00
|
|
|
|
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
2013-02-20 23:20:12 +00:00
|
|
|
|
2021-06-07 15:21:49 +00:00
|
|
|
# No libproxy in RHEL
|
|
|
|
%if !0%{?rhel}
|
|
|
|
%global with_libproxy 1
|
|
|
|
%endif
|
|
|
|
|
2010-10-08 22:20:04 +00:00
|
|
|
Name: glib-networking
|
2022-07-12 07:48:43 +00:00
|
|
|
Version: 2.74~alpha
|
2021-12-06 15:16:11 +00:00
|
|
|
Release: %autorelease
|
2011-01-17 16:43:03 +00:00
|
|
|
Summary: Networking support for GLib
|
2010-10-08 22:20:04 +00:00
|
|
|
|
|
|
|
License: LGPLv2+
|
2022-03-23 08:43:12 +00:00
|
|
|
URL: https://gitlab.gnome.org/GNOME/glib-networking
|
2022-07-12 07:48:43 +00:00
|
|
|
Source0: https://download.gnome.org/sources/glib-networking/2.74/%{name}-%{tarball_version}.tar.xz
|
2016-06-15 15:34:17 +00:00
|
|
|
|
2021-12-06 15:16:11 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2024296
|
|
|
|
Patch0: sabotage-revocation-checks.patch
|
|
|
|
|
2021-06-07 15:21:49 +00:00
|
|
|
BuildRequires: ca-certificates
|
2018-07-29 17:33:46 +00:00
|
|
|
BuildRequires: gcc
|
2021-06-07 15:21:49 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: meson
|
2019-08-12 11:20:51 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
|
2018-07-29 17:33:46 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2019-08-12 11:20:51 +00:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2021-06-07 15:21:49 +00:00
|
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
|
|
|
%if 0%{?with_libproxy}
|
|
|
|
BuildRequires: pkgconfig(libproxy-1.0)
|
|
|
|
%endif
|
2019-08-12 11:20:51 +00:00
|
|
|
BuildRequires: pkgconfig(p11-kit-1)
|
2021-08-04 15:42:24 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2010-10-08 22:20:04 +00:00
|
|
|
|
2013-02-20 23:20:12 +00:00
|
|
|
Requires: ca-certificates
|
|
|
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
|
|
Requires: gsettings-desktop-schemas
|
|
|
|
|
2022-02-24 17:53:39 +00:00
|
|
|
# For glib-pacrunner
|
|
|
|
Recommends: libproxy-webkitgtk4
|
|
|
|
|
2010-10-08 22:20:04 +00:00
|
|
|
%description
|
2011-04-27 16:18:02 +00:00
|
|
|
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
|
|
|
|
implementation.
|
2010-10-08 22:20:04 +00:00
|
|
|
|
2014-09-04 16:09:51 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for the glib-networking package
|
|
|
|
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.
|
|
|
|
|
2010-10-08 22:20:04 +00:00
|
|
|
%prep
|
2021-02-18 19:07:48 +00:00
|
|
|
%autosetup -p1 -n %{name}-%{tarball_version}
|
2010-10-08 22:20:04 +00:00
|
|
|
|
|
|
|
%build
|
2021-06-07 15:21:49 +00:00
|
|
|
%meson \
|
|
|
|
%if !0%{?with_libproxy}
|
|
|
|
-Dlibproxy=disabled \
|
|
|
|
%endif
|
|
|
|
-Dinstalled_tests=true \
|
|
|
|
%nil
|
2017-12-19 13:15:41 +00:00
|
|
|
%meson_build
|
2010-10-08 22:20:04 +00:00
|
|
|
|
|
|
|
%install
|
2017-12-19 13:15:41 +00:00
|
|
|
%meson_install
|
2010-10-08 22:20:04 +00:00
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2015-03-03 12:21:51 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README
|
2022-02-13 13:29:37 +00:00
|
|
|
%{_libdir}/gio/modules/libgioenvironmentproxy.so
|
2011-04-27 16:18:02 +00:00
|
|
|
%{_libdir}/gio/modules/libgiognomeproxy.so
|
2011-01-17 16:43:03 +00:00
|
|
|
%{_libdir}/gio/modules/libgiognutls.so
|
2021-06-07 15:21:49 +00:00
|
|
|
%if 0%{?with_libproxy}
|
|
|
|
%{_libdir}/gio/modules/libgiolibproxy.so
|
2011-03-22 12:51:39 +00:00
|
|
|
%{_libexecdir}/glib-pacrunner
|
|
|
|
%{_datadir}/dbus-1/services/org.gtk.GLib.PACRunner.service
|
2015-10-28 07:23:28 +00:00
|
|
|
%{_userunitdir}/glib-pacrunner.service
|
2021-06-07 15:21:49 +00:00
|
|
|
%endif
|
2010-10-08 22:20:04 +00:00
|
|
|
|
2014-09-04 16:09:51 +00:00
|
|
|
%files tests
|
|
|
|
%{_libexecdir}/installed-tests/glib-networking
|
|
|
|
%{_datadir}/installed-tests
|
2010-10-08 22:20:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-12-06 15:16:11 +00:00
|
|
|
%autochangelog
|