Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
astraceroute
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 6
[-]
[+]
Changed
astraceroute.spec
@@ -11,6 +11,12 @@ Vendor: linux-administrator.com BuildRequires: glibc-devel libgcc gcc gcc-c++ +%ifarch x86_64 +%if 0%{?suse_version} +BuildRequires: glibc-devel-32bit +%endif +%endif + %description astraceroute is based on traceroute from LBL ( ftp://ftp.ee.lbl.gov/traceroute.tar.gz) with the added feature of origin AS resolution, much like the prtraceroute that comes with the IRRToolSet. @@ -18,14 +24,21 @@ %prep %setup -n %{name} make distclean -LDFLAGS=-lresolv \ +%ifarch x86_64 +%define build_host x86_64-unknown-linux +CFLAGS="%{optflags} -m64 -g -lresolv" CXXFLAGS="%{optflags} -m64" \ +%else +%define build_host i386-unknown-linux +CFLAGS="%{optflags} -m32 -g -lresolv" CXXFLAGS="%{optflags} -m32" \ +%endif ./configure \ ---prefix=%{_prefix} \ ---mandir=%{_mandir} \ ---sysconfdir=%{_sysconfdir} \ ---libdir=%{_libdir} \ ---datadir=%{_datadir} - + --build=%{build_host} \ + --prefix=%{_prefix} \ + --mandir=%{_mandir} \ + --sysconfdir=%{_sysconfdir} \ + --libdir=%{_libdir} \ + --datadir=%{_datadir} \ + --srcdir=`pwd` %build %__make