diff --git a/libsoup-3.0.6.tar.xz b/libsoup-3.0.6.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..4c178467a24bac9c04127d8b1f04ed5b96eff348 Binary files /dev/null and b/libsoup-3.0.6.tar.xz differ diff --git a/libsoup3.spec b/libsoup3.spec new file mode 100644 index 0000000000000000000000000000000000000000..f3f5b7bccef47db02bc363dabe18cf39d6f8093d --- /dev/null +++ b/libsoup3.spec @@ -0,0 +1,79 @@ +%global glib2_version 2.58.0 + +Name: libsoup3 +Version: 3.0.6 +Release: 1 +Summary: Soup, an HTTP library implementation +License: LGPLv2 +URL: https://wiki.gnome.org/Projects/libsoup +Source0: https://download.gnome.org/sources/libsoup/3.0/libsoup-%{version}.tar.xz +Patch0: xgettext.patch + +BuildRequires: gcc meson gettext vala gtk-doc krb5-devel samba-winbind-clients +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: glib-networking +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(libbrotlidec) +BuildRequires: pkgconfig(libpsl) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(sysprof-capture-4) +BuildRequires: pkgconfig(libnghttp2) + +Recommends: glib-networking >= %{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} = %{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_help + +%prep +%autosetup -p0 -n libsoup-%{version} + +%build +%global gtkdoc_flags -Dgtk_doc=true +%meson %gtkdoc_flags -Dtests=false -Dautobahn=disabled -Dhttp2_tests=disabled -Dpkcs11_tests=disabled +%meson_build + +%install +%meson_install + +%find_lang libsoup-3.0 + +%files -f libsoup-3.0.lang +%license COPYING +%{_libdir}/libsoup-3.0.so.0* +%{_libdir}/girepository-1.0/Soup*3.0.typelib + +%files devel +%{_includedir}/libsoup-3.0 +%{_libdir}/libsoup-3.0.so +%{_libdir}/pkgconfig/*.pc +%{_datadir}/gir-1.0/Soup*3.0.gir +%{_datadir}/vala/vapi/libsoup-3.0.deps +%{_datadir}/vala/vapi/libsoup-3.0.vapi + +%files help +%doc README NEWS AUTHORS +%{_datadir}/gtk-doc/html/libsoup-3.0 + +%changelog +* Mon Apr 11 2022 lin zhang - 3.0.6-1 +- Initial packaging diff --git a/libsoup3.yaml b/libsoup3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9c39be75d11ed64f5982d72db4c46fec0ecf5c4f --- /dev/null +++ b/libsoup3.yaml @@ -0,0 +1,4 @@ +version_control: gitlab.gnome +src_repo: libsoup +tag_prefix: ^v +seperator: . diff --git a/xgettext.patch b/xgettext.patch new file mode 100644 index 0000000000000000000000000000000000000000..08cb8b4cb5b0886cfc3d6b6b10dede1e114e849b --- /dev/null +++ b/xgettext.patch @@ -0,0 +1,24 @@ +--- meson.build~ 2021-11-24 12:15:58.564374000 -0600 ++++ meson.build 2022-01-06 09:43:04.302267338 -0600 +@@ -392,11 +392,7 @@ + configure_file(output : 'config.h', configuration : cdata) + + subdir('libsoup') +-xgettext = find_program('xgettext', required : false) +-# xgettext is optional (on Windows for instance) +-if xgettext.found() +- subdir('po') +-endif ++subdir('po') + + subdir('examples') + subdir('fuzzing') +@@ -421,7 +417,7 @@ + 'GSSAPI' : enable_gssapi, + 'NTLM' : ntlm_auth.found(), + 'Brotli' : brotlidec_dep.found(), +- 'Translations' : xgettext.found(), ++ 'Translations' : 'True', + 'GIR' : enable_introspection, + 'VAPI' : enable_vapi, + 'Documentation' : get_option('gtk_doc'),