File suse-csb-release.spec of Package suse-csb-release
#
# spec file for package suse-csb-release
#
# Copyright (c) 2022 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-csb-release
Version: 15.4.suseitinfra.a21e705
Release: 0
Summary: Metapackage for SUSE Corporate Standard Build
License: MIT
Group: System/Fhs
URL: https://github.com/SUSE/suse-csb-release.git
Source0: suse-csb-release-%{version}.tar.xz
Requires: suse-release = 15.4
BuildArch: noarch
%description
SUSE Corporate Standard Builds (CSB) release package
%prep
%setup -q
%build
%install
# Install missing repositories to user's system, bsc#1186593 bsc#1186795
mkdir -p %{buildroot}%{_sysconfdir}/zypp/repos.d
cp isv_SUSE_suse-it-infra.repo isv_Rancher_stable.repo /%{buildroot}%{_sysconfdir}/zypp/repos.d/
# Place README.md, examples, autoyastconfig etc into /usr/share/suse-it-infra
mkdir -p %{buildroot}%{_datadir}/suse-it-infra/combustion
cp README.md %{buildroot}%{_datadir}/suse-it-infra
cp autoinst.xml %{buildroot}%{_datadir}/suse-it-infra
install -m 0755 combustion/script %{buildroot}/%{_datadir}/suse-it-infra/combustion/script
%post
%postun
%files
%defattr(644,root,root,755)
%dir %{_sysconfdir}/zypp
%dir %{_sysconfdir}/zypp/repos.d/
%config(noreplace) %{_sysconfdir}/zypp/repos.d/*
%dir %{_datadir}/suse-it-infra/
%{_datadir}/suse-it-infra/*
%attr(755, root, root) %{_datadir}/suse-it-infra/combustion/script
%doc %{_datadir}/suse-it-infra/README.md
%license LICENSE
%changelog