Rewrite smock in Perl, can work with multiple SRPMs and auto-analyze
[fedora-mingw.git] / smock / README
1  SMOCK - Simpler Mock
2  ====================
3 by Dan Berrange and Richard W.M. Jones.
4
5 Smock is a thin wrapper around mock to let you build up a whole
6 set of dependant RPMs against an external distro.
7
8  - Create directory $HOME/public_html/smock
9
10  - Copy smock.httpd.conf to /etc/httpd/conf.d/smock.conf, changing the
11    /home/[USERNAME]/ to your user
12
13  - Start or restart httpd
14
15  - Insert smock.mock.extra to all your repos in /etc/mock/ changing the
16    USERNAME, arch and distro name to match
17
18  - Disable SELinux (/usr/sbin/setenforce Permissive) and you may
19    need to do 'chmod 0755 ~' to allow the web server to access your
20    home directory.
21
22 Now you can run
23
24     ./smock.pl --arch=i386 --arch=x86_64 --distro=fedora-9 list of srpms
25
26 And it'll build the all the SRPMs listed on the command line, using
27 previously built SRPMs as dependencies for later ones.  You don't need
28 to list them in the proper order - the build order is worked out using
29 the dependencies.
30
31 The resulting src RPMs, binary RPMs and build logs wil be put into
32 $HOME/public_html/smock, and a Yum repo created.  Further RPMs you
33 build using smock will resolve the BuildRequires against this local
34 repo.