File sap-convergent-resource-agents.spec of Package sap-convergent-resource-agents.33971

#
# spec file for package sap-convergent-resource-agents
#
# Copyright (c) 2023-2024 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:           sap-convergent-resource-agents
Version:        1.0.0
Release:        0
Group:          Productivity/Clustering/HA
Summary:        Resource agents to control the convergent mediation control zone
# Selected GPL-2.0-or-later as correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        GPL-2.0-or-later 
URL:            https://www.suse.com 
Source0:        %{name}-%{version}.tgz 

BuildRequires:  gzip
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       pacemaker > 2.1.2
Requires:       resource-agents
Requires:       python3
Requires:       /usr/bin/xmllint

%description
Resource agents to control the convergent mediation control zone. The used interface to the application is the mz-shell.
This package is supported only in the context of SAP RISE.

Authors:
--------
    Fabian Herschel
    Lars Pinne

%prep
tar xf %{S:0}

%build
gzip man/*

%install

# resource agents (ra)
mkdir -p %{buildroot}/usr/lib/ocf/resource.d/suse
install -m 0755 ra/SAP* %{buildroot}/usr/lib/ocf/resource.d/suse/

# manual pages
mkdir -p %{buildroot}%{_mandir}/man7
install -m 0444 man/*.7.gz %{buildroot}%{_mandir}/man7

# samples
mkdir -p %{buildroot}/usr/share/%{name}/samples
install -m 0444 samples/* %{buildroot}/usr/share/%{name}/samples

%files
%defattr(-,root,root)
%dir /usr/lib/ocf
%dir /usr/lib/ocf/resource.d
%dir /usr/lib/ocf/resource.d/suse
/usr/lib/ocf/resource.d/suse/*

%license LICENSE
%doc README.md
%doc %{_mandir}/man7/*
%dir /usr/share/%{name}
%dir /usr/share/%{name}/samples
%doc /usr/share/%{name}/samples/*

%changelog
openSUSE Build Service is sponsored by