File phosh-helpers.spec of Package phosh-helpers
#
# spec file for package phosh-helpers
#
# Copyright (c) 2021 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: phosh-helpers
Version: v0.1.3
Release: 1%{?dist}
Summary: Phosh openSUSE helpers
License: GPL-3.0-or-later
URL: https://gitlab.com/slem.os/%{name}
Source0: square-hicolor.svg
Source1: osk-wayland
Source8: mobile-suspend-hook.sh
Source15: 90_mobile.gschema.override
Source16: 90-modem-manager.rules
Source17: 91-network-manager.rules
Source18: opensuse.json
Source19: 91-modem-manager.rules
Source25: 90-usb-gadget-managed.rules
Source26: 90-disable-virtual-pointer-phosh.rules
Source28: machine-info
Source29: desktop-files.tar.gz
BuildArch: noarch
BuildRequires: hicolor-icon-theme
Requires: NetworkManager
Requires: feedbackd
#Requires: pulseaudio >= 14.0
Requires: xwayland
Requires: PackageKit-branding-openSUSE
Requires: gnome-software-plugin-packagekit
%systemd_requires
%description
Mobile scripts for Phosh.
%prep
tar -xvzf %{SOURCE29}
%build
%install
%{__install} -Dm0755 -t %{buildroot}%{_unitdir}-sleep/ %{SOURCE8}
%{__install} -Dm0644 -t %{buildroot}%{_datadir}/glib-2.0/schemas/ %{SOURCE15}
%{__install} -Dm0644 -t %{buildroot}%{_datadir}/polkit-1/rules.d/ %{SOURCE16} %{SOURCE17} %{SOURCE19}
%{__install} -Dm0644 -t %{buildroot}%{_datadir}/feedbackd/themes %{SOURCE18}
%{__install} -Dm0644 -t %{buildroot}%{_udevrulesdir}/ %{SOURCE25} %{SOURCE26}
%{__install} -Dm0644 -t %{buildroot}%{_sysconfdir}/ %{SOURCE28}
%{__install} -Dm0644 -T %{SOURCE0} %{buildroot}%{_datadir}/icons/vendor/scalable/emblems/emblem-vendor.svg
%{__install} -Dm0755 -t %{buildroot}%{_sysconfdir}/skel/.local/share/applications *.desktop
%{__install} -Dm0755 -t %{buildroot}%{_bindir}/ %{SOURCE1}
%files
%config %{_sysconfdir}/machine-info
%{_unitdir}-sleep/
%dir %{_datadir}/glib-2.0
%dir %{_datadir}/glib-2.0/schemas/
%{_datadir}/glib-2.0/schemas/90_mobile.gschema.override
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/rules.d/
%{_datadir}/polkit-1/rules.d/*
%dir %{_datadir}/feedbackd/
%dir %{_datadir}/feedbackd/themes/
%{_datadir}/feedbackd/themes/opensuse.json
%{_udevrulesdir}/*
%dir %{_datadir}/icons/vendor
%dir %{_datadir}/icons/vendor/scalable
%dir %{_datadir}/icons/vendor/scalable/emblems
%{_datadir}/icons/vendor/scalable/emblems/*.svg
%{_sysconfdir}/skel/.local/
%{_bindir}/*
%changelog