File portals.spec of Package portals

%global srcname portals
%global appname io.elementary.portals

Name:           io.elementary.portals
Summary:        elementary XDG Desktop Portals
Version:        daily
Release:        %autorelease
License:        LGPLv3+

URL:            https://github.com/elementary/portals
Source0:        %{url}/archive/%{version}/portals-%{version}.tar.gz

BuildRequires:  desktop-file-utils
BuildRequires:  gettext
BuildRequires:  libappstream-glib
BuildRequires:  meson >= 0.48.2
BuildRequires:  vala >= 0.48
BuildRequires:  io.elementary.desktop.wayland-devel

BuildRequires:  pkgconfig(gio-2.0) >= 2.50
BuildRequires:  pkgconfig(glib-2.0) >= 2.50
BuildRequires:  io.elementary.granite-7-devel
BuildRequires:  pkgconfig(gtk4) >= 4.4

BuildRequires: systemd

# needed by obs-service-obs_scm-common
BuildRequires:  glibc-langpack-en
#!BuildIgnore:  glibc-all-langpacks

%description
An implementation of XDG Flatpak portals for elementary OS and Pantheon


%prep
%autosetup -n %{srcname}-%{version} -p1


%build
%meson
%meson_build

%install
%meson_install
%find_lang xdg-desktop-portal-pantheon


%check
appstream-util validate-relax --nonet \
    %{buildroot}/%{_datadir}/metainfo/io.elementary.portals.metainfo.xml


%files -f xdg-desktop-portal-pantheon.lang
%doc README.md
%license COPYING

%{_libexecdir}/xdg-desktop-portal-pantheon

%{_usr}/lib/systemd/user/xdg-desktop-portal-pantheon.service

%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.pantheon.service
%{_datadir}/xdg-desktop-portal/portals/pantheon.portal

%{_datadir}/metainfo/io.elementary.portals.metainfo.xml


%changelog
%autochangelog
openSUSE Build Service is sponsored by