mkdir /usr/src/packages/SOURCE/s4e-2009 cd /usr/src/packages/SOURCE/s4e-2009
cp -av /home/matthias/s4e/* .
cd .. tar cvfz s4e-2009.tar.gz s4e-2009
cd /usr/src/packages/SPECS vi s4e.spec
# # spec file for package server4education # # Copyright (c) 2008 desktop4education TEAM Weiz, Austria # Summary: server4education 2009 Modul Name: s4e Version: 2009 Release: 1 Group: System License: GPL Source: s4e-2009.tar.gz URL: www.d4e.at Distribution: openSuSE 11.0 Packager: d4e Weiz <support@d4e.at> BuildRoot: %{_tmppath}/%{name}-%{version}-build %description desktop4education ist ein Schülerdesktop... Authors: -------- d4e-Support-Team <support@d4e.at> Helmuth Peer, Matthias Praunegger, Stefan Reisinger, Markus Fleck %prep %setup %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/testdir echo "hallo" > $RPM_BUILD_ROOT/testdir/README cp * $RPM_BUILD_ROOT/testdir %clean rm -rf $RPM_BUILD_ROOT %files %dir /testdir/*
rpmbuild -bb --clean --target i586 s4e.spec
schroedinger:/daten/d4e2009 # cat rpms.sh #!/bin/bash CURRENT=`pwd` cd /usr/src/packages/SOURCES rm $1-2009.tar.gz tar cvfz $1-2009.tar.gz $1-2009 cd /usr/src/packages/SPECS rpmbuild -bb --clean --target i586 $1.spec cp /usr/src/packages/RPMS/i586/$1-2009-1.i586.rpm /d4e2009/rpms cd $CURRENT echo "Done." schroedinger:/daten/d4e2009 #