|
|
c07693 |
Name: xdg-desktop-portal
|
|
|
c07693 |
Version: 1.0.2
|
|
|
c07693 |
Release: 1%{?dist}
|
|
|
c07693 |
Summary: Portal frontend service to flatpak
|
|
|
c07693 |
|
|
|
c07693 |
License: LGPLv2+
|
|
|
c07693 |
URL: https://github.com/flatpak/xdg-desktop-portal/
|
|
|
c07693 |
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
c07693 |
|
|
|
c07693 |
BuildRequires: pkgconfig(flatpak)
|
|
|
c07693 |
BuildRequires: pkgconfig(fuse)
|
|
|
c07693 |
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
c07693 |
BuildRequires: /usr/bin/xmlto
|
|
|
c07693 |
BuildRequires: gcc
|
|
|
c07693 |
%{?systemd_requires}
|
|
|
c07693 |
BuildRequires: systemd
|
|
|
c07693 |
Requires: dbus
|
|
|
c07693 |
# Required version due to the move of the document portal.
|
|
|
c07693 |
Requires: flatpak >= 0.11.1
|
|
|
c07693 |
# Required for the document portal.
|
|
|
c07693 |
Requires: /usr/bin/fusermount
|
|
|
c07693 |
|
|
|
c07693 |
%description
|
|
|
c07693 |
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
|
|
|
c07693 |
portals under a well-known name (org.freedesktop.portal.Desktop) and object
|
|
|
c07693 |
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
|
|
|
c07693 |
file access, opening URIs, printing and others.
|
|
|
c07693 |
|
|
|
c07693 |
%package devel
|
|
|
c07693 |
Summary: Development files for %{name}
|
|
|
c07693 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
c07693 |
|
|
|
c07693 |
%description devel
|
|
|
c07693 |
The pkg-config file for %{name}.
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%prep
|
|
|
c07693 |
%setup -q
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%build
|
|
|
c07693 |
# Generate consistent IDs between runs to avoid multilib problems.
|
|
|
c07693 |
export XMLTO_FLAGS="--stringparam generate.consistent.ids=1"
|
|
|
c07693 |
%configure --enable-docbook-docs --disable-pipewire --docdir=%{_pkgdocdir}
|
|
|
c07693 |
%make_build
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%install
|
|
|
c07693 |
%make_install
|
|
|
c07693 |
install -dm 755 %{buildroot}/%{_pkgdocdir}
|
|
|
c07693 |
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
|
|
|
c07693 |
# This directory is used by implementations such as xdg-desktop-portal-gtk.
|
|
|
c07693 |
install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals
|
|
|
c07693 |
|
|
|
c07693 |
%find_lang %{name}
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%post
|
|
|
c07693 |
%systemd_user_post %{name}.service
|
|
|
c07693 |
%systemd_user_post xdg-document-portal.service
|
|
|
c07693 |
%systemd_user_post xdg-permission-store.service
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%preun
|
|
|
c07693 |
%systemd_user_preun %{name}.service
|
|
|
c07693 |
%systemd_user_preun xdg-document-portal.service
|
|
|
c07693 |
%systemd_user_preun xdg-permission-store.service
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%files -f %{name}.lang
|
|
|
c07693 |
%doc %{_pkgdocdir}
|
|
|
c07693 |
%license COPYING
|
|
|
c07693 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
|
|
|
c07693 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
|
|
|
c07693 |
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
|
|
c07693 |
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
|
|
c07693 |
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
|
|
c07693 |
%{_datadir}/%{name}
|
|
|
c07693 |
%{_libexecdir}/xdg-desktop-portal
|
|
|
c07693 |
%{_libexecdir}/xdg-document-portal
|
|
|
c07693 |
%{_libexecdir}/xdg-permission-store
|
|
|
c07693 |
%{_userunitdir}/%{name}.service
|
|
|
c07693 |
%{_userunitdir}/xdg-document-portal.service
|
|
|
c07693 |
%{_userunitdir}/xdg-permission-store.service
|
|
|
c07693 |
|
|
|
c07693 |
%files devel
|
|
|
c07693 |
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
|
|
|
c07693 |
|
|
|
c07693 |
|
|
|
c07693 |
%changelog
|
|
|
c07693 |
* Wed Sep 12 2018 David King <dking@redhat.com> - 1.0.2-1
|
|
|
c07693 |
- Rebase to 1.0.2 (#1570030)
|
|
|
c07693 |
|
|
|
c07693 |
* Fri Mar 10 2017 David King <dking@redhat.com> - 0.5-2
|
|
|
c07693 |
- Fix multilib issues with XML-based documentation
|
|
|
c07693 |
|
|
|
c07693 |
* Wed Jan 18 2017 David King <amigadave@amigadave.com> - 0.5-1
|
|
|
c07693 |
- Update to 0.5
|
|
|
c07693 |
|
|
|
c07693 |
* Thu Dec 01 2016 David King <amigadave@amigadave.com> - 0.4-1
|
|
|
c07693 |
- Update to 0.4
|
|
|
c07693 |
|
|
|
c07693 |
* Fri Sep 02 2016 David King <amigadave@amigadave.com> - 0.3-1
|
|
|
c07693 |
- Update to 0.3
|
|
|
c07693 |
|
|
|
c07693 |
* Fri Jul 29 2016 David King <amigadave@amigadave.com> - 0.2-1
|
|
|
c07693 |
- Update to 0.2 (#1361575)
|
|
|
c07693 |
|
|
|
c07693 |
* Tue Jul 12 2016 David King <amigadave@amigadave.com> - 0.1-2
|
|
|
c07693 |
- Own the portals directory
|
|
|
c07693 |
|
|
|
c07693 |
* Mon Jul 11 2016 David King <amigadave@amigadave.com> - 0.1-1
|
|
|
c07693 |
- Initial Fedora packaging
|