xdg-desktop-portal/xdg-desktop-portal.spec

118 lines
3.5 KiB
RPMSpec
Raw Normal View History

2019-01-16 07:14:24 +00:00
%global geoclue_version 2.5.2
%global glib_version 2.69.1
%global low_memory_monitor_version 2.0
%global pipewire_version 0.2.90
2018-08-20 17:39:09 +00:00
Name: xdg-desktop-portal
2023-09-19 08:11:25 +00:00
Version: 1.18.0
2022-10-22 17:22:57 +00:00
Release: %autorelease
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
2018-07-24 11:41:43 +00:00
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: meson
2021-12-21 16:11:51 +00:00
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(flatpak)
2022-04-16 08:57:04 +00:00
BuildRequires: pkgconfig(fuse3)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib_version}
2019-05-28 16:31:50 +00:00
BuildRequires: pkgconfig(json-glib-1.0)
2019-01-16 07:14:24 +00:00
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
2020-03-10 06:37:38 +00:00
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_version}
BuildRequires: pkgconfig(libportal)
2022-04-16 08:57:04 +00:00
BuildRequires: pkgconfig(libsystemd)
2023-08-05 15:50:13 +00:00
BuildRequires: python3-dbusmock
BuildRequires: python3-gobject-base
BuildRequires: python3-pytest
%if %{undefined rhel}
2023-08-05 15:50:13 +00:00
BuildRequires: python3-pytest-xdist
%endif
BuildRequires: /usr/bin/rst2man
BuildRequires: /usr/bin/xmlto
2020-03-10 06:37:38 +00:00
Requires: dbus
2019-01-16 07:14:24 +00:00
Requires: geoclue2 >= %{geoclue_version}
Requires: glib2%{?_isa} >= %{glib_version}
Recommends: pipewire >= %{pipewire_version}
Requires: pipewire-libs%{?_isa} >= %{pipewire_version}
2018-02-14 13:39:25 +00:00
# Required for the document portal.
Requires: /usr/bin/fusermount3
# Required for the GMemoryMonitor GIO API
Requires: low-memory-monitor >= %{low_memory_monitor_version}
%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}.
2016-07-13 11:44:19 +00:00
%prep
2020-03-10 06:37:38 +00:00
%autosetup -p1
%build
%meson
%meson_build
2016-07-13 11:44:19 +00:00
%install
%meson_install
2016-07-13 11:44:19 +00:00
install -dm 755 %{buildroot}/%{_pkgdocdir}
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
# This directory is used by implementations such as xdg-desktop-portal-gtk.
2022-08-02 15:14:17 +00:00
install -dm 755 %{buildroot}/%{_datadir}/xdg-desktop-portal/portals
2016-07-13 11:44:19 +00:00
2016-07-29 13:00:57 +00:00
%find_lang %{name}
2016-07-29 13:00:57 +00:00
2017-03-31 13:23:28 +00:00
%post
2022-08-02 15:14:17 +00:00
%systemd_user_post xdg-desktop-portal.service
2018-02-14 13:39:25 +00:00
%systemd_user_post xdg-document-portal.service
%systemd_user_post xdg-permission-store.service
2017-03-31 13:23:28 +00:00
%preun
2022-08-02 15:14:17 +00:00
%systemd_user_preun xdg-desktop-portal.service
2018-02-14 13:39:25 +00:00
%systemd_user_preun xdg-document-portal.service
%systemd_user_preun xdg-permission-store.service
2017-03-31 13:23:28 +00:00
2016-07-29 13:00:57 +00:00
%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
2018-02-14 13:39:25 +00:00
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
2022-08-02 15:14:17 +00:00
%{_datadir}/xdg-desktop-portal/
2018-02-14 13:39:25 +00:00
%{_libexecdir}/xdg-desktop-portal
2022-04-16 08:57:04 +00:00
%{_libexecdir}/xdg-desktop-portal-rewrite-launchers
%{_libexecdir}/xdg-desktop-portal-validate-icon
2018-02-14 13:39:25 +00:00
%{_libexecdir}/xdg-document-portal
%{_libexecdir}/xdg-permission-store
%{_mandir}/man5/portals.conf.5*
2022-08-02 15:14:17 +00:00
%{_userunitdir}/xdg-desktop-portal.service
2022-04-16 08:57:04 +00:00
%{_userunitdir}/xdg-desktop-portal-rewrite-launchers.service
2018-02-14 13:39:25 +00:00
%{_userunitdir}/xdg-document-portal.service
%{_userunitdir}/xdg-permission-store.service
%files devel
2017-11-19 22:05:33 +00:00
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
2016-07-13 11:44:19 +00:00
%changelog
2022-10-22 17:22:57 +00:00
%autochangelog