File phoc.spec of Package phoc

#
# spec file for package phoc
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           phoc
Version:        0.53.0
Release:        0%{?dist}
Summary:        Display compositor designed for phones
License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/World/Phosh/phoc
Source0:        %{name}-%{version}.tar.xz
Source1:        gvdb-0.0.1.tar.xz
BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(egl)
BuildRequires:  pkgconfig(freerdp2)
BuildRequires:  pkgconfig(gbm) >= 17.1.0
BuildRequires:  pkgconfig(gio-2.0) >= 2.70.0
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(glib-2.0) >= 2.70.0
BuildRequires:  glslang-devel
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gmobile) >= 0.6.0
BuildRequires:  pkgconfig(gobject-2.0) >= 2.70.0
BuildRequires:  pkgconfig(libcap)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libdrm) >= 2.4.95
BuildRequires:  pkgconfig(libinput)
BuildRequires:  pkgconfig(libseat)
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(vulkan)
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-egl)
BuildRequires:  pkgconfig(wayland-protocols) >= 1.16
BuildRequires:  pkgconfig(wayland-server)
BuildRequires:  pkgconfig(xcb-errors)
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(xcb-renderutil)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(xwayland)
BuildRequires:  wlroots-devel

%description
Phoc is a wlroots based Phone compositor as used on the Librem5. Phoc is
pronounced like the English word fog.

%prep
%autosetup -p1
cd subprojects
rm -rf gvdb.wrap
tar -xvf %{SOURCE1}
mv gvdb-0.0.1 gvdb

%build
export CFLAGS="%{optflags} $(pkg-config --cflags wayland-client)"
%meson \
	-Dembed-wlroots=disabled \
	-Dtests=false \
	%{nil}
%meson_build

%install
%meson_install

%files
%doc README.md
%license LICENSES/*
%{_bindir}/phoc
%{_bindir}/phoc-outputs-states
%{_datadir}/glib-2.0/schemas/mobi.phosh.phoc.gschema.xml
%{_datadir}/applications/mobi.phosh.Phoc.desktop
%{_datadir}/icons/hicolor/symbolic/apps/mobi.phosh.Phoc.svg
%{_datadir}/phoc/

%changelog
openSUSE Build Service is sponsored by