libsoup/libsoup.spec

107 lines
2.8 KiB
RPMSpec

Name: libsoup
Version: 2.71.0
Release: 4
Summary: An HTTP library implementation
License: LGPLv2
URL: https://wiki.gnome.org/Projects/libsoup
Source0: https://download.gnome.org/sources/%{name}/2.71/%{name}-%{version}.tar.xz
Patch6000: backport-fix-testcase-error.patch
Patch6001: backport-CVE-2024-52530.patch
Patch6002: backport-0001-CVE-2024-52531.patch
Patch6003: backport-0002-CVE-2024-52531.patch
Patch6004: backport-0001-CVE-2024-52532.patch
Patch6005: backport-0002-CVE-2024-52532.patch
BuildRequires: glib2-devel glib-networking krb5-devel gobject-introspection-devel gettext
BuildRequires: libxml2-devel libpsl-devel sqlite-devel vala gtk-doc meson libxslt
BuildRequires: samba-winbind-clients brotli-devel
Requires: glib2 glib-networking
%description
libsoup is an HTTP client/server library for GNOME. It uses GObjects and the glib main loop,
to integrate well with GNOME applications, and also has a synchronous API,
for use in threaded applications.
%package devel
Summary: Header files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for %{name}.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%meson -Dgtk_doc=true
%meson_build
%install
%meson_install
sed -i 's/idm[0-9]\{5,32\}/idm12345678912345/g' %{buildroot}%{_datadir}/gtk-doc/html/libsoup-2.4/ix01.html
%check
%meson_test
%files
%defattr(-,root,root)
%doc AUTHORS
%license COPYING
%{_libdir}/*.so.*
%{_datadir}/locale/*
%{_libdir}/girepository-1.0/Soup*2.4.typelib
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}*-2.4
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/Soup*2.4.gir
%{_datadir}/vala/vapi/libsoup-2.4.*
%files help
%defattr(-,root,root)
%doc README NEWS
%{_datadir}/gtk-doc/html/libsoup-2.4/*
%changelog
* Thu Nov 14 2024 xinghe <xinghe2@h-partners.com> - 2.71.0-4
- Type:cves
- ID:CVE-2024-52530 CVE-2024-52531 CVE-2024-52532
- SUG:NA
- DESC:fix CVE-2024-52530 CVE-2024-52531 CVE-2024-52532
* Tue Nov 01 2022 wangkerong<wangkeorng@h-partners.com> - 2.71.0-3
- fix brotli-decompressor-test testcase failure
* Mon Apr 19 2021 zhanzhimin<zhanzhimin@huawei.com> - 2.71.0-2
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:sed html idm for eliminate difference
* Fri Aug 28 2020 zhanzhimin <zhanzhimin@huawei.com> - 2.71.0-1
- update to 2.71.0
* Tue Aug 18 2020 wenzhanli<wenzhanli2@huawei.com> - 2.70.0-2
- add release version for update
* Thu Apr 16 2020 huzunhao <huzunhao2@huawei.com> - 2.70.0-1
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:update to 2.70.0
* Mon Mar 16 2020 hexiujun<hexiujun1@huawei.com> - 2.66.1-2
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:enable test
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.66.1-1
- Package init