SPECS/traceroute/traceroute.spec
c56b7b38
 Name:           traceroute
 Summary:        Traces the route taken by packets over an IPv4/IPv6 network
ca774cb6
 Version:        2.1.0
1b94bc82
 Release:        3%{?dist}
421d1f6b
 License:        GPLv2+
c56b7b38
 Group:          Applications/Internet
 Url:            http://traceroute.sourceforge.net
 Source0:        http://downloads.sourceforge.net/project/traceroute/traceroute/traceroute-%{version}/traceroute-%{version}.tar.gz
ca774cb6
 %define sha1    traceroute=bc5c6c8022187511be5665b3818d919be5987dcc
 Vendor:         VMware, Inc.
 Distribution:   Photon
c56b7b38
 
 
 %description
 The traceroute utility displays the route used by IP packets on their
 way to a specified network (or Internet) host.
 
 %prep
 %setup -q
 
 
 %build
421d1f6b
 make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS=""
c56b7b38
 
 %install
421d1f6b
 rm -rf %{buildroot}
c56b7b38
 
 install -d %{buildroot}/bin
 install -m755 traceroute/traceroute %{buildroot}/bin
 pushd %{buildroot}/bin
 popd
 
 install -d %{buildroot}%{_bindir}
 install -m755 wrappers/tcptraceroute %{buildroot}%{_bindir}
 
 install -d %{buildroot}%{_mandir}/man8
421d1f6b
 install -p -m644 traceroute/traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8
c56b7b38
 pushd %{buildroot}%{_mandir}/man8
 ln -s traceroute.8 tcptraceroute.8
 popd
 
421d1f6b
 %clean
 rm -rf $RPM_BUILD_ROOT
c56b7b38
 
 %files
421d1f6b
 %defattr(-,root,root,-)
c56b7b38
 %doc COPYING README TODO CREDITS
 /bin/*
 %{_bindir}/*
 %{_mandir}/*/*
 
 
 %changelog
1b94bc82
 *   Fri Nov 30 2018 Ashwin H <ashwinh@vmware.com> 2.1.0-3
 -   Remove traceroute6 softlink as iputils provides traceroute6
421d1f6b
 *   Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.1.0-2
 -   Ensure non empty debuginfo
ca774cb6
 *   Tue Mar 28 2017 Xiaolin Li <xiaolinl@vmware.com> 2.1.0-1
 -   Updated to version 2.1.0.
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.22-2
 -   GA - Bump release of all rpms
 *   Fri Feb 26 2016 Anish Swaminathan <anishs@vmware.com>  2.0.22-1
 -   Initial version