]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Dependencies for RPM building with mock should work now
authorOndrej Mikle <ondrej.mikle@gmail.com>
Fri, 8 Jun 2012 13:41:53 +0000 (15:41 +0200)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Jul 2012 15:41:40 +0000 (11:41 -0400)
doc/tor-rpm-creation.txt
tor.spec.in

index 3fc6bde79cf033b8dbb7ba5609b0bdd1e489fad8..eb22c2225a12966099ad7d71f106abfe6e91e4c1 100644 (file)
@@ -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.)
index 25557b73e28615a48ec0b27a60b66c448872a99c..127bf361d765fa0de7ecae7a125e2fedc1555ffa 100644 (file)
@@ -109,11 +109,11 @@ Vendor: The Tor Project (https://torproject.org)
 Packager: Erinn Clark <erinn@torproject.org>
 
 %if %{is_suse}
-Requires: openssl >= 0.9.7
-BuildRequires: openssl-devel >= 0.9.7, rpm >= 4.0, zlib-devel
+Requires: openssl >= 0.9.7, libevent >= 1.4.13
+BuildRequires: openssl-devel >= 0.9.7, rpm >= 4.0, zlib-devel, libevent-devel >= 1.4.13, asciidoc
 %else 
-Requires: openssl >= 0.9.7
-BuildRequires: openssl-devel >= 0.9.7
+Requires: openssl >= 0.9.7, libevent >= 1.4.13
+BuildRequires: openssl-devel >= 0.9.7, libevent-devel >= 1.4.13, asciidoc
 %endif
 %if %{is_fc}
 BuildRequires: rpm-build >= 4.0