michael@104: ## michael@104: ## nepim.spec -- OpenPKG RPM Package Specification michael@104: ## Copyright (c) 2009 Michael Schloh von Bennewitz michael@104: ## michael@104: ## Permission to use, copy, modify, and distribute this software for michael@104: ## any purpose with or without fee is hereby granted, provided that michael@104: ## the above copyright notice and this permission notice appear in all michael@104: ## copies. michael@104: ## michael@104: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@104: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@104: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@104: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@104: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@104: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@104: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@104: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@104: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@104: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@104: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@104: ## SUCH DAMAGE. michael@104: ## michael@104: michael@104: # package information michael@104: Name: nepim michael@104: Summary: Network Pipemeter michael@104: URL: http://www.nongnu.org/nepim/ michael@104: Vendor: Everton da Silva Marques michael@104: Packager: Michael Schloh von Bennewitz michael@104: Distribution: Europalab Production michael@104: Class: EVAL michael@104: Group: Network michael@104: License: GPL michael@104: Version: 0.53 michael@308: Release: 20110300 michael@104: michael@104: # list of sources michael@308: Source0: http://download.savannah.gnu.org/releases/nepim/nepim-%{version}.tar.gz michael@104: michael@104: # build information michael@104: Prefix: %{l_prefix} michael@104: BuildRoot: %{l_buildroot} michael@104: BuildPreReq: OpenPKG, openpkg >= 20040130, make, pkgconfig michael@104: PreReq: OpenPKG, openpkg >= 20040130 michael@104: BuildPreReq: liboop michael@104: PreReq: liboop michael@104: AutoReq: no michael@104: AutoReqProv: no michael@104: michael@104: %description michael@104: Nepim stands for network pipemeter, a tool for measuring available michael@104: bandwidth between hosts or generating network traffic for testing michael@104: purposes. Nepim operates in client/server mode, is able to handle michael@104: multiple parallel traffic streams, reports periodic partial michael@104: statistics along the testing, accepts rich tuning from the command michael@104: line, and supports multicast and IPv6. michael@104: michael@104: %track michael@104: prog nepim = { michael@104: version = %{version} michael@104: url = http://www.very-clever.com/download/nongnu/nepim/ michael@104: regex = nepim-(__VER__)\.tar\.gz michael@104: } michael@104: michael@104: %prep michael@104: %setup -q michael@104: %{l_shtool} subst \ michael@104: -e 's;\(\t*\$(CC).*\);\1 $(LIBS);' \ michael@104: -e 's;\(\t*-DHAVE_.*\)\$(SPARC64);\1-DHAVE_GROUP_SOURCE_REQ;' \ michael@104: -e 's; *\$(SPARC64);;g' \ michael@104: -e 's;\$(DEBUG);;g' \ michael@104: -e 's;-ggdb;;g' \ michael@104: -e 's;-g;;g' \ michael@104: src/Makefile michael@104: michael@104: %build michael@104: loclibs='-ldl' michael@104: case "%{l_platform -t}" in michael@104: *-sunos* ) loclibs="$loclibs -lsocket -lnsl" ;; michael@104: esac michael@104: cd src michael@104: %{l_make} %{l_mflags -O} \ michael@104: CC="%{l_cc}" \ michael@104: CPPFLAGS="%{l_cppflags}" \ michael@104: LDFLAGS="%{l_ldflags}" \ michael@104: LIBS="$loclibs `pkg-config liboop --libs-only-l`" \ michael@104: OOP_BASE=%{l_prefix} michael@104: michael@104: %install michael@104: rm -rf $RPM_BUILD_ROOT michael@104: %{l_shtool} mkdir -f -p -m 755 \ michael@104: $RPM_BUILD_ROOT%{l_prefix}/bin michael@189: %{l_shtool} install -c -s -m 755 \ michael@104: src/nepim \ michael@104: $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@104: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@104: michael@104: %files -f files michael@104: michael@104: %clean michael@104: rm -rf $RPM_BUILD_ROOT michael@104: