File ardana-installer-ui.spec of Package ardana-installer-ui

#
# spec file
#
# Copyright (c) 2023 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/
#


%define hpe_theme 0
%define name_ext %nil

%define version_unconverted 9.0+git.1569535129.ca87ef0
%define installdir /usr/share/ardana/ardana-installer-ui

Name:           ardana-installer-ui%{name_ext}
Version:        9.0+git.1569535129.ca87ef0
Release:        0
Summary:        Install UI for Ardana based Clouds
License:        Apache-2.0 AND MIT AND ISC AND BSD-3-Clause
Group:          System/Management
URL:            https://github.com/ArdanaCLM/ardana-installer-ui
Source0:        ardana-installer-ui-%{version}.tar
Source1:        node_modules.tar.bz2
Source3:        ardana-installer-ui.service
Obsoletes:      ardana-installer-ui-hpe
#!BuildIgnore:  post-build-checks rpmlint-Factory
BuildRequires:  ardana-devel
BuildRequires:  npm
Requires:       ardana
BuildArch:      noarch

%description
%{ardana_description}
This is the frontend code for the Ardana Installer UI

%prep
%setup -q -n ardana-installer-ui-%{version}
%setup -q -n ardana-installer-ui-%{version} -T -D -a 1

%build
./build_ui.sh

%install
install -d -m 755 %{buildroot}%{installdir}/web
install -d -m 755 %{buildroot}%{_unitdir}
install -p -D -m 444 %{SOURCE3} %{buildroot}%{_unitdir}/ardana-installer-ui.service
rsync -av --exclude '*.map' dist/ %{buildroot}%{installdir}/web

%files
%license LICENSE
%dir %{installdir}
%{installdir}/web
%{_unitdir}/ardana-installer-ui.service

%changelog
openSUSE Build Service is sponsored by