saphana-checks/saphana-checks.spec

66 lines
1.9 KiB
RPMSpec

#
# spec file for package saphana-checks
#
# Copyright (c) 2016 SAP SE or an SAP affiliate company. All rights reserved.
# Copyright (c) 2024-2025 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: saphana-checks
Summary: Linux OS checks for SAP HANA hosts
Version: 2501+1.g53705f6
Release: 0
Group: Productivity/Databases/Tools
License: Apache-2.0
Autoreq: 0
BuildArch: noarch
URL: https://github.com/SAP/arp142-hana
Source0: %{name}-%{version}.tar.gz
Source1: rpmlintrc
Requires: bash
%description
Check Linux OS configuration recommendations for SAP HANA hosts - running on SLES for Intel x64 and IBM Power
%prep
mkdir -p %{SRCDIR}
cd %{SRCDIR}
tar xf %{SOURCE0}
mv %{name}*/scripts %{name}
mkdir -p doc
cp %{name}*/LICENSE doc
cp %{name}*/README.md doc/README
cp doc/* %{name}
rm -rf %{name}/tests
rm -f %{name}/lib/*/*rhel*
rm -f %{name}/lib/*/*RHEL*
%build
%install
cd %{SRCDIR}
mkdir -p %{buildroot}/usr/lib/%{name}
cp -rp %{name}/* %{buildroot}/usr/lib/%{name}
mkdir -p %{buildroot}/%{_docdir}/%{name}
install -m 0444 doc/* %{buildroot}/%{_docdir}/%{name}
%files
%defattr(-,root,root)
%dir /usr/lib/%{name}
/usr/lib/%{name}
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/LICENSE
%changelog