Convenient wrapper around mock
[fedora-mingw.git] / smock / README
1  SMOCK - Simpler Mock
2  ====================
3
4 Smock is a thin wrapper around mock to let you build up a whole
5 set of dependant RPMs against an external distro.
6
7  - Copy smock.httpd.conf to /etc/httpd/conf.d/smock.conf, changing the
8    /home/[USERNAME]/ to your user
9  - Start httpd
10  - Add  smock.mock.conf to all your repos in /etc/mock/ changing the
11    arch and distro name to match
12  - Create  $HOME/smock
13
14  - Edit smock.sh to set which arch(es) you want to build on
15
16 Now you can run
17
18     ./smock.sh fedora-9 /path/to/srpm
19
20 And it'll build  the RPM against the fedora-9-XXX distro for each 'XXX' 
21 arch you listed.
22
23 The resulting src RPMs, binary RPMs and build logs wil be put into
24 $HOME/smock, and a YUM repo created. Further RPMs you build using
25 smock will resolve the BuildRequires against this local repo