Sat, 24 Mar 2012 21:40:49 +0100
Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.
michael@312 | 1 | ## |
michael@312 | 2 | ## netperf.spec -- OpenPKG RPM Package Specification |
michael@312 | 3 | ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@312 | 4 | ## |
michael@312 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@312 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@312 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@312 | 8 | ## copies. |
michael@312 | 9 | ## |
michael@312 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@312 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@312 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@312 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@312 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@312 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@312 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@312 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@312 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@312 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@312 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@312 | 21 | ## SUCH DAMAGE. |
michael@312 | 22 | ## |
michael@312 | 23 | |
michael@312 | 24 | # package information |
michael@312 | 25 | Name: netperf |
michael@312 | 26 | Summary: Network Pipemeter |
michael@312 | 27 | URL: http://www.netperf.org/ |
michael@312 | 28 | Vendor: Rick Jones |
michael@312 | 29 | Packager: Michael Schloh von Bennewitz |
michael@312 | 30 | Distribution: Europalab Production |
michael@312 | 31 | Class: EVAL |
michael@312 | 32 | Group: Network |
michael@312 | 33 | License: Commercial |
michael@312 | 34 | Version: 2.4.5 |
michael@312 | 35 | Release: 20110302 |
michael@312 | 36 | |
michael@312 | 37 | # list of sources |
michael@312 | 38 | Source0: ftp://ftp.netperf.org/netperf/netperf-%{version}.tar.bz2 |
michael@312 | 39 | Patch0: netperf.patch |
michael@312 | 40 | |
michael@312 | 41 | # build information |
michael@312 | 42 | Prefix: %{l_prefix} |
michael@312 | 43 | BuildRoot: %{l_buildroot} |
michael@312 | 44 | BuildPreReq: OpenPKG, openpkg >= 20040130 |
michael@312 | 45 | PreReq: OpenPKG, openpkg >= 20040130 |
michael@312 | 46 | AutoReq: no |
michael@312 | 47 | AutoReqProv: no |
michael@312 | 48 | |
michael@312 | 49 | %description |
michael@312 | 50 | Netperf is a benchmark that can be used to measure the performance |
michael@312 | 51 | of many different types of networking. It provides tests for both |
michael@312 | 52 | unidirecitonal throughput, and end to end latency. The environments |
michael@312 | 53 | currently measureable by netperf include TCP and UDP via BSD Sockets |
michael@312 | 54 | for both IPv4 and IPv6, DLPI, Unix Domain Sockets, and SCTP for both |
michael@312 | 55 | IPv4 and IPv6. |
michael@312 | 56 | |
michael@312 | 57 | %track |
michael@312 | 58 | prog netperf = { |
michael@312 | 59 | version = %{version} |
michael@312 | 60 | url = ftp://ftp.netperf.org/netperf/ |
michael@312 | 61 | regex = netperf-(__VER__)\.tar\.bz2 |
michael@312 | 62 | } |
michael@312 | 63 | |
michael@312 | 64 | %prep |
michael@312 | 65 | %setup -q |
michael@312 | 66 | %patch -p0 |
michael@312 | 67 | |
michael@312 | 68 | %build |
michael@312 | 69 | loclibs='' |
michael@312 | 70 | case "%{l_platform -t}" in |
michael@312 | 71 | *-sunos* ) loclibs="$loclibs -lkstat" ;; |
michael@312 | 72 | esac |
michael@312 | 73 | LIBS="$loclibs" \ |
michael@312 | 74 | ./configure \ |
michael@312 | 75 | --prefix=%{l_prefix} \ |
michael@312 | 76 | --enable-burst \ |
michael@312 | 77 | --enable-sctp |
michael@312 | 78 | %{l_make} %{l_mflags -O} |
michael@312 | 79 | |
michael@312 | 80 | %install |
michael@312 | 81 | rm -rf $RPM_BUILD_ROOT |
michael@312 | 82 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
michael@312 | 83 | strip $RPM_BUILD_ROOT%{l_prefix}/bin/* |
michael@312 | 84 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@312 | 85 | |
michael@312 | 86 | %files -f files |
michael@312 | 87 | |
michael@312 | 88 | %clean |
michael@312 | 89 | rm -rf $RPM_BUILD_ROOT |
michael@312 | 90 |