Blame SPECS/sap-cluster-connector.spec

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