michael@120: ## michael@120: ## cgicc.spec -- OpenPKG RPM Specification michael@245: ## Copyright (c) 2010 Michael Schloh von Bennewitz michael@120: ## michael@120: ## Permission to use, copy, modify, and distribute this software for michael@120: ## any purpose with or without fee is hereby granted, provided that michael@120: ## the above copyright notice and this permission notice appear in all michael@120: ## copies. michael@120: ## michael@120: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@120: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@120: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@120: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@120: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@120: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@120: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@120: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@120: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@120: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@120: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@120: ## SUCH DAMAGE. michael@120: ## michael@120: michael@120: michael@120: # package information michael@120: Name: cgicc michael@120: Summary: C++ class library for writing CGI applications michael@120: URL: http://www.gnu.org/software/cgicc/ michael@120: Vendor: Stephen F. Booth michael@120: Packager: Michael Schloh von Bennewitz michael@120: Distribution: Michael Schloh von Bennewitz michael@120: Class: EVAL michael@120: Group: Web michael@120: License: GPL michael@245: Version: 3.2.9 michael@245: Release: 20100510 michael@120: michael@120: # list of sources michael@120: Source0: ftp://ftp.gnu.org/gnu/cgicc/cgicc-%{version}.tar.gz michael@120: michael@120: # build information michael@120: Prefix: %{l_prefix} michael@120: BuildRoot: %{l_buildroot} michael@120: BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make, automake, libtool michael@120: PreReq: OpenPKG, openpkg >= 20040130 michael@120: AutoReq: no michael@120: AutoReqProv: no michael@120: michael@120: %description michael@120: Compatible with FastCGI, GNU cgicc is a ANSI C++ compliant michael@120: class library that greatly simplifies the creation of CGI michael@120: applications. It parses both GET and POST form data transparently, michael@120: provides string, integer, floating-point and single and multiple michael@120: choice retrieval methods for form data, provides methods for michael@120: saving and restoring CGI environments to aid in application michael@120: debugging, provides full on the fly HTML generation capabilities, michael@120: with support for cookies, and supports HTTP file upload. michael@120: michael@120: %track michael@120: prog cgicc = { michael@120: version = %{version} michael@120: url = ftp://ftp.gnu.org/gnu/cgicc/ michael@120: regex = cgicc-(__VER__)\.tar\.gz michael@120: } michael@120: michael@120: %prep michael@120: # unpack sources michael@120: %setup -q michael@120: michael@120: # reconstruct broken build configuration michael@120: aclocal michael@120: libtoolize michael@120: automake --add-missing michael@120: michael@120: # repair still incorrect build configuration michael@120: %{l_shtool} subst \ michael@120: -e 's;^docdir *=.*;docdir = @docdir@;' \ michael@120: doc/Makefile.* michael@120: michael@120: %build michael@120: # prepare configuration michael@120: CC="%{l_cc}" \ michael@120: CFLAGS="%{l_cflags -O}" \ michael@120: CPPFLAGS="%{l_cppflags}" \ michael@120: LDFLAGS="%{l_ldflags}" \ michael@120: ./configure \ michael@120: --prefix=%{l_prefix} \ michael@120: --docdir=%{l_prefix}/share/%{name}/doc \ michael@120: --disable-shared michael@120: michael@120: # build using parallel make michael@120: %{l_make} %{l_mflags -O} michael@120: michael@120: %install michael@120: # remove previously existing installations michael@120: rm -rf $RPM_BUILD_ROOT michael@120: michael@120: # run the native installation logic michael@120: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@120: michael@120: # determine installation files michael@133: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@133: %{l_files_std} \ michael@245: "%doc %{l_prefix}/share/%{name}/doc" michael@120: michael@120: %files -f files michael@120: michael@120: %clean michael@120: rm -rf $RPM_BUILD_ROOT michael@120: