Blame SPECS/xdg-desktop-portal.spec

654c1a
%global pipewire_version 0.2.90
654c1a
%global geoclue_version 2.5.2
654c1a
%global glib_version 2.68.3-5
654c1a
%global low_memory_monitor_version 2.0
654c1a
654c1a
Name:    xdg-desktop-portal
654c1a
Version: 1.12.1
654c1a
Release: 1%{?dist}
654c1a
Summary: Portal frontend service to flatpak
654c1a
654c1a
License: LGPLv2+
654c1a
URL:     https://github.com/flatpak/xdg-desktop-portal/
654c1a
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
654c1a
654c1a
BuildRequires: gcc
654c1a
BuildRequires: make
654c1a
BuildRequires: systemd-rpm-macros
654c1a
BuildRequires: pkgconfig(flatpak)
654c1a
BuildRequires: pkgconfig(fuse)
654c1a
BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib_version}
654c1a
BuildRequires: pkgconfig(json-glib-1.0)
654c1a
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
654c1a
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_version}
654c1a
BuildRequires: /usr/bin/xmlto
654c1a
654c1a
Requires:      dbus
654c1a
# Required version for icon validator.
654c1a
Recommends:    flatpak >= 1.2.0
654c1a
Requires:      geoclue2 >= %{geoclue_version}
654c1a
Requires:      glib2 >= %{glib_version}
654c1a
Recommends:    pipewire >= %{pipewire_version}
654c1a
Requires:      pipewire-libs >= %{pipewire_version}
654c1a
# Required for the document portal.
654c1a
Requires:      /usr/bin/fusermount
654c1a
# Required for the GMemoryMonitor GIO API
654c1a
Requires:      low-memory-monitor >= %{low_memory_monitor_version}
654c1a
654c1a
# https://github.com/flatpak/xdg-desktop-portal/pull/613
654c1a
Patch0: power-profiles-daemon-gnome-40-backport.patch
654c1a
654c1a
%description
654c1a
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
654c1a
portals under a well-known name (org.freedesktop.portal.Desktop) and object
654c1a
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
654c1a
file access, opening URIs, printing and others.
654c1a
654c1a
%package  devel
654c1a
Summary:  Development files for %{name}
654c1a
Requires: %{name}%{?_isa} = %{version}-%{release}
654c1a
654c1a
%description devel
654c1a
The pkg-config file for %{name}.
654c1a
654c1a
654c1a
%prep
654c1a
%autosetup -p1
654c1a
654c1a
654c1a
%build
654c1a
%configure --enable-docbook-docs --disable-libportal
654c1a
%make_build
654c1a
654c1a
654c1a
%install
654c1a
%make_install
654c1a
install -dm 755 %{buildroot}/%{_pkgdocdir}
654c1a
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
654c1a
# This directory is used by implementations such as xdg-desktop-portal-gtk.
654c1a
install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals
654c1a
654c1a
%find_lang %{name}
654c1a
654c1a
654c1a
%post
654c1a
%systemd_user_post %{name}.service
654c1a
%systemd_user_post xdg-document-portal.service
654c1a
%systemd_user_post xdg-permission-store.service
654c1a
654c1a
654c1a
%preun
654c1a
%systemd_user_preun %{name}.service
654c1a
%systemd_user_preun xdg-document-portal.service
654c1a
%systemd_user_preun xdg-permission-store.service
654c1a
654c1a
654c1a
%files -f %{name}.lang
654c1a
%doc %{_pkgdocdir}
654c1a
%license COPYING
654c1a
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
654c1a
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
654c1a
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
654c1a
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
654c1a
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
654c1a
%{_datadir}/%{name}
654c1a
%{_libexecdir}/xdg-desktop-portal
654c1a
%{_libexecdir}/xdg-document-portal
654c1a
%{_libexecdir}/xdg-permission-store
654c1a
%{_userunitdir}/%{name}.service
654c1a
%{_userunitdir}/xdg-document-portal.service
654c1a
%{_userunitdir}/xdg-permission-store.service
654c1a
654c1a
%files devel
654c1a
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
654c1a
654c1a
654c1a
%changelog
654c1a
* Tue Feb 08 2022 Debarshi Ray <rishi@fedoraproject.org> - 1.12.1-1
654c1a
- Rebase to 1.12.1
654c1a
Resolves: #2051488
654c1a
654c1a
* Tue Aug 24 2021 Bastien Nocera <bnocera@redhat.com> - 1.8.1-6
654c1a
+ xdg-desktop-portal-1.8.1-6
654c1a
- Add PowerProfileMonitor portal
654c1a
- Resolves: rhbz#1994468
654c1a
654c1a
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.1-5
654c1a
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
654c1a
  Related: rhbz#1991688
654c1a
654c1a
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.1-4
654c1a
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
654c1a
654c1a
* Thu Apr 15 2021 Tomas Popela <tpopela@redhat.com> - 1.8.1-3
654c1a
- Drop PipeWire 0.2 requirement as Chrom[e|ium] 90 now depends on PipeWire 0.3
654c1a
- Resolves: rhbz#1929237
654c1a
654c1a
* Wed Feb 17 2021 David King <amigadave@amigadave.com> - 1.8.1-2
654c1a
- Drop unused fontconfig BuildRequires
654c1a
654c1a
* Wed Feb 17 2021 Kalev Lember <klember@redhat.com> - 1.8.1-1
654c1a
- Update to 1.8.1
654c1a
654c1a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
654c1a
654c1a
* Mon Sep 14 2020 Kalev Lember <klember@redhat.com> - 1.8.0-1
654c1a
- Update to 1.8.0
654c1a
654c1a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
654c1a
654c1a
* Thu Jun 25 2020 Tomas Popela <tpopela@redhat.com> - 1.7.2-2
654c1a
- Start to require pipewire0.2-libs so screen sharing works out of the box in Chrome and Chromium.
654c1a
654c1a
* Fri Apr 03 2020 David King <amigadave@amigadave.com> - 1.7.2-1
654c1a
- Update to 1.7.2 (#1820660)
654c1a
654c1a
* Sat Mar 28 2020 Kalev Lember <klember@redhat.com> - 1.7.1-1
654c1a
- Update to 1.7.1
654c1a
654c1a
* Sat Mar 14 2020 David King <amigadave@amigadave.com> - 1.7.0-1
654c1a
- Update to 1.7.0 (#1813534)
654c1a
654c1a
* Tue Mar 10 2020 Kalev Lember <klember@redhat.com> - 1.6.0-4
654c1a
- Backport PipeWire 0.3 support
654c1a
654c1a
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
654c1a
654c1a
* Fri Jan 03 2020 Bastien Nocera <bnocera@redhat.com> - 1.6.0-2
654c1a
+ xdg-desktop-portal-1.6.0-2
654c1a
- Add requires to implement GMemoryMonitor
654c1a
654c1a
* Fri Dec 20 2019 David King <amigadave@amigadave.com> - 1.6.0-1
654c1a
- Update to 1.6.0
654c1a
654c1a
* Thu Dec 12 2019 David King <amigadave@amigadave.com> - 1.5.4-1
654c1a
- Update to 1.5.4
654c1a
654c1a
* Thu Nov 28 2019 David King <amigadave@amigadave.com> - 1.5.3-1
654c1a
- Update to 1.5.3
654c1a
654c1a
* Tue Oct 29 2019 David King <amigadave@amigadave.com> - 1.5.2-1
654c1a
- Update to 1.5.2 (#1766780)
654c1a
654c1a
* Tue Oct 22 2019 David King <amigadave@amigadave.com> - 1.5.1-1
654c1a
- Update to 1.5.1 (#1714704)
654c1a
654c1a
* Fri Oct 04 2019 David King <amigadave@amigadave.com> - 1.5.0-1
654c1a
- Update to 1.5.0
654c1a
654c1a
* Mon Sep 16 2019 Kalev Lember <klember@redhat.com> - 1.4.2-3
654c1a
- Avoid a hard dep on pipewire daemon
654c1a
654c1a
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
654c1a
654c1a
* Tue May 28 2019 Kalev Lember <klember@redhat.com> - 1.4.2-1
654c1a
- Update to 1.4.2
654c1a
654c1a
* Thu Feb 14 2019 David King <amigadave@amigadave.com> - 1.2.0-3
654c1a
- Drop icon validator Requires to Recommends
654c1a
654c1a
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
654c1a
654c1a
* Sat Jan 26 2019 David King <amigadave@amigadave.com> - 1.2.0-1
654c1a
- Update to 1.2.0 (#1669552)
654c1a
654c1a
* Wed Jan 16 2019 Kalev Lember <klember@redhat.com> - 1.1.1-1
654c1a
- Update to 1.1.1
654c1a
654c1a
* Tue Oct 09 2018 David King <amigadave@amigadave.com> - 1.0.3-1
654c1a
- Update to 1.0.3
654c1a
654c1a
* Mon Sep 03 2018 David King <amigadave@amigadave.com> - 1.0.2-1
654c1a
- Update to 1.0.2
654c1a
654c1a
* Mon Aug 20 2018 David King <amigadave@amigadave.com> - 1.0-1
654c1a
- Update to 1.0
654c1a
654c1a
* Wed Aug 01 2018 Jan Grulich <jgrulich@redhat.com> - 0.99-2
654c1a
- Rebuild PipeWire 0.2.2
654c1a
654c1a
* Tue Jul 24 2018 David King <amigadave@amigadave.com> - 0.99-1
654c1a
- Update to 0.99
654c1a
654c1a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
654c1a
654c1a
* Wed Apr 25 2018 David King <amigadave@amigadave.com> - 0.11-1
654c1a
- Update to 0.11 (#1545225)
654c1a
654c1a
* Wed Feb 14 2018 David King <amigadave@amigadave.com> - 0.10-1
654c1a
- Update to 0.10 (#1545225)
654c1a
654c1a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
654c1a
654c1a
* Sun Nov 19 2017 David King <amigadave@amigadave.com> - 0.9-1
654c1a
- Update to 0.9 (#1514774)
654c1a
654c1a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
654c1a
654c1a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
654c1a
654c1a
* Tue Jun 06 2017 David King <amigadave@amigadave.com> - 0.8-1
654c1a
- Update to 0.8 (#1458969)
654c1a
654c1a
* Fri Mar 31 2017 David King <amigadave@amigadave.com> - 0.6-1
654c1a
- Update to 0.6
654c1a
654c1a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
654c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
654c1a
654c1a
* Wed Jan 18 2017 David King <amigadave@amigadave.com> - 0.5-1
654c1a
- Update to 0.5
654c1a
654c1a
* Thu Dec 01 2016 David King <amigadave@amigadave.com> - 0.4-1
654c1a
- Update to 0.4
654c1a
654c1a
* Fri Sep 02 2016 David King <amigadave@amigadave.com> - 0.3-1
654c1a
- Update to 0.3
654c1a
654c1a
* Fri Jul 29 2016 David King <amigadave@amigadave.com> - 0.2-1
654c1a
- Update to 0.2 (#1361575)
654c1a
654c1a
* Tue Jul 12 2016 David King <amigadave@amigadave.com> - 0.1-2
654c1a
- Own the portals directory
654c1a
654c1a
* Mon Jul 11 2016 David King <amigadave@amigadave.com> - 0.1-1
654c1a
- Initial Fedora packaging