Wed, 11 Feb 2009 15:00:41 +0100
Import new package spec for introduction into repository.
nepim/nepim.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nepim/nepim.spec Wed Feb 11 15:00:41 2009 +0100 1.3 @@ -0,0 +1,102 @@ 1.4 +## 1.5 +## nepim.spec -- OpenPKG RPM Package Specification 1.6 +## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> 1.7 +## 1.8 +## Permission to use, copy, modify, and distribute this software for 1.9 +## any purpose with or without fee is hereby granted, provided that 1.10 +## the above copyright notice and this permission notice appear in all 1.11 +## copies. 1.12 +## 1.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 1.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 1.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 1.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 1.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 1.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1.24 +## SUCH DAMAGE. 1.25 +## 1.26 + 1.27 +# package information 1.28 +Name: nepim 1.29 +Summary: Network Pipemeter 1.30 +URL: http://www.nongnu.org/nepim/ 1.31 +Vendor: Everton da Silva Marques 1.32 +Packager: Michael Schloh von Bennewitz 1.33 +Distribution: Europalab Production 1.34 +Class: EVAL 1.35 +Group: Network 1.36 +License: GPL 1.37 +Version: 0.53 1.38 +Release: 20090106 1.39 + 1.40 +# list of sources 1.41 +Source0: http://www.very-clever.com/download/nongnu/nepim/nepim-%{version}.tar.gz 1.42 + 1.43 +# build information 1.44 +Prefix: %{l_prefix} 1.45 +BuildRoot: %{l_buildroot} 1.46 +BuildPreReq: OpenPKG, openpkg >= 20040130, make, pkgconfig 1.47 +PreReq: OpenPKG, openpkg >= 20040130 1.48 +BuildPreReq: liboop 1.49 +PreReq: liboop 1.50 +AutoReq: no 1.51 +AutoReqProv: no 1.52 + 1.53 +%description 1.54 +Nepim stands for network pipemeter, a tool for measuring available 1.55 +bandwidth between hosts or generating network traffic for testing 1.56 +purposes. Nepim operates in client/server mode, is able to handle 1.57 +multiple parallel traffic streams, reports periodic partial 1.58 +statistics along the testing, accepts rich tuning from the command 1.59 +line, and supports multicast and IPv6. 1.60 + 1.61 +%track 1.62 + prog nepim = { 1.63 + version = %{version} 1.64 + url = http://www.very-clever.com/download/nongnu/nepim/ 1.65 + regex = nepim-(__VER__)\.tar\.gz 1.66 + } 1.67 + 1.68 +%prep 1.69 + %setup -q 1.70 + %{l_shtool} subst \ 1.71 + -e 's;\(\t*\$(CC).*\);\1 $(LIBS);' \ 1.72 + -e 's;\(\t*-DHAVE_.*\)\$(SPARC64);\1-DHAVE_GROUP_SOURCE_REQ;' \ 1.73 + -e 's; *\$(SPARC64);;g' \ 1.74 + -e 's;\$(DEBUG);;g' \ 1.75 + -e 's;-ggdb;;g' \ 1.76 + -e 's;-g;;g' \ 1.77 + src/Makefile 1.78 + 1.79 +%build 1.80 + loclibs='-ldl' 1.81 + case "%{l_platform -t}" in 1.82 + *-sunos* ) loclibs="$loclibs -lsocket -lnsl" ;; 1.83 + esac 1.84 + cd src 1.85 + %{l_make} %{l_mflags -O} \ 1.86 + CC="%{l_cc}" \ 1.87 + CPPFLAGS="%{l_cppflags}" \ 1.88 + LDFLAGS="%{l_ldflags}" \ 1.89 + LIBS="$loclibs `pkg-config liboop --libs-only-l`" \ 1.90 + OOP_BASE=%{l_prefix} 1.91 + 1.92 +%install 1.93 + rm -rf $RPM_BUILD_ROOT 1.94 + %{l_shtool} mkdir -f -p -m 755 \ 1.95 + $RPM_BUILD_ROOT%{l_prefix}/bin 1.96 + %{l_shtool} install -c -m 755 \ 1.97 + src/nepim \ 1.98 + $RPM_BUILD_ROOT%{l_prefix}/bin/ 1.99 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 1.100 + 1.101 +%files -f files 1.102 + 1.103 +%clean 1.104 + rm -rf $RPM_BUILD_ROOT 1.105 +