michael@312: ## michael@312: ## netperf.spec -- OpenPKG RPM Package Specification michael@312: ## Copyright (c) 2011 Michael Schloh von Bennewitz michael@312: ## michael@312: ## Permission to use, copy, modify, and distribute this software for michael@312: ## any purpose with or without fee is hereby granted, provided that michael@312: ## the above copyright notice and this permission notice appear in all michael@312: ## copies. michael@312: ## michael@312: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@312: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@312: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@312: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@312: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@312: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@312: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@312: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@312: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@312: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@312: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@312: ## SUCH DAMAGE. michael@312: ## michael@312: michael@312: # package information michael@312: Name: netperf michael@312: Summary: Network Pipemeter michael@312: URL: http://www.netperf.org/ michael@312: Vendor: Rick Jones michael@312: Packager: Michael Schloh von Bennewitz michael@312: Distribution: Europalab Production michael@312: Class: EVAL michael@312: Group: Network michael@312: License: Commercial michael@312: Version: 2.4.5 michael@312: Release: 20110302 michael@312: michael@312: # list of sources michael@312: Source0: ftp://ftp.netperf.org/netperf/netperf-%{version}.tar.bz2 michael@312: Patch0: netperf.patch michael@312: michael@312: # build information michael@312: Prefix: %{l_prefix} michael@312: BuildRoot: %{l_buildroot} michael@312: BuildPreReq: OpenPKG, openpkg >= 20040130 michael@312: PreReq: OpenPKG, openpkg >= 20040130 michael@312: AutoReq: no michael@312: AutoReqProv: no michael@312: michael@312: %description michael@312: Netperf is a benchmark that can be used to measure the performance michael@312: of many different types of networking. It provides tests for both michael@312: unidirecitonal throughput, and end to end latency. The environments michael@312: currently measureable by netperf include TCP and UDP via BSD Sockets michael@312: for both IPv4 and IPv6, DLPI, Unix Domain Sockets, and SCTP for both michael@312: IPv4 and IPv6. michael@312: michael@312: %track michael@312: prog netperf = { michael@312: version = %{version} michael@312: url = ftp://ftp.netperf.org/netperf/ michael@312: regex = netperf-(__VER__)\.tar\.bz2 michael@312: } michael@312: michael@312: %prep michael@312: %setup -q michael@312: %patch -p0 michael@312: michael@312: %build michael@312: loclibs='' michael@312: case "%{l_platform -t}" in michael@312: *-sunos* ) loclibs="$loclibs -lkstat" ;; michael@312: esac michael@312: LIBS="$loclibs" \ michael@312: ./configure \ michael@312: --prefix=%{l_prefix} \ michael@312: --enable-burst \ michael@312: --enable-sctp michael@312: %{l_make} %{l_mflags -O} michael@312: michael@312: %install michael@312: rm -rf $RPM_BUILD_ROOT michael@312: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@312: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* michael@312: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@312: michael@312: %files -f files michael@312: michael@312: %clean michael@312: rm -rf $RPM_BUILD_ROOT michael@312: