Blame SPECS/xdg-desktop-portal.spec

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