File ardana-extensions-nsx.spec of Package ardana-extensions-nsx

#
# spec file for package ardana-extensions-nsx
#
# 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 version_unconverted 8.0+git.1567529036.a41a037

Name:           ardana-extensions-nsx
Version:        8.0+git.1567529036.a41a037
Release:        0
Summary:        Ardana NSX 3rd party extension
License:        Apache-2.0
Group:          System/Management
URL:            https://github.com/ArdanaCLM/
Source0:        %{name}-%{version}.tar
BuildRequires:  ardana-devel
BuildRequires:  ardana-input-model
Requires:       ardana
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
%ardana_description
This is the Ardana NSX 3rd party extension

%prep
%setup -q

%build
mkdir -p ansible
mv vmware/ansible ansible/vmware
mkdir -p input-model/2.0/examples
mv vmware/examples/models input-model/2.0/examples/vmware
rmdir -v vmware/examples
mv vmware/services/vmware input-model/2.0/services
rmdir -v vmware/services
rm -rvf vmware/venvs
rmdir -v vmware

%install
install -d -m 755 %{buildroot}%{ardana_base_dir}
rsync -avF --exclude "LICENSE" --exclude "README.md" --exclude "/.*" . %{buildroot}%{ardana_base_dir}

%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%dir %{ardana_base_dir}
%{ardana_base_dir}/ansible
%{ardana_base_dir}/input-model/2.0/examples/*
%{ardana_base_dir}/input-model/2.0/services/*

%changelog
openSUSE Build Service is sponsored by