File skelcd-openSUSE.spec of Package skelcd-openSUSE-non-OSS

#
# spec file for package skelcd-openSUSE (Version 2008.12.1)
#
# Copyright (c) 2008 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-openSUSE
BuildRequires:  build-key opensuse-gnomeuser_en-pdf recode release-notes-openSUSE
%ifarch %ix86 x86_64
BuildRequires:  instlux-local pinentry-gtk2
%endif
License:        YaST License
Group:          Metapackages
Conflicts:      skelcd-SUSE_Linux skelcd-SUSE_Linux-AddOn skelcd-sles skelcd-sled skelcd-openSUSE-non-OSS skelcd-openSUSE-non-OSS-CD
AutoReqProv:    off
Version:        2008.12.1
Release:        1
Summary:        Skeleton for openSUSE OSS Media Sets
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         skelcd.tar.bz2
Source2:        README
Source5:        license-SL.tar.bz2
Source7:        skelcd-openSUSE-rpmlintrc
Source10:       README.docudir
# changed by pre_checkin
%define is_non_oss 0
# define our version
%define distribution_version 11.1

%description
Internal package only, used for openSUSE OSS Media sets



%if !%is_non_oss

%package CD
License:        YaST License
Summary:        Skeleton for openSUSE OSS Media Sets
Group:          Metapackages
Conflicts:      skelcd-SUSE_Linux skelcd-SUSE_Linux-AddOn skelcd-sles skelcd-sled skelcd-openSUSE-non-OSS skelcd-openSUSE-non-OSS-DVD skelcd-openSUSE-non-OSS-CD skelcd-openSUSE skelcd-openSUSE-FTP skelcd-openSUSE-CD-KDE skelcd-openSUSE-CD-GNOME

%description CD
Internal package only, used for openSUSE OSS Media sets



%endif

%prep
%setup -n skelcd 
%if !%is_non_oss
tar xvf %{S:5}
%endif

%build

%install
# for now ... begin
BUILD_DISTRIBUTION_VERSION=%distribution_version
# for now ... end
test -e /.buildenv && . /.buildenv
mkdir -p $RPM_BUILD_ROOT/CD1/{boot,docu}
cp READMEs/* $RPM_BUILD_ROOT/CD1/
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 )
%ifarch ppc
	rm -fv $RPM_BUILD_ROOT/CD1/SuSEgo.ico
%else
	INSTLUX=""
	if [ -d /CD1 ]; then
		INSTLUX_AVAIL=$(ls /CD1/openSUSE*LOCAL.exe)
		if [ x"$INSTLUX_AVAIL" != x"" ]; then
			INSTLUX="open  =  $(basename $INSTLUX_AVAIL)"
		fi
	fi
	echo "[autorun]" >> $RPM_BUILD_ROOT/CD1/autorun.inf
	echo "label = openSUSE $BUILD_DISTRIBUTION_VERSION" >> $RPM_BUILD_ROOT/CD1/autorun.inf
	echo "icon  =  susego.ico" >> $RPM_BUILD_ROOT/CD1/autorun.inf
	echo "$INSTLUX" >> $RPM_BUILD_ROOT/CD1/autorun.inf
	recode utf8..dos $RPM_BUILD_ROOT/CD1/autorun.inf
%endif
DATE_ENG=`date +"%%Y/%%m/%%d"`
pwd
ls -la
for i in README ; do
 sed -e "s@#DATE#@$DATE_ENG@" \
     -e"s@#VERSION#@$BUILD_DISTRIBUTION_VERSION@" $RPM_SOURCE_DIR/$i \
    > $RPM_BUILD_ROOT/CD1/$i
# no DOS for ppc
%ifnarch ppc
 cp $RPM_BUILD_ROOT/CD1/$i $RPM_BUILD_ROOT/CD1/$i.DOS
 recode utf8..ibmpc $RPM_BUILD_ROOT/CD1/$i.DOS
%endif
# but Mac linebreaks
%ifarch ppc
 cp $RPM_BUILD_ROOT/CD1/$i $RPM_BUILD_ROOT/CD1/$i.mac.txt
 recode utf8..mac $RPM_BUILD_ROOT/CD1/$i.mac.txt
%endif
done
%if !%is_non_oss
#
# Copy the right README.BETA or LICENSE.TXT file
#
# Add infos to license files
for i in license-SL/license*; do
 sed -i -e "s@#DATE#@$DATE_ENG@" \
     -e"s@#VERSION#@$BUILD_DISTRIBUTION_VERSION@" $i
done
pushd license-SL
touch no-acceptance-needed
tar cvzf license.tar.gz *txt no-acceptance-needed
cp license.tar.gz $RPM_BUILD_ROOT/CD1/
popd
%endif
# docudir stuff
#
# SuSE manuals
#
# The SUSE Linux Manuals (PDF)
#
# README.docudir
grep -v '^#' %{S:10} > $RPM_BUILD_ROOT/CD1/docu/README
# leave out the documentation on x86_64
#%ifarch %ix86 ppc ppc64
#for f in /usr/share/doc/manual/opensuse-{gnomeuser,manual}_*-pdf/*.pdf ; do
#  l=${f##*/}; l=${l#*_}; l=${l%\.pdf}
#  if [ ! -e $RPM_BUILD_ROOT/CD1/docu/$l ]; then 
#	mkdir -p $RPM_BUILD_ROOT/CD1/docu/$l
#  fi
#  test -f $RPM_BUILD_ROOT/CD1/docu/$l || cp -v $f $RPM_BUILD_ROOT/CD1/docu/$l
#done
#%endif
#
# Install release notes as HTML and rtf (yast rtf) pages   
#
cp -p /usr/share/doc/release-notes/openSUSE/RELEASE-NOTES.en.html $RPM_BUILD_ROOT/CD1/docu/RELEASE-NOTES.en.html
cp -p /usr/share/doc/release-notes/openSUSE/RELEASE-NOTES.en.rtf $RPM_BUILD_ROOT/CD1/docu/RELEASE-NOTES.en.rtf
# uncomment for final
rm $RPM_BUILD_ROOT/CD1/README.BETA*

%files
%defattr(644,root,root,755)
/CD1
%if !%is_non_oss

%files CD
%defattr(644,root,root,755)
/CD1
%exclude /CD1/docu
%ifnarch ppc
%exclude /CD1/SuSEgo.ico
%exclude /CD1/autorun.inf
%endif
%endif

%changelog
* Mon Dec 01 2008 coolo@suse.de
- pt_BR, de and es are in too
* Sun Nov 30 2008 coolo@suse.de
- format with 70, there were still a bit too many chars
* Fri Nov 28 2008 coolo@suse.de
- some translations sent in (bnc#448270)
* Tue Nov 25 2008 coolo@suse.de
- the license is not an agreement anymore (bnc#448598)
* Thu Nov 20 2008 coolo@suse.de
- now back to rc
* Wed Nov 12 2008 coolo@suse.de
- no more beta eula - only a popup
* Mon Nov 10 2008 coolo@suse.de
- it's beta5 not rc
* Mon Nov 10 2008 coolo@suse.de
- only take the new license for oss media
* Sun Nov 09 2008 coolo@suse.de
- new license from legal
* Fri Oct 24 2008 coolo@suse.de
- release notes patch changed again (back)
* Fri Oct 17 2008 lrupp@suse.de
- just require instlux-local
- add the version to the autorun.inf
- fix factory url in READMEs (bnc#434585)
* Fri Sep 19 2008 adrian@suse.de
- fix build with openSUSE-build-key
* Wed Sep 17 2008 adrian@suse.de
- remove BuildRequires to redbook. Not needed and available anymore.
* Thu Aug 07 2008 coolo@suse.de
- disable the pdfs for now
* Tue Jul 29 2008 lrupp@suse.de
- fix ppc filelist
* Thu Jul 24 2008 coolo@suse.de
- readded the 36MB docu to the x86_64 too early ;(
* Fri Jul 18 2008 coolo@suse.de
- release notes path changed
* Mon Jun 23 2008 coolo@suse.de
- merging skelcd-openSUSE und -non-oss and dropping subpackages
  not needed
* Wed Jun 18 2008 coolo@suse.de
- we're alpha again
* Mon Jun 09 2008 coolo@suse.de
- correcting translations
* Sun Jun 08 2008 coolo@suse.de
- update EULA for live CDs
* Tue Jun 03 2008 coolo@suse.de
- almost forgot: disable beta EULA
* Mon May 05 2008 lrupp@suse.de
- create autorun.inf automatically
- be more robust creating docu-subdirs
- added rpmlintrc
* Wed Apr 16 2008 aj@suse.de
- Update license for 11.0.
* Sat Mar 29 2008 coolo@suse.de
- release-notes was renamed
* Thu Mar 13 2008 coolo@suse.de
- trying to fit the license in 70 chars (bnc#368541)
* Thu Nov 29 2007 coolo@suse.de
- remove "for now" part
* Tue Nov 27 2007 coolo@suse.de
- enable beta EULA
* Mon Nov 19 2007 cthiel@suse.de
- fixed word wrapping in license.hu.txt (#339812)
* Wed Sep 26 2007 cthiel@suse.de
- update german EULA (#327759)
* Wed Sep 26 2007 cthiel@suse.de
- fixed definitions in EULA (#327759)
* Tue Sep 25 2007 cthiel@suse.de
- readded opensuse-kdequick_en.pdf to KDE-CD
* Mon Sep 24 2007 cthiel@suse.de
- fixed word wrapping in license.sk.txt (thanks to Ladislav Michnovic)
* Mon Sep 24 2007 cthiel@suse.de
- include Hungaraian translation of license.txt (by Kalman Kemenczy, Novell
  Hungary)
* Tue Sep 18 2007 cthiel@suse.de
- fix word wrapping in license.txt
* Mon Sep 17 2007 cthiel@suse.de
- disable beta EULA
* Thu Sep 13 2007 cthiel@suse.de
- update openSUSE 10.3 EULA (including translations)
* Wed Aug 29 2007 cthiel@suse.de
- remove opensuse-kdequick_en.pdf from KDE-CD for space reasons
* Wed Aug 22 2007 cthiel@suse.de
- readded /docu/*.rtf and /docu/*.html
* Tue Aug 21 2007 cthiel@suse.de
- fix build on ppc
* Tue Aug 21 2007 cthiel@suse.de
- fixed docu selection on CD-KDE and CD-GNOME
* Tue Aug 21 2007 cthiel@suse.de
- exclude /docu/de on CD-KDE and CD-GNOME
* Mon Aug 20 2007 cthiel@suse.de
- split of additional CD subpackage
* Mon Aug 20 2007 cthiel@suse.de
- split of FTP, CD-KDE and CD-GNOME subpackage
* Wed Aug 08 2007 cthiel@suse.de
- license.zip -> license.tar.gz
* Mon Jul 30 2007 aj@suse.de
- Use license directory.
- Add GPLv3.
* Fri Jul 27 2007 aj@suse.de
- Add label to autorun.inf (#274894).
* Wed May 23 2007 aj@suse.de
- Add proofread README.
* Mon Apr 16 2007 aj@suse.de
- New package used for openSUSE OSS media with reworked media
  layout for licenses.
openSUSE Build Service is sponsored by