Name: bing Version: 1.1.3 Release: 1%{?dist} Summary: Bandwidth ping Group: System Environment/Base License: BSD with advertising URL: http://fgouget.free.fr/bing/index-en.shtml Source0: http://fgouget.free.fr/bing/bing_src-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: bing-1.1.3-debian.patch %description Bing is a point-to-point bandwidth measurement tool (hence the 'b'), based on ping. Bing determines the real (raw, as opposed to available or average) throughput on a link by measuring ICMP echo requests' round trip times for different packet sizes at each end of the link. %prep %setup -q -n %{name}_src-%{version} %patch0 -p1 -b .debian %build make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -D__GNU__" iconv -f 863 -t UTF-8 Readme.txt > foo && mv foo Readme.txt || exit 1 %install rm -rf $RPM_BUILD_ROOT # not worth patching the Makefile, just hand-pick install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man8 install -m 755 bing $RPM_BUILD_ROOT%{_bindir} install -m 444 unix/bing.8 $RPM_BUILD_ROOT%{_mandir}/man8 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Readme.1st Readme.txt %{_bindir}/bing %{_mandir}/man8/bing.8* %changelog * Tue Jan 22 2008 Adam Jackson 1.1.3-1 - Initial version. %%description and patches lift from the Debian packaging.