16
0
Files
suse-lifecycle-data/suse-lifecycle-data.spec

100 lines
2.9 KiB
RPMSpec

#
# spec file for package suse-lifecyle-data
#
# Copyright (c) 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: suse-lifecycle-data
Version: 16.0+git20250813.709d73c
Release: 0
Summary: Life cycle data for SLE products
License: GPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/okirch/suse-lifecycle-data
Source: %{name}-%{version}.tar.xz
Source1: COPYING
BuildArch: noarch
%package sles
Summary: Life cycle data for SLES
%package sle_ha
Summary: Life cycle data for the SLE HA extension
%package sles_sap
Summary: Life cycle data for SLES for SAP applications
%package -n lifecycle-data-sle
Summary: Life cycle data for SLES (zypper)
Supplements: SLES-release SLES_SAP-release zypper-lifecycle-plugin
%description
Empty package, do not ship.
%description sles
This package provides life cycle data for packages and components
shipped with SUSE Linux products.
%description sles_sap
This package provides life cycle data for packages and components
shipped with SUSE Linux products.
%description sle_ha
This package provides life cycle data for packages and components
shipped with SUSE Linux products.
%description -n lifecycle-data-sle
This package provides life cycle data for SLES and SLES for SAP;
for use with zypper lifecycle.
%prep
%autosetup -p1 -n suse-lifecycle-data-%{version}
%build
%install
install -m 755 -d %{buildroot}/usr/share/suse-lifecycles
install -m 444 lifecycle*yaml %{buildroot}/usr/share/suse-lifecycles
mkdir -pv %{buildroot}/usr/share/lifecycle/data
install -m 444 lifecycle-data-sles.txt %{buildroot}/usr/share/lifecycle/data/sles.lifecycle
for name in %{name}-{sles,sle_ha,sles_sap} lifecycle-data-sle; do
install -m 755 -d mkdir -pv %{buildroot}%{_docdir}/$name
install -m 444 %{SOURCE1} %{buildroot}%{_docdir}/$name
done
%files sles
%doc COPYING
%dir /usr/share/suse-lifecycles
/usr/share/suse-lifecycles/lifecycle-sles_16.0.yaml
%files sle_ha
%doc COPYING
%dir /usr/share/suse-lifecycles
/usr/share/suse-lifecycles/lifecycle-sleha_16.0.yaml
%files sles_sap
%doc COPYING
%dir /usr/share/suse-lifecycles
/usr/share/suse-lifecycles/lifecycle-sles_sap_16.0.yaml
%files -n lifecycle-data-sle
%doc COPYING
/usr/share/lifecycle
/usr/share/lifecycle/data
/usr/share/lifecycle/data/*
%changelog