LOCALREPO and ARCHES are now specified externally.
[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  - Disable SELinux (/usr/sbin/setenforce Permissive) and you may
18    need to do 'chmod 0755 ~' to allow the web server to access your
19    home directory.
20
21 Now you can run
22
23     ./smock.sh fedora-9 /path/to/srpm
24
25 And it'll build the RPM against the fedora-9-XXX distro for each 'XXX'
26 arch you listed.
27
28 The resulting src RPMs, binary RPMs and build logs wil be put into
29 $HOME/public_html/smock, and a Yum repo created.  Further RPMs you
30 build using smock will resolve the BuildRequires against this local
31 repo.