6a4a235b9f44e9a1c3d1c157f038763fae162d76
[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  - Create directory $HOME/public_html/smock
8
9  - Copy smock.httpd.conf to /etc/httpd/conf.d/smock.conf, changing the
10    /home/[USERNAME]/ to your user
11
12  - Start or restart httpd
13
14  - Insert smock.mock.extra to all your repos in /etc/mock/ changing the
15    USERNAME, arch and distro name to match
16
17  - Copy smock.sh to smock and edit which arch(es) you want to build on
18
19  - Disable SELinux (/usr/sbin/setenforce Permissive) and you may
20    need to do 'chmod 0755 ~' to allow the web server to access your
21    home directory.
22
23 Now you can run
24
25     ./smock.sh fedora-9 /path/to/srpm
26
27 And it'll build the RPM against the fedora-9-XXX distro for each 'XXX'
28 arch you listed.
29
30 The resulting src RPMs, binary RPMs and build logs wil be put into
31 $HOME/public_html/smock, and a Yum repo created.  Further RPMs you
32 build using smock will resolve the BuildRequires against this local
33 repo.