File mingw32-libsoup3.spec of Package mingw32-libsoup3
#
# spec file for package mingw32-libsoup
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-libsoup3
Version: 3.6.5
Release: 0
Summary: HTTP client/server library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: http://ftp.gnome.org/pub/GNOME/sources/libsoup
Source: http://ftp.gnome.org/pub/gnome/sources/libsoup/3.6/libsoup-%{version}.tar.xz
Patch1: libsoup-3.6.5-mingw-build-fixes.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-glib-networking
BuildRequires: mingw32-cross-meson
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-libpsl-devel
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-sqlite-devel
BuildRequires: mingw32-brotli-devel
BuildRequires: python3
BuildRequires: xz
%_mingw32_package_header_debug
BuildArch: noarch
%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 -n mingw32-libsoup3-3_6-5
Summary: HTTP client/server library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-libsoup3-3_6-5
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: HTTP client/server library (development files)
Group: Development/Libraries/C and C++
%description devel
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.
This package allows you to develop applications that use the libsoup library.
%package -n mingw32-libsoup3-gnome-3_6-5
Summary: HTTP client/server library (gnome files)
Group: System/Libraries
Obsoletes: %{name}-gnome
Provides: %{name}-gnome
%description -n mingw32-libsoup3-gnome-3_6-5
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.
This package contains gnome library.
%package gnome-devel
Summary: HTTP client/server library (gnome development files)
Group: Development/Libraries/C and C++
%description gnome-devel
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.
This package allows you to develop applications that use the libsoup gnome library.
%_mingw32_debug_package
%lang_package
%prep
%autosetup -p1 -n libsoup-%{version}
%build
%_mingw32_cross_wine_init
%_mingw32_meson \
-Dgssapi=disabled \
-Dvapi=disabled \
-Dntlm=disabled \
-Dsysprof=disabled \
-Dintrospection=disabled \
%{nil}
%_mingw32_meson_build
%install
%_mingw32_meson_install
%find_lang libsoup
%files -n mingw32-libsoup3-3_6-5
%defattr(-,root,root)
%{_mingw32_bindir}/libsoup-3_6-5.dll
%files -n mingw32-libsoup3-gnome-3_6-5
%defattr(-,root,root)
%{_mingw32_bindir}/libsoup-gnome-3_6-5.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/libsoup-3.6/libsoup
%{_mingw32_libdir}/libsoup-3.6.dll.a
%{_mingw32_libdir}/pkgconfig/libsoup-3.6.pc
%files gnome-devel
%defattr(-,root,root)
%{_mingw32_includedir}/libsoup-gnome-3.6/libsoup
%{_mingw32_libdir}/libsoup-gnome-3.6.dll.a
%{_mingw32_libdir}/pkgconfig/libsoup-gnome-3.6.pc
%files lang -f libsoup.lang
%defattr(-,root,root)
%changelog