Name libsoup3
Description Soup, an HTTP library implementation
Version 3.6.5-6.fc42
Package Base libsoup3
Homepage https://wiki.gnome.org/Projects/libsoup
Maintainers ['limb', 'mcrha']
Contributors []
Distro-repo https://src.fedoraproject.org/rpms/libsoup3/tree/f42
Sources ['0c8c8795f08abb95161c610a0a6dff22d45742d4.patch', '475.patch', 'CVE-2025-32907.patch', 'CVE-2025-32908.patch', 'CVE-2025-4476.patch', 'CVE-2025-4945.patch', 'CVE-2025-4948.patch', 'CVE-2025-4969.patch', 'https://download.gnome.org/sources/libsoup/3.6/libsoup-%{version}.tar.xz']
Dependencies ['libbrotlidec.so.1', 'libc.so.6', 'libgio-2.0.so.0', 'libglib-2.0.so.0', 'libgobject-2.0.so.0', 'libgssapi_krb5.so.2', 'libnghttp2.so.14', 'libpsl.so.5', 'libsqlite3.so.0', 'libz.so.1', 'rtld']
Optional-Dependencies ['glib-networking']
Build-Dependencies ['/usr/bin/ntlm_auth', 'gcc', 'gettext', 'gi-docgen', 'glib-networking', 'krb5-devel', 'meson', 'pkgconfig(gio-2.0)', 'pkgconfig(glib-2.0)', 'pkgconfig(gnutls)', 'pkgconfig(gobject-introspection-1.0)', 'pkgconfig(libbrotlidec)', 'pkgconfig(libnghttp2)', 'pkgconfig(libpsl)', 'pkgconfig(sqlite3)', 'pkgconfig(sysprof-capture-4)', 'vala']
Provides ['libsoup-3.0.so.0()(64bit)', 'libsoup3', 'libsoup3(x86-64)']
Builddate 16-09-2025 18:06:08
Architecture x86_64
Distro-Version 42
Licenses ['LGPL-2.0-or-later AND LGPL-2.1-or-later']
Hash 02deb3a870cbb8be498b449b3e96f11c33452540578dac3bf75550c915840a66
%global glib2_version 2.70.0

Name:    libsoup3
Version: 3.6.5
Release: %autorelease
Summary: Soup, an HTTP library implementation

License: LGPL-2.0-or-later AND LGPL-2.1-or-later
URL:     https://wiki.gnome.org/Projects/libsoup
Source0: https://download.gnome.org/sources/libsoup/3.6/libsoup-%{version}.tar.xz

# https://bugzilla.redhat.com/show_bug.cgi?id=2367183
Patch:   CVE-2025-4948.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2359343
Patch:   CVE-2025-32908.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2359342
Patch:   CVE-2025-32907.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2367552
Patch:   CVE-2025-4969.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2367175
Patch:   CVE-2025-4945.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2366513
Patch:   CVE-2025-4476.patch
Patch:   475.patch
Patch:   0c8c8795f08abb95161c610a0a6dff22d45742d4.patch

BuildRequires: gcc
BuildRequires: gettext
BuildRequires: glib-networking >= %{glib2_version}
BuildRequires: gi-docgen >= 2021.1
BuildRequires: krb5-devel
BuildRequires: meson
BuildRequires: vala
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libbrotlidec)
BuildRequires: pkgconfig(libnghttp2)
BuildRequires: pkgconfig(libpsl)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(sysprof-capture-4)
BuildRequires: /usr/bin/ntlm_auth

Recommends: glib-networking%{?_isa} >= %{glib2_version}

%description
Libsoup is an HTTP library implementation in C. It was originally part
of a SOAP (Simple Object Access Protocol) implementation called Soup, but
the SOAP and non-SOAP parts have now been split into separate packages.

libsoup uses the Glib main loop and is designed to work well with GTK
applications. This enables GNOME applications to access HTTP servers
on the network in a completely asynchronous fashion, very similar to
the Gtk+ programming model (a synchronous operation mode is also
supported for those who want it), but the SOAP parts were removed
long ago.

%package devel
Summary: Header files for the Soup library
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
Libsoup is an HTTP library implementation in C. This package allows
you to develop applications that use the libsoup library.

%package doc
Summary: Documentation files for %{name}
# Because web fonts from upstream are not bundled in the gi-docgen package,
# packages containing documentation generated with gi-docgen should depend on
# this metapackage to ensure the proper system fonts are present.
Recommends: gi-docgen-fonts
BuildArch: noarch

%description doc
This package contains developer documentation for %{name}.

%prep
%autosetup -p1 -n libsoup-%{version}

%build
%meson -Ddocs=enabled -Dautobahn=disabled
%meson_build

%install
%meson_install
install -m 644 -D tests/libsoup.supp %{buildroot}%{_datadir}/libsoup-3.0/libsoup.supp

%find_lang libsoup-3.0

%check
%meson_test

%files -f libsoup-3.0.lang
%license COPYING
%doc README NEWS AUTHORS
%{_libdir}/libsoup-3.0.so.0*
%dir %{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0/Soup-3.0.typelib

%files devel
%{_includedir}/libsoup-3.0
%{_libdir}/libsoup-3.0.so
%{_libdir}/pkgconfig/libsoup-3.0.pc
%dir %{_datadir}/libsoup-3.0
%{_datadir}/libsoup-3.0/libsoup.supp
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/Soup-3.0.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/libsoup-3.0.deps
%{_datadir}/vala/vapi/libsoup-3.0.vapi

%files doc
%{_docdir}/libsoup-3.0/

%changelog
%autochangelog