File skelcd-sled.spec of Package skelcd-sled
#
# spec file for package skelcd-sled
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# release is a beta
%define beta 0
Name: skelcd-sled
BuildRequires: release-notes-sled
# skip gnomeuser to save some space for the moment
#BuildRequires: sled-gnomeuser_en-pdf
# BuildRequires: sled-installquick_de-pdf
# BuildRequires: sled-installquick_en-pdf
# BuildRequires: sled-installquick_es-pdf
# BuildRequires: sled-installquick_fr-pdf
# BuildRequires: sled-installquick_it-pdf
# BuildRequires: sled-installquick_ja-pdf
# BuildRequires: sled-installquick_pt_BR-pdf
# BuildRequires: sled-installquick_zh_CN-pdf
# BuildRequires: sled-installquick_zh_TW-pdf
BuildRequires: suse-build-key
%if 0%{?beta} == 1
%define license_dir license.beta
%else
%define license_dir license.final
%endif
AutoReqProv: off
Version: 2019.04.30
Release: 0
Summary: CD skeleton
License: GPL-2.0
Group: Metapackages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: skelcd.tar.bz2
Source2: README
Source3: README.BETA
Source4: README.manual
ExclusiveArch: %ix86 x86_64
# please repo-checker (bsc#1089174)
Provides: skelcd = %{version}
Conflicts: otherproviders(skelcd)
%description
Internal package only.
%prep
%setup -n skelcd -q
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/boot
cp READMEs/* $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/
cp /usr/lib/rpm/gnupg/keys/* $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/
for i in README \
%if %{?beta} == 1
README.BETA \
%endif
; do
cp -pv $RPM_SOURCE_DIR/$i $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/$i
done
## The newest way to do it...
mkdir -p $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/media.1
pushd %license_dir
ls -1 > directory.yast # required for downloading of EULAs from SCC
tar cvzf license-SLED.tar.gz --owner=root --group=root *txt directory.yast
cp license-SLED.tar.gz $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/
popd
#
# Install PDF documentation
# the installation quickstart guide is the only one translated
# GNOME quickstart is only english
#
for i in ar cs de en es fr hu it ja ko pl pt_BR ru zh_CN zh_TW ; do
mkdir -p $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/docu/$i
#for book in installquick gnomeuser; do
# skip gnomeuser to save some space for the moment
for book in installquick ; do
pdf="/usr/share/doc/manual/sled-${book}_$i-pdf/*.pdf"
test -f $pdf && \
cp -av $pdf $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/docu/$i/${book}.pdf
done
# remove empty directories
rmdir $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/docu/$i ||:
done
# XXX install $RPM_SOURCE_DIR/README.manual $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/docu/
#
# Install release notes as HTML pages
#
cp -vp /usr/share/doc/release-notes/SUSE_Linux_Enterprise_Desktop_15/RELEASE-NOTES.en.* \
$RPM_BUILD_ROOT/usr/lib/skelcd/CD1/docu/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%exclude /usr/lib/skelcd/CD1/license-SLED.tar.gz
%dir /usr/lib/skelcd
/usr/lib/skelcd/CD1
%package -n skelcd-EULA-sled
Summary: EULA for media
Group: Metapackages
%description -n skelcd-EULA-sled
Internal package only.
%files -n skelcd-EULA-sled
%defattr(644,root,root,755)
/usr/lib/skelcd/CD1/license-SLED.tar.gz
%changelog