File skelcd-rte.spec of Package skelcd-rte

#
# spec file for package skelcd-rte (Version 2010.7.29)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
# 

# norootforbuild


Name:           skelcd-rte
BuildRequires:  libxml2 recode release-notes-rte suse-build-key w3m
BuildRequires:  yast2-installation >= 2.17.44
BuildRequires:  sle-rt-quick_en sle-rt-hw_en sle-rt-shielding_en sle-rt-virtguide_en
BuildRequires:  build-key

# Point to the beta EULA 
#%define license_dir license.final
%define license_dir license.beta

License:        GPL-2.0+
Group:          Metapackages
AutoReqProv:    off
Conflicts:      skelcd-SUSE_Linux skelcd skelcd-SUSE_Linux-Addon skelcd-ISSLE-Addon
Version:        2016.9.1
Release:        0
Summary:        Skeleton package for Real Time Extension
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         skelcd.tar.bz2
Source2:        README.BETA
Source3:        README
Source4:        README.manual
ExclusiveArch:  x86_64

%description
skeleton package for Real Time Extension



Authors:
--------
    Ihno Krumreich
    Jiri Benc

%prep
%setup -n skelcd -q

%install
mkdir -p $RPM_BUILD_ROOT/CD1/boot
cp READMEs/* $RPM_BUILD_ROOT/CD1/

#Copy the license ( pdf and docx ) to media
mkdir -p $RPM_BUILD_ROOT/CD1/EULA
mkdir -p $RPM_BUILD_ROOT/CD1/EULA/PDFs
mkdir -p $RPM_BUILD_ROOT/CD1/EULA/Docx
cp PDFs/* $RPM_BUILD_ROOT/CD1/EULA/PDFs
cp Docx/* $RPM_BUILD_ROOT/CD1/EULA/Docx

test -s /usr/lib/rpm/gnupg/pubring.gpg || exit 1
cp -v /usr/lib/rpm/gnupg/pubring.gpg $RPM_BUILD_ROOT/CD1/
(cd $RPM_BUILD_ROOT/CD1 ; /usr/lib/rpm/gnupg/dumpsigs ./pubring.gpg >/dev/null 2>&1 ; /usr/lib/rpm/gnupg/dumpsigs ./pubring.gpg )
for i in README.BETA README ; do
  if [ -f $RPM_SOURCE_DIR/$i ]; then
    cp -pv $RPM_SOURCE_DIR/$i $RPM_BUILD_ROOT/CD1/$i
  fi
done
## The new way to do it...
#mkdir -p $RPM_BUILD_ROOT/CD1/media.1
#pushd %license_dir
# for i in * ; do
#   for j in `seq 1 102` ; do
############123456789012345678901234567890123456789012345678901234567890
#      echo "                                                            " >> $i
#   done
# done
#popd
(cd %license_dir;ls -1 > directory.yast;tar cvzf license.tar.gz *txt directory.yast; cp license.tar.gz $RPM_BUILD_ROOT/CD1/)
#
# Install NEWS file
#
w3m -dump /usr/share/doc/release-notes/SUSE_Linux_Enterprise_12_Real_Time_Extension/RELEASE-NOTES.en.html > $RPM_BUILD_ROOT/CD1/NEWS
install -d $RPM_BUILD_ROOT/CD1/docu/

# install $RPM_SOURCE_DIR/README.manual $RPM_BUILD_ROOT/CD1/docu/
#
# Install release notes as HTML pages
#
cp -vp /usr/share/doc/release-notes/SUSE_Linux_Enterprise_12_Real_Time_Extension/RELEASE-NOTES.en.* \
	 $RPM_BUILD_ROOT/CD1/docu/
w3m -dump $RPM_BUILD_ROOT/CD1/docu/RELEASE-NOTES.en.html > $RPM_BUILD_ROOT/CD1/docu/RELEASE-NOTES.en.txt
#
# Install the QuickStart guide PDF
#
#cp -vp /usr/share/doc/manual/slerte-quick_en-pdf/*.pdf $RPM_BUILD_ROOT/CD1/docu/
cp -vp /usr/share/doc/manual/sle-rt-quick_en-pdf/SLE-RT-quick_en.pdf $RPM_BUILD_ROOT/CD1/docu/
cp -vp /usr/share/doc/manual/sle-rt-hw_en-pdf/SLE-RT-hw_en.pdf $RPM_BUILD_ROOT/CD1/docu/
cp -vp /usr/share/doc/manual/sle-rt-shielding_en-pdf/SLE-RT-shielding.pdf $RPM_BUILD_ROOT/CD1/docu/
cp -vp /usr/share/doc/manual/sle-rt-virtguide_en-pdf/sle-rt-virtguide_en.pdf $RPM_BUILD_ROOT/CD1/docu/


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
/CD1

%changelog
openSUSE Build Service is sponsored by