Ver código fonte

new package: cgilib 0.5 (Common Gateway Interface (CGI) Library)

Ralf S. Engelschall 20 anos atrás
pai
commit
dd6acec7e3
2 arquivos alterados com 101 adições e 0 exclusões
  1. 11 0
      cgilib/cgilib.patch
  2. 90 0
      cgilib/cgilib.spec

+ 11 - 0
cgilib/cgilib.patch

@@ -0,0 +1,11 @@
+Index: cgi.c
+--- cgi.c.orig	1999-08-20 23:14:07 +0200
++++ cgi.c	2005-04-26 17:36:13 +0200
+@@ -31,7 +31,6 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <ctype.h>
+-#include <malloc.h>
+ #include <cgi.h>
+ 
+ int cgiDebugLevel = 0;

+ 90 - 0
cgilib/cgilib.spec

@@ -0,0 +1,90 @@
+##
+##  cgilib.spec -- OpenPKG RPM Package Specification
+##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
+##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
+##
+##  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:         cgilib
+Summary:      Common Gateway Interface (CGI) Library
+URL:          http://www.infodrom.org/projects/cgilib/
+Vendor:       Martin Schulze
+Packager:     OpenPKG
+Distribution: OpenPKG
+Class:        EVAL
+Group:        Web
+License:      GPL
+Version:      0.5
+Release:      20050426
+
+#   list of sources
+Source0:      http://www.infodrom.org/projects/cgilib/download/cgilib-%{version}.tar.gz
+Patch0:       cgilib.patch
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20040130
+PreReq:       OpenPKG, openpkg >= 20040130
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    CGILib is a quite simple library that provides an easy ISO-C
+    interface to the Common Gateway Interface (CGI).
+
+%track
+    prog cgilib = {
+        version   = %{version}
+        url       = http://www.infodrom.org/projects/cgilib/download/
+        regex     = cgilib-(__VER__)\.tar\.gz
+    }
+
+%prep
+    %setup -q
+    %patch -p0
+
+%build
+    %{l_make} %{l_mflags -O} \
+       CC="%{l_cc}" \
+       CFLAGS="%{l_cflags -O} -I. %{l_cppflags}" \
+       LDFLAGS="-L. %{l_ldflags}" \
+       LIBS="-lcgi"
+
+%install
+    rm -rf $RPM_BUILD_ROOT
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/include \
+        $RPM_BUILD_ROOT%{l_prefix}/lib \
+        $RPM_BUILD_ROOT%{l_prefix}/man/man3
+    %{l_shtool} install -c -m 644 \
+        cgi.h $RPM_BUILD_ROOT%{l_prefix}/include/
+    %{l_shtool} install -c -m 644 \
+        libcgi.a $RPM_BUILD_ROOT%{l_prefix}/lib/
+    %{l_shtool} install -c -m 644 \
+        *.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+    rm -rf $RPM_BUILD_ROOT
+