File skelcd-lp.spec of Package skelcd-lp
#
# spec file for package skelcd-sles
#
# Copyright (c) 2014 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/
#
# release is a beta
%define beta 0
Name: skelcd-lp
BuildRequires: suse-build-key
%if 0%{?beta} == 1
%define license_dir license.beta
%else
%define license_dir license.final
%endif
AutoReqProv: off
Version: 2014.10.27
Release: 0
Summary: CD skeleton
License: GPL-2.0
Group: Metapackages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: skelcd.tar.bz2
%description
Internal package.
%prep
%setup -n skelcd -q
%build
%install
mkdir -p $RPM_BUILD_ROOT/CD1/boot
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 )
## The newest way to do it...
mkdir -p $RPM_BUILD_ROOT/CD1/media.1
pushd %license_dir
ls -1 > directory.yast # required to allow downloading of yast licenses from SCC
tar cvzf license.tar.gz --owner=root --group=root *txt directory.yast
cp license.tar.gz $RPM_BUILD_ROOT/CD1/
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%exclude /CD1/license.tar.gz
/CD1
%package -n skelcd-EULA-lp
Summary: EULA for media
Group: Metapackages
%description -n skelcd-EULA-lp
Internal package only.
%files -n skelcd-EULA-lp
%defattr(644,root,root,755)
/CD1/license.tar.gz
%changelog