Summary: Ping/Traceroute network diagnostic tool Name: mtr Version: 0.84 Release: 1 Group: Applications/Networking Copyright: GPL URL: http://www.BitWizard.nl/mtr Source0: %{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch Patch1: %{name}-crash-in-xml-mode.patch Patch2: %{name}-xml-format-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: AIX-rpm >= 5.3.0.0 BuildRequires: patch BuildRequires: glib2-devel >= 2.8.1-3 BuildRequires: gtk2-devel >= 2.8.3-9 Requires: AIX-rpm >= 5.3.0.0 Requires: glib2 >= 2.8.1-3 %description Mtr is a network diagnostic tool which combines Ping and Traceroute into one program. Mtr also has two interfaces: An ncurses interface, useful for using Mtr from a telnet session and a Gtk interface if you are using X. %package gtk Summary: Ping/Traceroute network diagnostic tool - GTK Interface Group: Applications/Networking Requires: %{name} = %{version} Requires: AIX-rpm >= 5.3.0.0 Requires: glib2 >= 2.8.1-3 Requires: gtk2 >= 2.8.3-9 %description gtk Mtr is a network diagnostic tool which combines Ping and Traceroute into one program. Mtr also has two interfaces: An ncurses interface, useful for using Mtr from a telnet session and a Gtk interface if you are using X Windows. This is the GTK interface for mtr. %prep %setup -q export PATH=/opt/freeware/bin:$PATH %patch0 %patch1 -p1 %patch2 -p1 %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh export CC=xlc_r ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make && mv mtr xmtr && make distclean ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --without-gtk make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} cp xmtr ${RPM_BUILD_ROOT}%{_sbindir}/ chmod 0755 ${RPM_BUILD_ROOT}%{_sbindir}/xmtr /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_bindir}/* || : mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps cp img/mtr_icon.xpm ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ chmod 0644 ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/* cd ${RPM_BUILD_ROOT} mkdir -p usr/sbin cd usr/sbin ln -sf ../..%{_sbindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS COPYING FORMATS NEWS README SECURITY TODO %{_sbindir}/mtr %{_mandir}/man8/* /usr/sbin/mtr %files gtk %defattr(-,root,system) %doc AUTHORS COPYING FORMATS NEWS README SECURITY TODO %{_sbindir}/xmtr %{_datadir}/pixmaps/* /usr/sbin/xmtr %changelog * Mon Mar 18 2013 Michael Perzl (michael@perzl.org) - 0.84-1 - first version for AIX5L v5.3