OpenSuse Build Service/MeeGo Setup

(New page: = MeeGo = Targets: * Use MeeGo:1.0:Core : Latest Release * Use MeeGo:Current:Core : Latest snapshot * Use MeeGo:1.0.80.1.20100514.1:Core : for weekly snapshots See: http://wiki.meego.co...)
(that'll be the rpm based MeeGo then, not the deb one...)
Line 20: Line 20:
# Prepare for the :full dir for the OBS
# Prepare for the :full dir for the OBS
-
OBS=/backend_storage/obs/meego1.0/i586_full
+
OBS=/backend_storage/obs/meego1.0
-
mkdir -p $OBS
+
mkdir -p $OBS/i586_full
REPO=/backend_storage/MeeGo/1.0/ia32/
REPO=/backend_storage/MeeGo/1.0/ia32/
-
cd $OBS/..
+
cd $OBS
-
find $REPO -name *i386.deb | xargs -I@ ln @ i586_full
+
find $REPO -name *.rpm | xargs -I@ ln @ i586_full
-
find $REPO -name *all.deb | xargs -I@ ln @ i586_full
+
# Not done (11 Jun)
# Not done (11 Jun)
-
OBS=/backend_storage/obs/meego1.0/armel_full
+
OBS=/backend_storage/obs/meego1.0
-
mkdir -p $OBS
+
mkdir -p $OBS/armel_full
REPO=/backend_storage/MeeGo/1.0/armv7l
REPO=/backend_storage/MeeGo/1.0/armv7l
-
cd $OBS/..
+
cd $OBS
-
find $REPO -name *armel.deb | xargs -I@ ln @ armel_full
+
find $REPO -name *rpm | xargs -I@ ln @ armel_full
-
find $REPO -name *all.deb | xargs -I@ ln @ armel_full
+
 

Revision as of 14:14, 12 June 2010

MeeGo

Targets:

MeeGo:1.0:Core

# Specify the OBS we're working on
API=http://api.obs.maemo.org/

# Get the binaries
mkdir -p /backend_storage/MeeGo/1.0/ia32
cd  /backend_storage/MeeGo/1.0/ia32
wget -e robots=off --accept \*.rpm --mirror --no-parent --progress=dot \
 --no-host-directories --cut-dirs=7 -nv \
 http://repo.m2.org/MeeGo/releases/1.0/core/repos/ia32/packages/


# Prepare for the :full dir for the OBS
OBS=/backend_storage/obs/meego1.0
mkdir -p $OBS/i586_full
REPO=/backend_storage/MeeGo/1.0/ia32/
cd $OBS
find $REPO -name *.rpm | xargs -I@ ln @ i586_full

# Not done (11 Jun)
OBS=/backend_storage/obs/meego1.0
mkdir -p $OBS/armel_full
REPO=/backend_storage/MeeGo/1.0/armv7l
cd $OBS
find $REPO -name *rpm | xargs -I@ ln @ armel_full



# On an OBS client
osc -A $API meta prj MeeGo:1.0:Core -F - <<XML
<project name="MeeGo:1.0:Core">
  <title>MeeGo 1.0</title>
  <description>
MeeGo from http://repo.m2.org/MeeGo/releases/1.0/core/repos
  </description>
  <person role="maintainer" userid="Admin"/>
  <person role="bugowner" userid="Admin"/>
  <build>
    <enable/>
  </build>
  <publish>
    <disable/>
  </publish>
  <debuginfo>
    <disable/>
  </debuginfo>
  <repository name="standard">
    <arch>armv7el</arch>
    <arch>i586</arch>
  </repository>
</project>
XML

# Back on OBS server
# Copy the binaries into the new project
cd /srv/obs/build/MeeGo\:1.0\:Core/standard/
mkdir -p i586 armv7el
ln -s $OBS/i586_full i586/:full
ln -s $OBS/armel_full armv7el/:full

/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:1.0:Core standard i586
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:1.0:Core standard armv7el

chown -R obsrun:obsrun /srv/obs/build/MeeGo:1.0:Core

Since this project is a target it needs a prjconf