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