File regionServiceClientConfigAzure.spec of Package regionServiceClientConfigAzure

#
# spec file for package regionServiceClientConfigEC2
# this code base is under development
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#


Name:           regionServiceClientConfigAzure
Version:        2.2.0
Release:        0
License:        Apache-2.0
Summary:        Configuration for region service client
URL:            https://gitlab.suse.de/public-cloud-team/regionServiceClientConfigAzure
Group:          Productivity/Networking/Web/Servers
Source0:        %{name}-%{version}.tar.bz2
# No IPv6 support in SLE 12 in Public Cloud
# Patch maintained in the build service only
Patch0:         noipv6.patch
Provides:       cloud-regionsrv-client-config
Provides:       regionServiceCertsAzure
Provides:       regionsrv-certs
Requires:       python3-azuremetadata >= 5.1.2
Recommends:     cloud-regionsrv-client-plugin-azure
Conflicts:      otherproviders(cloud-regionsrv-client-config)
Conflicts:      otherproviders(regionsrv-certs)
Provides:       regionServiceClientConfigSAPAzure = %{version}
Obsoletes:      regionServiceClientConfigSAPAzure < 1.0.4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch:      noarch

%description
Configuration for the client registration in Microsoft Azure and
region server certificates

%prep
%setup -q
%if 0%{?suse_version} == 1315
%patch -P 0
rm usr/lib/regionService/certs/2603:1020:201:f::1be.pem
rm usr/lib/regionService/certs/2603:1030:20e:3::4c.pem
rm usr/lib/regionService/certs/2603:1040:2:3::3a.pem
rm usr/lib/regionService/certs/2603:1050:1:6::8.pem
rm usr/lib/regionService/certs/2a01:111:f100:3001::a83d:105f.pem
%endif

%build

%install
%make_install

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README LICENSE
%config %{_sysconfdir}/regionserverclnt.cfg
%dir /usr/lib/regionService
%dir /usr/lib/regionService/certs
/usr/lib/regionService/certs/23.100.36.229.pem
/usr/lib/regionService/certs/40.121.202.140.pem
/usr/lib/regionService/certs/52.187.53.250.pem
/usr/lib/regionService/certs/104.45.31.195.pem
/usr/lib/regionService/certs/191.237.254.253.pem
%if 0%{?suse_version} > 1315
/usr/lib/regionService/certs/2603:1020:201:f::1be.pem
/usr/lib/regionService/certs/2603:1030:20e:3::4c.pem
/usr/lib/regionService/certs/2603:1040:2:3::3a.pem
/usr/lib/regionService/certs/2603:1050:1:6::8.pem
/usr/lib/regionService/certs/2a01:111:f100:3001::a83d:105f.pem
%endif

%changelog
openSUSE Build Service is sponsored by