michael@66: ## michael@66: ## sproxy.spec -- OpenPKG RPM Specification michael@66: ## Copyright (c) 2009 Michael Schloh von Bennewitz michael@66: ## michael@66: ## Permission to use, copy, modify, and distribute this software for michael@66: ## any purpose with or without fee is hereby granted, provided that michael@66: ## the above copyright notice and this permission notice appear in all michael@66: ## copies. michael@66: ## michael@66: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@66: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@66: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@66: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@66: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@66: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@66: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@66: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@66: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@66: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@66: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@66: ## SUCH DAMAGE. michael@66: ## michael@66: michael@66: michael@66: # package information michael@66: Name: sproxy michael@66: Summary: URL Harvesting HTTP Proxy michael@594: URL: http://www.joedog.org/sproxy-home/ michael@66: Vendor: Jeffrey Fulmer michael@66: Packager: Michael Schloh von Bennewitz michael@594: Distribution: Europalab Networks Production michael@66: Class: EVAL michael@66: Group: Network michael@66: License: GPL michael@594: Version: 1.02 michael@594: Release: 20120800 michael@66: michael@66: # list of sources michael@594: Source0: http://www.joedog.org/pub/sproxy/sproxy-%{version}.tar.gz michael@66: michael@66: # build information michael@594: BuildPreReq: OpenPKG, openpkg >= 20100101, perl, make michael@594: PreReq: OpenPKG, openpkg >= 20100101, perl, perl-www michael@66: michael@66: %description michael@66: Sproxy is a tool designed to harvest URLs for a HTTP/HTTPS test tool michael@66: such as Siege. Sproxy is designed to work like a regular HTTP proxy. michael@66: It listens for HTTP requests on port 9001 (default) and it returns michael@66: requested content to the web browser while writing the URL along michael@66: with any GET or POST data to a file. michael@66: michael@66: %track michael@66: prog sproxy = { michael@66: version = %{version} michael@66: url = ftp://sid.joedog.org/pub/sproxy/ michael@66: regex = sproxy-(__VER__)\.tar\.gz michael@66: } michael@66: michael@66: %prep michael@66: %setup -q michael@66: %{l_shtool} subst \ michael@66: -e 's; \(\$(bindir)\); $(DESTDIR)\1;' \ michael@66: -e 's; \(\$(prefix)\); $(DESTDIR)\1;' \ michael@66: -e 's;\$(prefix)/etc;$(sysconfdir);' \ michael@66: doc/Makefile.in \ michael@66: src/Makefile.in michael@66: michael@66: %build michael@66: ./configure \ michael@66: --prefix=%{l_prefix} \ michael@66: --sysconfdir=%{l_prefix}/etc/sproxy michael@594: %{l_make} %{l_mflags -O} michael@66: michael@66: %install michael@66: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@66: rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/sproxy michael@66: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@66: michael@66: %files -f files michael@66: michael@594: %clean michael@594: