[or-cvs] Force rpmbuild to behave and honor target_cpu.
phobos at seul.org
phobos at seul.org
Tue Mar 28 16:54:32 UTC 2006
Update of /home/or/cvsroot/tor
In directory moria:/tmp/cvs-serv17276
Modified Files:
tor.spec.in
Log Message:
Force rpmbuild to behave and honor target_cpu.
Index: tor.spec.in
===================================================================
RCS file: /home/or/cvsroot/tor/tor.spec.in,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -p -d -r1.30 -r1.31
--- tor.spec.in 21 Feb 2006 04:45:07 -0000 1.30
+++ tor.spec.in 28 Mar 2006 16:54:29 -0000 1.31
@@ -22,6 +22,16 @@
%define target_cpu i386
%define target_os linux
+## Override any system rpm macros
+#
+%define _arch %{target_cpu}
+%define _build_arch %{target_cpu}
+%define _vendor %{target_os}
+%define _host %{target_cpu}-pc-%{target_os}-%{target}
+%define _host_cpu %{target_cpu}
+%define _host_vendor %{target_os}
+%define optflags -march=%{target_cpu} -mcpu=%{target_cpu} -O
+
## Version song and dance
#
# This should be the Tor version number, as it appears on the tarball,
@@ -157,9 +167,7 @@ for high-stakes anonymity.
%build
%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup} \
- --build=%{target_cpu}-pc-%{target_os}-%{target} \
- --host=%{target_cpu}-pc-%{target_os}-%{target} \
- --target=%{target_cpu}-pc-%{target_os}-%{target}
+ --build=%{_host} --host=%{_host} --target=%{_host}
%make
%install
@@ -275,6 +283,11 @@ exit 0
%changelog
+* Tue Mar 28 2006 Andrew Lewman <phobos at interloper.org>
+- converted to build the specified target cpu and arch
+- override related rpm macros to build correctly
+- see OR-CVS for details
+
* Mon Jan 17 2005 John Bashinski <jbash at velvet.com>
- Take runtime user and group names from configure system. Default
user/group names are now "_tor"; blame Roger...
More information about the tor-commits
mailing list