This page describes how to build a OBS Package locally.
You must have a valid package on your OBS server, who had the status of "building" at least once (to get the source rpm file published on the server).
Now you can work inside your chroot.
sudo mic-chroot /tmp/CHROOTmeego
At first add your repos project.
zypper ar --refresh http://OBSHOST:82/MyProject/ MyReposProject zypper refresh
Now you can install your package.
zypper si kernel rpmbuild -bp --define '_srcdefattr (-,root,root)' ~/rpmbuild/SPECS/kernel.spec --target=i686 < /dev/null #Don't forget "< /dev/null", it's very impotant.
With the option -bp,rpmbuild executes the "%prep" stage from the spec file.
Now, you are ready to work.
cd BUILD/ make menuconfig make
--Ronan Le Martret Intel OpenSource Technology Centre 14:09, 12 August 2011 (UTC)