2020-11-03 11:52:23 +00:00
|
|
|
%global pipewire_version 0.3.0
|
2020-04-28 09:39:21 +00:00
|
|
|
%global geoclue_version 2.5.2
|
2019-05-07 12:34:31 +00:00
|
|
|
|
|
|
|
Name: xdg-desktop-portal
|
2020-11-03 11:52:23 +00:00
|
|
|
Version: 1.6.0
|
2021-05-18 06:41:35 +00:00
|
|
|
Release: 4%{?dist}
|
2019-05-07 12:34:31 +00:00
|
|
|
Summary: Portal frontend service to flatpak
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/flatpak/xdg-desktop-portal/
|
|
|
|
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
2020-11-03 11:52:23 +00:00
|
|
|
# Backport PipeWire 0.3 support (#1775345)
|
|
|
|
Patch1: 0001-PipeWire-update-to-0.3-API.patch
|
|
|
|
|
|
|
|
# Backport https://github.com/flatpak/xdg-desktop-portal/issues/480 fixes. (#1775345)
|
|
|
|
Patch2: 0001-open-uri-Return-errors-from-launch_application_with_.patch
|
|
|
|
Patch3: 0002-open-uri-Allow-skipping-chooser-for-more-URL-types.patch
|
|
|
|
Patch4: 0003-open-uri-Always-open-URIs-in-default-app.patch
|
|
|
|
Patch5: 0004-open-uri-Show-app-chooser-when-default-app-does-not-.patch
|
|
|
|
Patch6: 0005-open-uri-avoid-criticals-when-app-to-open-does-not-e.patch
|
|
|
|
|
|
|
|
# Build against older glib2
|
|
|
|
Patch7: 0001-Don-t-use-g_strv_equals.patch
|
2021-05-18 06:41:35 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1886025
|
2020-12-15 16:05:34 +00:00
|
|
|
Patch8: xdg-desktop-portal-1.6.0-fix-openuri-crash.patch
|
2020-11-03 11:52:23 +00:00
|
|
|
|
2019-05-07 12:34:31 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pkgconfig(flatpak)
|
2020-04-28 09:39:21 +00:00
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
2019-05-07 12:34:31 +00:00
|
|
|
BuildRequires: pkgconfig(fuse)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2020-04-28 09:39:21 +00:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
|
2020-11-03 11:52:23 +00:00
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_version}
|
2019-05-07 12:34:31 +00:00
|
|
|
BuildRequires: /usr/bin/xmlto
|
2020-11-03 11:52:23 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BUildRequires: gettext-devel
|
2019-05-07 12:34:31 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
BuildRequires: systemd
|
|
|
|
Requires: dbus
|
2020-04-28 09:39:21 +00:00
|
|
|
# Required version for icon validator.
|
|
|
|
Recommends: flatpak >= 1.2.0
|
|
|
|
Requires: geoclue2 >= %{geoclue_version}
|
|
|
|
Recommends: pipewire >= %{pipewire_version}
|
|
|
|
Requires: pipewire-libs >= %{pipewire_version}
|
2020-11-03 11:52:23 +00:00
|
|
|
# Until WebRTC supports PipeWire 0.3 we have to require PipeWire 0.2 to be
|
|
|
|
# preinstalled otherwise the screen and window sharing won't work in Chrome and
|
|
|
|
# Chromium out of the box.
|
|
|
|
Requires: pipewire0.2-libs%{?_isa}
|
2019-05-07 12:34:31 +00:00
|
|
|
# Required for the document portal.
|
|
|
|
Requires: /usr/bin/fusermount
|
|
|
|
|
|
|
|
%description
|
|
|
|
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
|
|
|
|
portals under a well-known name (org.freedesktop.portal.Desktop) and object
|
|
|
|
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
|
|
|
|
file access, opening URIs, printing and others.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The pkg-config file for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-11-03 11:52:23 +00:00
|
|
|
%autosetup -S git
|
2019-05-07 12:34:31 +00:00
|
|
|
|
|
|
|
%build
|
2020-11-03 11:52:23 +00:00
|
|
|
autoreconf --force --install --verbose
|
|
|
|
%configure --enable-docbook-docs --disable-libportal
|
2019-05-07 12:34:31 +00:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
install -dm 755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
|
|
|
|
# This directory is used by implementations such as xdg-desktop-portal-gtk.
|
|
|
|
install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_user_post %{name}.service
|
|
|
|
%systemd_user_post xdg-document-portal.service
|
|
|
|
%systemd_user_post xdg-permission-store.service
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_user_preun %{name}.service
|
|
|
|
%systemd_user_preun xdg-document-portal.service
|
|
|
|
%systemd_user_preun xdg-permission-store.service
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
%license COPYING
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_libexecdir}/xdg-desktop-portal
|
|
|
|
%{_libexecdir}/xdg-document-portal
|
|
|
|
%{_libexecdir}/xdg-permission-store
|
|
|
|
%{_userunitdir}/%{name}.service
|
|
|
|
%{_userunitdir}/xdg-document-portal.service
|
|
|
|
%{_userunitdir}/xdg-permission-store.service
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-05-18 06:41:35 +00:00
|
|
|
* Thu Feb 18 2021 Tomas Pelka <tpelka@redhat.com> - 1.6.0-4
|
|
|
|
- Bump version and rebuild due to z-stream release with the same version
|
|
|
|
|
2020-12-15 16:05:34 +00:00
|
|
|
* Fri Oct 09 2020 David King <dking@redhat.com> - 1.6.0-3
|
2021-05-18 06:41:35 +00:00
|
|
|
- Fix OpenURI crash (#1886025)
|
2020-12-15 16:05:34 +00:00
|
|
|
|
2020-11-03 11:52:23 +00:00
|
|
|
* Thu Jul 15 2020 Jonas Ådahl <jadahl@redhat.com> - 1.6.0-2
|
|
|
|
- Require pipewire0.2-libs for legacy application support.
|
|
|
|
Resolves: #1854734
|
|
|
|
|
|
|
|
* Mon May 25 2020 Jonas Ådahl <jadahl@redhat.com> - 1.6.0-1
|
|
|
|
- Rebase to 1.6.0 (#1775345)
|
|
|
|
- Backport PipeWire 0.3 support (#1775345)
|
|
|
|
- Backport fixes (#1775345)
|
|
|
|
|
2020-04-28 09:39:21 +00:00
|
|
|
* Wed Oct 09 2019 David King <dking@redhat.com> - 1.4.2-1
|
|
|
|
- Rebase to 1.4.2 (#1748296)
|
|
|
|
|
2019-05-07 12:34:31 +00:00
|
|
|
* Tue Oct 09 2018 David King <amigadave@amigadave.com> - 1.0.3-1
|
|
|
|
- Update to 1.0.3
|
|
|
|
|
|
|
|
* Tue Sep 18 2018 Kalev Lember <klember@redhat.com> - 1.0.2-1
|
|
|
|
- Update to 1.0.2 (#1630249)
|
|
|
|
|
|
|
|
* Wed Aug 01 2018 Jan Grulich <jgrulich@redhat.com> - 0.99-2
|
|
|
|
- Rebuild PipeWire 0.2.2
|
|
|
|
|
|
|
|
* Tue Jul 31 2018 David King <dking@redhat.com> - 0.99-1
|
|
|
|
- Update to 0.99
|
|
|
|
|
|
|
|
* Wed Apr 25 2018 David King <amigadave@amigadave.com> - 0.11-1
|
|
|
|
- Update to 0.11 (#1545225)
|
|
|
|
|
|
|
|
* Wed Feb 14 2018 David King <amigadave@amigadave.com> - 0.10-1
|
|
|
|
- Update to 0.10 (#1545225)
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Nov 19 2017 David King <amigadave@amigadave.com> - 0.9-1
|
|
|
|
- Update to 0.9 (#1514774)
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jun 06 2017 David King <amigadave@amigadave.com> - 0.8-1
|
|
|
|
- Update to 0.8 (#1458969)
|
|
|
|
|
|
|
|
* Fri Mar 31 2017 David King <amigadave@amigadave.com> - 0.6-1
|
|
|
|
- Update to 0.6
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jan 18 2017 David King <amigadave@amigadave.com> - 0.5-1
|
|
|
|
- Update to 0.5
|
|
|
|
|
|
|
|
* Thu Dec 01 2016 David King <amigadave@amigadave.com> - 0.4-1
|
|
|
|
- Update to 0.4
|
|
|
|
|
|
|
|
* Fri Sep 02 2016 David King <amigadave@amigadave.com> - 0.3-1
|
|
|
|
- Update to 0.3
|
|
|
|
|
|
|
|
* Fri Jul 29 2016 David King <amigadave@amigadave.com> - 0.2-1
|
|
|
|
- Update to 0.2 (#1361575)
|
|
|
|
|
|
|
|
* Tue Jul 12 2016 David King <amigadave@amigadave.com> - 0.1-2
|
|
|
|
- Own the portals directory
|
|
|
|
|
|
|
|
* Mon Jul 11 2016 David King <amigadave@amigadave.com> - 0.1-1
|
|
|
|
- Initial Fedora packaging
|