|
|
73a973 |
#
|
|
|
73a973 |
# All modifications and additions to the file contributed by third parties
|
|
|
73a973 |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
73a973 |
# upon. The license for this file, and modifications and additions to the
|
|
|
73a973 |
# file, is the same license as for the pristine package itself (unless the
|
|
|
73a973 |
# license for the pristine package is not an Open Source License, in which
|
|
|
73a973 |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
73a973 |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
73a973 |
# published by the Open Source Initiative.
|
|
|
73a973 |
#
|
|
|
73a973 |
|
|
|
73a973 |
# Below is the script used to generate a new source file
|
|
|
73a973 |
# from the sap_cluster_connector upstream git repo.
|
|
|
73a973 |
#
|
|
|
73a973 |
# TAG=$(git log --pretty="format:%h" -n 1)
|
|
|
73a973 |
# distdir="sap_cluster_connector-${TAG}"
|
|
|
73a973 |
# TARFILE="${distdir}.tar.gz"
|
|
|
73a973 |
# rm -rf $TARFILE $distdir
|
|
|
73a973 |
# git archive --prefix=$distdir/ HEAD | gzip > $TARFILE
|
|
|
73a973 |
#
|
|
|
73a973 |
|
|
|
73a973 |
%global sap_script_prefix sap_cluster_connector
|
|
|
73a973 |
%global sap_script_hash f3644f5
|
|
|
73a973 |
|
|
|
73a973 |
Name: sap-cluster-connector
|
|
|
73a973 |
Summary: SAP cluster connector script
|
|
|
73a973 |
Version: 3.0.1
|
|
|
73a973 |
Release: 5%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
|
|
73a973 |
License: GPLv2+
|
|
|
73a973 |
URL: https://github.com/fdanapfel/sap_cluster_connector
|
|
|
73a973 |
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
|
|
73a973 |
Group: System Environment/Base
|
|
|
73a973 |
%else
|
|
|
73a973 |
Group: Productivity/Clustering/HA
|
|
|
73a973 |
%endif
|
|
|
73a973 |
Source0: %{sap_script_prefix}-%{sap_script_hash}.tar.gz
|
|
|
73a973 |
Patch0: bz1827096-sap-cluster-connector-allow-dashes-underscores-in-nodenames.patch
|
|
|
73a973 |
|
|
|
73a973 |
BuildArch: noarch
|
|
|
73a973 |
|
|
|
73a973 |
Requires: resource-agents-sap >= 4.1.1-28
|
|
|
73a973 |
Requires: perl
|
|
|
73a973 |
|
|
|
73a973 |
%description
|
|
|
73a973 |
The SAP connector script interface with Pacemaker to allow SAP
|
|
|
73a973 |
instances to be managed in a cluster environment.
|
|
|
73a973 |
|
|
|
73a973 |
%prep
|
|
|
73a973 |
%setup -q -n %{sap_script_prefix}-%{sap_script_hash}
|
|
|
73a973 |
%patch0 -p1
|
|
|
73a973 |
|
|
|
73a973 |
%build
|
|
|
73a973 |
|
|
|
73a973 |
%install
|
|
|
73a973 |
test -d %{buildroot}/%{_bindir} || mkdir -p %{buildroot}/%{_bindir}
|
|
|
73a973 |
mkdir -p %{buildroot}/%{_datadir}/sap_cluster_connector
|
|
|
73a973 |
mkdir -p %{buildroot}/%{_mandir}/man8
|
|
|
73a973 |
cp redhat/sap_cluster_connector %{buildroot}/%{_bindir}
|
|
|
73a973 |
cp -rv redhat/{run_checks,checks} %{buildroot}/%{_datadir}/sap_cluster_connector
|
|
|
73a973 |
gzip redhat/man/*.8
|
|
|
73a973 |
cp redhat/man/*.8.gz %{buildroot}/%{_mandir}/man8
|
|
|
73a973 |
|
|
|
73a973 |
%clean
|
|
|
73a973 |
rm -rf %{buildroot}
|
|
|
73a973 |
|
|
|
73a973 |
%files
|
|
|
73a973 |
%defattr(-,root,root)
|
|
|
73a973 |
%{_bindir}/sap_cluster_connector
|
|
|
73a973 |
%{_mandir}/man8/sap_cluster_connector*
|
|
|
73a973 |
%{_datadir}/sap_cluster_connector
|
|
|
73a973 |
|
|
|
73a973 |
%changelog
|
|
|
73a973 |
* Thu Apr 30 2020 Oyvind Albrigtsen <oalbrigt@redhat.com> - 3.0.1-5
|
|
|
73a973 |
- sap-cluster-connector: allow dashes/underscores in nodenames
|
|
|
73a973 |
|
|
|
73a973 |
Resolves: rhbz#1827096
|
|
|
73a973 |
|
|
|
73a973 |
* Tue Jun 25 2019 Oyvind Albrigtsen <oalbrigt@redhat.com> - 3.0.1-4
|
|
|
73a973 |
- Initial build as separate package
|
|
|
73a973 |
|
|
|
73a973 |
Resolves: rhbz#1688346
|