Name: xdg-desktop-portal Version: 0.9 Release: 2.2%{?dist} 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 BuildRequires: pkgconfig(flatpak) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: /usr/bin/xmlto %{?systemd_requires} BuildRequires: systemd Requires: dbus %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} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel The pkg-config file for %{name}. %prep %setup -q %build # Generate consistent IDs between runs to avoid multilib problems. export XMLTO_FLAGS="--stringparam generate.consistent.ids=1" %configure --enable-docbook-docs --docdir="%{_pkgdocdir}" %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}" %if 0%{?rhel} && 0%{?rhel} <= 7 %else %post %systemd_user_post "%{name}.service" %preun %systemd_user_preun "%{name}.service" %endif %files -f "%{name}.lang" %doc %{_pkgdocdir} %license COPYING %{_libexecdir}/xdg-desktop-portal %{_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}/%{name} %{_userunitdir}/%{name}.service %files devel %{_datadir}/pkgconfig/xdg-desktop-portal.pc %changelog * Sun May 06 2018 Tomasz Tomasik - 0.9-2.2 - Set docdir dir - Rebuilt for EL7 * Sun May 06 2018 Tomasz Tomasik - 0.9-2.1 - SPEC file cleanups - Rebuilt for EL7 * Fri Feb 09 2018 Fedora Release Engineering - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Nov 19 2017 David King - 0.9-1 - Update to 0.9 (#1514774) * Thu Aug 03 2017 Fedora Release Engineering - 0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jun 06 2017 David King - 0.8-1 - Update to 0.8 (#1458969) * Fri Mar 31 2017 David King - 0.6-1 - Update to 0.6 * Sat Feb 11 2017 Fedora Release Engineering - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jan 18 2017 David King - 0.5-1 - Update to 0.5 * Thu Dec 01 2016 David King - 0.4-1 - Update to 0.4 * Fri Sep 02 2016 David King - 0.3-1 - Update to 0.3 * Fri Jul 29 2016 David King - 0.2-1 - Update to 0.2 (#1361575) * Tue Jul 12 2016 David King - 0.1-2 - Own the portals directory * Mon Jul 11 2016 David King - 0.1-1 - Initial Fedora packaging