tor-rpm-creation.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ## Instructions for building the official rpms.
  2. ##
  3. The process used to create the official rpms is as follows:
  4. Download latest stable libevent from
  5. http://libevent.org/
  6. The first step of compiling libevent is to configure it as follows:
  7. ./configure --enable-static --disable-shared
  8. Complete the "make" and "make install". You will need to be root,
  9. or sudo -s, to complete the "make install".
  10. Check for a successful universal binary of libevent.a in, by default,
  11. /usr/local/lib by using the following command:
  12. "file /usr/local/lib/libevent.a"
  13. Download and Extract the latest tor source code from
  14. https://www.torproject.org/download
  15. In the resulting directory:
  16. LIBS=-lrt ./configure
  17. make dist-rpm
  18. You should have at least two, maybe three, rpms. There should be the binary
  19. i386.rpm, a src.rpm, and on redhat/centos machines, a debuginfo.rpm.
  20. ## Instructions for building RPMs for multiple architectures or distributions
  21. ## using 'mock'
  22. Make sure you have mock installed and configured, see following HOWTOs for setup:
  23. https://fedoraproject.org/wiki/How_to_create_an_RPM_package
  24. https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds
  25. Take the source RPM generated by previous step, and execute mock for every
  26. target architecture (the names come from files in /etc/mock, strip the .cfg
  27. extension in the -r parameter):
  28. mock --rebuild -r fedora-17-x86_64 tor-X.Y.Z.src.rpm
  29. (Note: don't build under OpenVZ - it breaks unshare() syscall, which in turn
  30. breaks mock. It could save you several hours.)