File sapvnc.spec of Package sapvnc
#
# spec file for package sapvnc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: sapvnc
Version: 1.0.0
Release: 1
License: GPL-2.0+
Summary: VNC desktop service for running SAP software installation
Group: Productivity/Networking/Other
Source0: sapvnc.service
BuildArch: noarch
# Required: VNC server and its missing dependencies
Requires: xorg-x11-Xvnc xorg-x11-fonts xauth xkbcomp
# Required: IceWM dekstop and its SUSE branding
Requires: icewm icewm-theme-branding wallpaper-branding-SLE
# Required: SAP installation wizard and its missing dependencies
Requires: sap-installation-wizard yast2 yast2-qt yast2-control-center-qt yast2-branding-SLE
# Required: YaST SCC module and its missing dependencies
Requires: ca-certificates-mozilla
%ifarch x86_64 aarch64
Requires: dmidecode
%endif
%{?systemd_requires}
%description
Start a VNC desktop (on display :1) as user root for running SAP software installation and system maintenance.
%prep
%setup -c -T
%build
%install
install -d -m0755 %{buildroot}%_unitdir
install -m0644 %{S:0} %{buildroot}%_unitdir/%{name}.service
install -d -m0755 %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%defattr(-,root,root)
%_unitdir/%{name}.service
%{_sbindir}/rc%{name}
%changelog