Sync from SUSE:SLFO:Main libportal revision 9728834687b5c8f6595341863fa57afd

This commit is contained in:
Adrian Schröter 2025-02-20 09:45:17 +01:00
parent a3500d72e1
commit 0bb60cdfa6
4 changed files with 103 additions and 27 deletions

BIN
libportal-0.7.1.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
libportal-0.9.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,48 @@
-------------------------------------------------------------------
Sat Dec 21 09:33:12 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 0.9.0:
+ Features: Introduce support for the Notification v2 portal
version.
+ Bug fixes:
- Fix a file descriptor leak in the Mail portal code
- Fix some minor memory leaks
-------------------------------------------------------------------
Wed Sep 4 15:31:43 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 0.8.1:
+ Fix a regression in the Remote Desktop where it wouldn't work
with the ScreenCast portal correctly.
+ Use non-deprecated functions in the GTK4 code.
+ Run tests in CI so we catch regressions earlier.
+ Make Qt tests use QTEST_GUILESS_MAIN.
+ Fix an Input Capture test.
- Changes from version 0.8.0:
+ Add API to allow for persistence on RemoteDesktop sessions.
+ Implement support for the Input Capture portal.
+ Add support for Qt 6.
+ Support xdg-foreign with Qt 6.
+ Fix screencasting on wlroots-based compositors.
- Build the new Qt 6 support:
+ Add qt6-gui-private-devel, pkgconfig(Qt6Core), pkgconfig(Qt6Gui),
pkgconfig(Qt6Test) and pkgconfig(Qt6Widgets) BuildRequires.
+ Add new sub-packages: libportal-qt6-1 and libportal-qt6-devel.
+ Use ldconfig_scriptlets macro for post(un) handling of the new
shared library.
-------------------------------------------------------------------
Wed Nov 22 00:17:28 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Replace copypasted summaries by something more concrete
-------------------------------------------------------------------
Wed Nov 15 06:43:09 UTC 2023 - Yifan Jiang <yfjiang@suse.com>
- Rename package name from libportal-1 to libportal1, this is
necessary to conform to the shared library policy:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy#Package_naming
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Sep 10 08:53:43 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com> Sun Sep 10 08:53:43 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libportal # spec file for package libportal
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,9 +19,9 @@
%define sover 1 %define sover 1
Name: libportal Name: libportal
Version: 0.7.1 Version: 0.9.0
Release: 0 Release: 0
Summary: A GIO-style async APIs for most Flatpak portals Summary: A GIO-style async API for most Flatpak portals
License: LGPL-3.0-or-later License: LGPL-3.0-or-later
URL: https://github.com/flatpak/libportal URL: https://github.com/flatpak/libportal
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
@ -30,11 +30,16 @@ BuildRequires: c++_compiler
BuildRequires: c_compiler BuildRequires: c_compiler
BuildRequires: meson >= 0.46.0 BuildRequires: meson >= 0.46.0
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: qt6-gui-private-devel
BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6Test)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(gi-docgen) BuildRequires: pkgconfig(gi-docgen)
BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gio-unix-2.0)
@ -44,60 +49,69 @@ BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(vapigen) BuildRequires: pkgconfig(vapigen)
%description %description
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
%package -n %{name}-%{sover} %package -n %{name}%{sover}
Summary: Shared library for %{name} Summary: A GIO-style async API for most Flatpak portals
Obsoletes: libportal-1
Provides: libportal-1
%description -n %{name}-%{sover} %description -n %{name}%{sover}
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the shared library of %{name}. This package contains the shared library of %{name}.
%package -n %{name}-gtk3-%{sover} %package -n %{name}-gtk3-%{sover}
Summary: Shared library for %{name} Summary: GTK3 integration for libportal
%description -n %{name}-gtk3-%{sover} %description -n %{name}-gtk3-%{sover}
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the shared library of %{name}. This package contains the shared library of %{name}.
%package -n %{name}-gtk4-%{sover} %package -n %{name}-gtk4-%{sover}
Summary: Shared library for %{name} Summary: GTK4 integration for libportal
%description -n %{name}-gtk4-%{sover} %description -n %{name}-gtk4-%{sover}
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the shared library of %{name}. This package contains the shared library of %{name}.
%package -n %{name}-qt5-%{sover} %package -n %{name}-qt5-%{sover}
Summary: Shared library for %{name} Summary: Qt5 integration for libportal
%description -n %{name}-qt5-%{sover} %description -n %{name}-qt5-%{sover}
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the shared library of %{name}.
%package -n %{name}-qt6-%{sover}
Summary: Qt6 integration for libportal
%description -n %{name}-qt6-%{sover}
A GIO-style async API for most Flatpak portals.
This package contains the shared library of %{name}. This package contains the shared library of %{name}.
%package -n typelib-1_0-Xdp-1_0 %package -n typelib-1_0-Xdp-1_0
Summary: Introspections files for libportal Summary: Introspections files for libportal
%description -n typelib-1_0-Xdp-1_0 %description -n typelib-1_0-Xdp-1_0
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the introspection files of %{name}. This package contains the introspection files of %{name}.
%package -n typelib-1_0-XdpGtk3-1_0 %package -n typelib-1_0-XdpGtk3-1_0
Summary: Introspections files for libportal Summary: Introspections files for libportal
%description -n typelib-1_0-XdpGtk3-1_0 %description -n typelib-1_0-XdpGtk3-1_0
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the introspection files of %{name}. This package contains the introspection files of %{name}.
%package -n typelib-1_0-XdpGtk4-1_0 %package -n typelib-1_0-XdpGtk4-1_0
Summary: Introspections files for libportal Summary: Introspections files for libportal
%description -n typelib-1_0-XdpGtk4-1_0 %description -n typelib-1_0-XdpGtk4-1_0
A GIO-style async APIs for most Flatpak portals. A GIO-style async API for most Flatpak portals.
This package contains the introspection files of %{name}. This package contains the introspection files of %{name}.
%package devel %package devel
Summary: A GIO-style async APIs for most Flatpak portals -- Development files Summary: Headers for libportal, a GIO async API for Flatpak portals
Requires: %{name}-%{sover} = %{version} Requires: %{name}%{sover} = %{version}
Requires: typelib-1_0-Xdp-1_0 = %{version} Requires: typelib-1_0-Xdp-1_0 = %{version}
%description devel %description devel
@ -105,7 +119,7 @@ The %{name}-devel package contains libraries, build data, and
header files for developing applications that use %{name}. header files for developing applications that use %{name}.
%package gtk3-devel %package gtk3-devel
Summary: A GIO-style async APIs for most Flatpak portals -- Development files Summary: Headers for the libportal GTK3 integration library
Requires: %{name}-gtk3-%{sover} = %{version} Requires: %{name}-gtk3-%{sover} = %{version}
Requires: typelib-1_0-XdpGtk3-1_0 = %{version} Requires: typelib-1_0-XdpGtk3-1_0 = %{version}
@ -114,7 +128,7 @@ The %{name}-gtk3-devel package contains libraries, build data, and
header files for developing applications that use %{name}. header files for developing applications that use %{name}.
%package gtk4-devel %package gtk4-devel
Summary: A GIO-style async APIs for most Flatpak portals -- Development files Summary: Headers for the libportal GTK4 integration library
Requires: %{name}-gtk4-%{sover} = %{version} Requires: %{name}-gtk4-%{sover} = %{version}
Requires: typelib-1_0-XdpGtk4-1_0 = %{version} Requires: typelib-1_0-XdpGtk4-1_0 = %{version}
@ -123,13 +137,21 @@ The %{name}-gtk4-devel package contains libraries, build data, and
header files for developing applications that use %{name}. header files for developing applications that use %{name}.
%package qt5-devel %package qt5-devel
Summary: A GIO-style async APIs for most Flatpak portals -- Development files Summary: Headers for libportal Qt5 integration library
Requires: %{name}-qt5-%{sover} = %{version} Requires: %{name}-qt5-%{sover} = %{version}
%description qt5-devel %description qt5-devel
The %{name}-qt5-devel package contains libraries, build data, and The %{name}-qt5-devel package contains libraries, build data, and
header files for developing applications that use %{name}. header files for developing applications that use %{name}.
%package qt6-devel
Summary: Headers for libportal Qt6 integration library
Requires: %{name}-qt6-%{sover} = %{version}
%description qt6-devel
The %{name}-qt6-devel package contains libraries, build data, and
header files for developing applications that use %{name}.
%prep %prep
%autosetup -p1 %autosetup -p1
@ -141,12 +163,13 @@ header files for developing applications that use %{name}.
%install %install
%meson_install %meson_install
%ldconfig_scriptlets -n %{name}-%{sover} %ldconfig_scriptlets -n %{name}%{sover}
%ldconfig_scriptlets -n %{name}-gtk3-%{sover} %ldconfig_scriptlets -n %{name}-gtk3-%{sover}
%ldconfig_scriptlets -n %{name}-gtk4-%{sover} %ldconfig_scriptlets -n %{name}-gtk4-%{sover}
%ldconfig_scriptlets -n %{name}-qt5-%{sover} %ldconfig_scriptlets -n %{name}-qt5-%{sover}
%ldconfig_scriptlets -n %{name}-qt6-%{sover}
%files -n %{name}-%{sover} %files -n %{name}%{sover}
%license COPYING %license COPYING
%{_libdir}/libportal.so.%{sover}* %{_libdir}/libportal.so.%{sover}*
@ -159,6 +182,9 @@ header files for developing applications that use %{name}.
%files -n %{name}-qt5-%{sover} %files -n %{name}-qt5-%{sover}
%{_libdir}/libportal-qt5.so.%{sover}* %{_libdir}/libportal-qt5.so.%{sover}*
%files -n %{name}-qt6-%{sover}
%{_libdir}/libportal-qt6.so.%{sover}*
%files -n typelib-1_0-Xdp-1_0 %files -n typelib-1_0-Xdp-1_0
%{_libdir}/girepository-1.0/Xdp-1.0.typelib %{_libdir}/girepository-1.0/Xdp-1.0.typelib
@ -202,4 +228,9 @@ header files for developing applications that use %{name}.
%{_libdir}/libportal-qt5.so %{_libdir}/libportal-qt5.so
%{_libdir}/pkgconfig/libportal-qt5.pc %{_libdir}/pkgconfig/libportal-qt5.pc
%files qt6-devel
%{_includedir}/libportal-qt6
%{_libdir}/libportal-qt6.so
%{_libdir}/pkgconfig/libportal-qt6.pc
%changelog %changelog