Name: httping Version: 1.2.8 Release: 1%{?dist} Summary: Ping a webserver Group: Applications/Networking License: GPL URL: http://www.vanheusden.com/httping Source: http://www.vanheusden.com/httping/httping-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Httping is like 'ping' but for http-requests. Give it an url, and it'll show you how long it takes to connect, send a request and retrieve the reply (only the headers). Be aware that the transmission across the network also takes time! %prep %setup -q %build # str.c declares strndup which aix already has > str.c > str.h CFLAGS="%{optflags}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} # real destination %{__mkdir_p} %{buildroot}%{_bindir} %{__mkdir_p} %{buildroot}%{_mandir}/man1/ # temp dirs in which the makefile puts the output %{__mkdir_p} %{buildroot}/usr/bin %{__mkdir_p} %{buildroot}/usr/share/man/man1/ %{__make} install DESTDIR="%{buildroot}" # now move the files to where the aix toolbox wants them %{__mv} -f %{buildroot}/usr/bin/* %{buildroot}%{_bindir} %{__mv} -f %{buildroot}/usr/share/man/man1/* %{buildroot}%{_mandir}/man1/ %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc readme.txt license.OpenSSL license.txt %{_bindir}/httping %{_mandir}/man1/httping.1* %changelog * Wed Jul 02 2008 Folkert van Heusden - 1.2.8-1 - Updated to release 1.2.8 * Tue Jul 10 2007 Folkert van Heusden - 1.2.4-1 - Updated to release 1.2.4 * Sat Feb 03 2007 Folkert van Heusden - 1.2.2-1 - Adapted for AIX build * Sun Nov 19 2006 Folkert van Heusden - 1.2.2-0 - Updated to release 1.2.2-0 * Wed Jul 26 2006 Udo van den Heuvel - 1.2.1-0 - Updated to release 1.2.1-0 * Sat Jun 24 2006 Udo van den Heuvel - 1.0.10-0 - Updated to release 1.0.10-0