File phosh-mobile-settings.spec of Package phosh-mobile-settings

#
# spec file for package phosh-mobile-settings
#
# 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/
#

%global gvcname libgnome-volume-control
%global gvcversion 0.1

Name:           phosh-mobile-settings
Version:        v0.49.0
Release:        0%{?dist}
Summary:        Mobile Settings App for phosh and related components
License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/guidog/phosh-mobile-settings
Source0:        https://gitlab.gnome.org/guidog/phosh-mobile-settings/-/archive/v%{version}/phosh-mobile-settings-%{version}.tar.xz
Source1:        %{gvcname}-%{gvcversion}.tar.xz
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  meson

BuildRequires:  cmake
BuildRequires:  desktop-file-utils
BuildRequires:  libsensors4-devel
BuildRequires:  pkgconfig(gio-2.0) >= 2.62
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.62
BuildRequires:  pkgconfig(glib-2.0) >= 2.62
BuildRequires:  pkgconfig(gmodule-2.0) >= 2.62
BuildRequires:  pkgconfig(gtk4) >= 4.4
BuildRequires:  pkgconfig(gtk4-wayland) >= 4.4
BuildRequires:  pkgconfig(libadwaita-1) >= 1.1
BuildRequires:  pkgconfig(wayland-client) >= 1.14
BuildRequires:  pkgconfig(wayland-protocols) >= 1.12
BuildRequires:  pkgconfig(gmobile)
BuildRequires:  pkgconfig(gsound)
BuildRequires:  pkgconfig(phosh-plugins)
BuildRequires:  pkgconfig(gnome-desktop-4)
BuildRequires:  pkgconfig(libpulse) >= 2.0
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libfeedback-0.0) >= 0.2.0
BuildRequires:  pkgconfig(libportal)
BuildRequires:  pkgconfig(libportal-gtk4)
BuildRequires:  pkgconfig(libcellbroadcast-0.0)
%description
Mobile Settings App for phosh and related components

%lang_package

%prep
%setup -q -n %{name}-%{version}
cd subprojects
rm -rf gvc.wrap
tar -xvf %{SOURCE1}
mv $(basename -s .tar.xz %{SOURCE1}) gvc

%build
%meson
%meson_build

%install
%meson_install
%find_lang %{name}

%check

%files
%{_bindir}/phosh-mobile-settings
%dir %{_libdir}/phosh-mobile-settings
%dir %{_libdir}/phosh-mobile-settings/plugins/
%{_libdir}/phosh-mobile-settings/plugins/libms-plugin-librem5.so
%{_datadir}/metainfo/mobi.phosh.MobileSettings.metainfo.xml
%{_datadir}/applications/mobi.phosh.MobileSettings.desktop
%{_datadir}/dbus-1/services/mobi.phosh.MobileSettings.service
%{_datadir}/icons/hicolor/scalable/apps/mobi.phosh.MobileSettings.svg
%{_datadir}/icons/hicolor/symbolic/apps/mobi.phosh.MobileSettings-symbolic.svg
%{_datadir}/glib-2.0/schemas/mobi.phosh.MobileSettings.gschema.xml

%files lang -f %{name}.lang

%doc README.md
%license COPYING

%changelog
openSUSE Build Service is sponsored by