diff options
author | Ondrej Mikle <ondrej.mikle@gmail.com> | 2012-06-08 15:41:53 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-07-31 11:41:40 -0400 |
commit | cf20fac37f78cc1212eaf0dc5260eabf46bcea92 (patch) | |
tree | 925714424f4d560164d29082963ec92de0506250 /doc | |
parent | aed93f8ad918787ea787061106bcd5289c712823 (diff) | |
download | tor-cf20fac37f78cc1212eaf0dc5260eabf46bcea92.tar.gz tor-cf20fac37f78cc1212eaf0dc5260eabf46bcea92.zip |
Dependencies for RPM building with mock should work now
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tor-rpm-creation.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/tor-rpm-creation.txt b/doc/tor-rpm-creation.txt index 3fc6bde79c..eb22c2225a 100644 --- a/doc/tor-rpm-creation.txt +++ b/doc/tor-rpm-creation.txt @@ -3,7 +3,7 @@ The process used to create the official rpms is as follows: Download latest stable libevent from -http://www.monkey.org/~provos/libevent/ +http://libevent.org/ The first step of compiling libevent is to configure it as follows: ./configure --enable-static --disable-shared @@ -24,3 +24,20 @@ make dist-rpm You should have at least two, maybe three, rpms. There should be the binary i386.rpm, a src.rpm, and on redhat/centos machines, a debuginfo.rpm. + + +## Instructions for building RPMs for multiple architectures or distributions +## using 'mock' + +Make sure you have mock installed and configured, see following HOWTOs for setup: +https://fedoraproject.org/wiki/How_to_create_an_RPM_package +https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds + +Take the source RPM generated by previous step, and execute mock for every +target architecture (the names come from files in /etc/mock, strip the .cfg +extension in the -r parameter): + +mock --rebuild -r fedora-17-x86_64 tor-X.Y.Z.src.rpm + +(Note: don't build under OpenVZ - it breaks unshare() syscall, which in turn +breaks mock. It could save you several hours.) |