Blame SPECS/sap-cluster-connector.spec

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