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@66 | 1 | ## |
| michael@66 | 2 | ## sproxy.spec -- OpenPKG RPM Specification |
| michael@66 | 3 | ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> |
| michael@66 | 4 | ## |
| michael@66 | 5 | ## Permission to use, copy, modify, and distribute this software for |
| michael@66 | 6 | ## any purpose with or without fee is hereby granted, provided that |
| michael@66 | 7 | ## the above copyright notice and this permission notice appear in all |
| michael@66 | 8 | ## copies. |
| michael@66 | 9 | ## |
| michael@66 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
| michael@66 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| michael@66 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| michael@66 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
| michael@66 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| michael@66 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| michael@66 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
| michael@66 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| michael@66 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| michael@66 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| michael@66 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| michael@66 | 21 | ## SUCH DAMAGE. |
| michael@66 | 22 | ## |
| michael@66 | 23 | |
| michael@66 | 24 | |
| michael@66 | 25 | # package information |
| michael@66 | 26 | Name: sproxy |
| michael@66 | 27 | Summary: URL Harvesting HTTP Proxy |
| michael@66 | 28 | URL: http://www.joedog.org/index/sproxy-home/ |
| michael@66 | 29 | Vendor: Jeffrey Fulmer |
| michael@66 | 30 | Packager: Michael Schloh von Bennewitz |
| michael@66 | 31 | Distribution: Europalab Production |
| michael@66 | 32 | Class: EVAL |
| michael@66 | 33 | Group: Network |
| michael@66 | 34 | License: GPL |
| michael@66 | 35 | Version: 1.01 |
| michael@66 | 36 | Release: 20090106 |
| michael@66 | 37 | |
| michael@66 | 38 | # list of sources |
| michael@66 | 39 | Source0: ftp://sid.joedog.org/pub/sproxy/sproxy-%{version}.tar.gz |
| michael@66 | 40 | |
| michael@66 | 41 | # build information |
| michael@66 | 42 | Prefix: %{l_prefix} |
| michael@66 | 43 | BuildRoot: %{l_buildroot} |
| michael@66 | 44 | BuildPreReq: OpenPKG, openpkg >= 20040130, perl |
| michael@66 | 45 | PreReq: OpenPKG, openpkg >= 20040130, perl, perl-www |
| michael@66 | 46 | AutoReq: no |
| michael@66 | 47 | AutoReqProv: no |
| michael@66 | 48 | |
| michael@66 | 49 | %description |
| michael@66 | 50 | Sproxy is a tool designed to harvest URLs for a HTTP/HTTPS test tool |
| michael@66 | 51 | such as Siege. Sproxy is designed to work like a regular HTTP proxy. |
| michael@66 | 52 | It listens for HTTP requests on port 9001 (default) and it returns |
| michael@66 | 53 | requested content to the web browser while writing the URL along |
| michael@66 | 54 | with any GET or POST data to a file. |
| michael@66 | 55 | |
| michael@66 | 56 | %track |
| michael@66 | 57 | prog sproxy = { |
| michael@66 | 58 | version = %{version} |
| michael@66 | 59 | url = ftp://sid.joedog.org/pub/sproxy/ |
| michael@66 | 60 | regex = sproxy-(__VER__)\.tar\.gz |
| michael@66 | 61 | } |
| michael@66 | 62 | |
| michael@66 | 63 | %prep |
| michael@66 | 64 | %setup -q |
| michael@66 | 65 | %{l_shtool} subst \ |
| michael@66 | 66 | -e 's; \(\$(bindir)\); $(DESTDIR)\1;' \ |
| michael@66 | 67 | -e 's; \(\$(prefix)\); $(DESTDIR)\1;' \ |
| michael@66 | 68 | -e 's;\$(prefix)/etc;$(sysconfdir);' \ |
| michael@66 | 69 | doc/Makefile.in \ |
| michael@66 | 70 | src/Makefile.in |
| michael@66 | 71 | |
| michael@66 | 72 | %build |
| michael@66 | 73 | ./configure \ |
| michael@66 | 74 | --prefix=%{l_prefix} \ |
| michael@66 | 75 | --sysconfdir=%{l_prefix}/etc/sproxy |
| michael@66 | 76 | %{l_make} %{l_mflags} |
| michael@66 | 77 | |
| michael@66 | 78 | %install |
| michael@66 | 79 | rm -rf $RPM_BUILD_ROOT |
| michael@66 | 80 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
| michael@66 | 81 | rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/sproxy |
| michael@66 | 82 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
| michael@66 | 83 | |
| michael@66 | 84 | %files -f files |
| michael@66 | 85 |