rpms/cgi-util/devel cgi-util-2.2.1-autotools.patch, NONE, 1.1 cgi-util.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
W. Michael Petullo (mikep)
fedora-extras-commits at redhat.com
Sat Apr 8 00:31:40 UTC 2006
Author: mikep
Update of /cvs/extras/rpms/cgi-util/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv321/devel
Modified Files:
.cvsignore sources
Added Files:
cgi-util-2.2.1-autotools.patch cgi-util.spec
Log Message:
auto-import cgi-util-2.2.1-7 on branch devel from cgi-util-2.2.1-7.src.rpm
cgi-util-2.2.1-autotools.patch:
--- NEW FILE cgi-util-2.2.1-autotools.patch ---
diff -u --recursive --new-file cgi-util-2.2.1-vanilla/aclocal.m4 cgi-util-2.2.1/aclocal.m4
--- cgi-util-2.2.1-vanilla/aclocal.m4 1969-12-31 18:00:00.000000000 -0600
+++ cgi-util-2.2.1/aclocal.m4 2006-03-09 17:17:45.000000000 -0600
@@ -0,0 +1,7043 @@
+# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+
+# serial 47 AC_PROG_LIBTOOL
+
+
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
+# -----------------------------------------------------------
+# If this macro is not defined by Autoconf, define it here.
+m4_ifdef([AC_PROVIDE_IFELSE],
+ [],
+ [m4_define([AC_PROVIDE_IFELSE],
+ [m4_ifdef([AC_PROVIDE_$1],
+ [$2], [$3])])])
+
+
+# AC_PROG_LIBTOOL
+# ---------------
+AC_DEFUN([AC_PROG_LIBTOOL],
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [AC_LIBTOOL_CXX],
+ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
+ ])])
+dnl And a similar setup for Fortran 77 support
+ AC_PROVIDE_IFELSE([AC_PROG_F77],
+ [AC_LIBTOOL_F77],
+ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
+])])
+
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
+ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+ [AC_LIBTOOL_GCJ],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+ [AC_LIBTOOL_GCJ],
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
+ [AC_LIBTOOL_GCJ],
+ [ifdef([AC_PROG_GCJ],
+ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
+ ifdef([A][M_PROG_GCJ],
+ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
+ ifdef([LT_AC_PROG_GCJ],
+ [define([LT_AC_PROG_GCJ],
+ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
+])])# AC_PROG_LIBTOOL
+
+
+# _AC_PROG_LIBTOOL
+# ----------------
+AC_DEFUN([_AC_PROG_LIBTOOL],
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+# Prevent multiple expansion
+define([AC_PROG_LIBTOOL], [])
+])# _AC_PROG_LIBTOOL
+
+
+# AC_LIBTOOL_SETUP
+# ----------------
+AC_DEFUN([AC_LIBTOOL_SETUP],
+[AC_PREREQ(2.50)dnl
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_PROG_LD])dnl
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
+AC_REQUIRE([AC_PROG_NM])dnl
+
+AC_REQUIRE([AC_PROG_LN_S])dnl
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+AC_REQUIRE([AC_OBJEXT])dnl
+AC_REQUIRE([AC_EXEEXT])dnl
+dnl
+
+AC_LIBTOOL_SYS_MAX_CMD_LEN
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+AC_LIBTOOL_OBJDIR
+
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+_LT_AC_PROG_ECHO_BACKSLASH
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e 1s/^X//'
+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
+
+# Same as above, but do not quote variable references.
+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Constants:
+rm="rm -f"
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+ltmain="$ac_aux_dir/ltmain.sh"
+ofile="$default_ofile"
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+AC_CHECK_TOOL(AR, ar, false)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(STRIP, strip, :)
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+test -z "$AS" && AS=as
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+test -z "$LD" && LD=ld
+test -z "$LN_S" && LN_S="ln -s"
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+test -z "$NM" && NM=nm
+test -z "$SED" && SED=sed
+test -z "$OBJDUMP" && OBJDUMP=objdump
+test -z "$RANLIB" && RANLIB=:
+test -z "$STRIP" && STRIP=:
+test -z "$ac_objext" && ac_objext=o
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+ ;;
+ *)
+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+_LT_CC_BASENAME([$compiler])
+
[...42037 lines suppressed...]
-
- However, if it cannot open the file, rather than return with an
- error code, this function sends HTML text out stating that it can't
- open the file, including the C "strerror()" description of the error.
- It then aborts your CGI by calling "exit(0);".
-
- Since most of the time you will be including HTML files which are
- under your control (ie, they are part of the CGI package you are
- creating), you will most often wish to use this function, since it
- is simpler than "cgi_dump_no_abort()" and your HTML files should
- always be available to your CGI.
-
- void cgi_error(char * reason)
- -----------------------------
- This function displays an HTML error message, starting with the word
- "Error" as a level one header ("<h1>") and followed by the string you
- provide (the actual reason an error occured).
-
- This function then calls "exit(0);" to abort your CGI.
-
- int cgi_goodemailaddress(char * addr)
- -------------------------------------
- This function does its best to make sure that a string contains
- a valid-looking e-mail address. (This is useful for when you
- get users who fill out a form and refuse to enter their e-mail
- address, or they don't understand what their own e-mail address is.
- For example, someone with the address "abc at aol.com" might think
- their address is "abc" or "abc at aol" or "abc.aol.col" or even
- "http://abc@aol.com". A good rule: never trust users.)
-
- A valid e-mail address is in the form:
-
- text at text.text[.text...]
-
- In other words, alphanumeric characters ("a-z", "A-Z", "0-9"),
- 'dashes' ("-"), underscores ("_") and 'dots' ("."), with exactly one
- 'at' ("@") in the middle, and at least one 'dot' appearing after
- the 'at.' 'Dots' and 'ats' are not allowed at the beginning or
- end of the string.
-
- "cgi_goodemailaddress" returns a "1" if the address appears to be
- in the right format (this does NOT necessarily mean it is a VALID
- address), or "0" if it is not.
-
- char * cgi_strerror(int err)
- ----------------------------
- Like C's "strerror()" function which returns the text equivalent of
- an "errno" error code, this function returns the text equivalent of
- one of cgi-util's "cgi_errno" error code.
-
-
-ERROR CODES
------------
- The many error codes that cgi-util will set "cgi_errno" to are described
- above, but here's a reference:
-
- CGIERR_NONE
- -----------
- No error occured
-
- CGIERR_NOT_INTEGER
- ------------------
- The field looked-up by cgi_getentryint() did not exist, or its
- value was not an integer.
-
- CGIERR_NOT_DOUBLE
- -----------------
- The field looked-up by cgi_getentrydouble() did not exist, or its
- value was not a double.
-
- CGIERR_NOT_BOOL
- ---------------
- The field looked-up by cgi_getentrybool() did not exist, or its
- value was not "yes", "on", "no" or "off".
-
- CGIERR_UNKNOWN_METHOD
- ---------------------
- The "REQUEST_METHOD" environment variable was not set to
- "POST" or "GET" (the two understood by cgi-util).
-
- CGIERR_INCORRECT_TYPE
- ---------------------
- The "CONTENT_TYPE" environment variable was not set to
- "application/x-www-form-urlencoded".
-
- CGIERR_BAD_CONTENT_LENGTH
- -------------------------
- The "CONTENT_LENGTH" environment variable was not set to
- an integer value.
-
- CGIERR_CONTENT_LENGTH_DISCREPANCY
- ---------------------------------
- The "CONTENT_LENGTH" environment variable was set to a value
- different from the actual size of data received by cgi_init().
-
- CGIERR_CANT_OPEN
- ----------------
- The cgi_dump_no_abort() function could not open the file
- specified. (Check C's "errno" value for the exact reason.)
-
- CGIERR_OUT_OF_MEMORY
- --------------------
- Space could not be allocated for the data being received by
- cgi_init().
-
-
-THE TEST PROGRAMS
------------------
- To understand the test program, first open the "test.html" or
- "filetest.html" HTML file in a web browser. (You need to open it via the
- HTTP protocol, not simply opening it as a file!)
-
- With "test.html", you'll notice the following on the page:
-
- * A type-in field labelled "Name?"
- * A type-in field labelled "Age?"
- * A pull-down menu labelled "Sex?"
- * A submit button labelled "Ok"
-
- I won't go into the details of creating a form here, since there are
- many, many places where you can learn this. (If you look at the source
- of "test.html", you'll see some comments which explain what is going on.)
-
- When you fill out the form and click the "Ok" submit button, the CGI
- will be invoked and you'll see something similar to:
-
- Hello.
- name=john doe
- age=55
- sex=Male
- Goodbye!
-
- As you can see, the input you place into the form is echoed back to you
- by this CGI. To see how this is done, simply look at the source code:
- "test.c"!
-
-
- With "filetest.html", you'll see a simpler form:
-
- * A type-in filed labelled "Name?"
- * A file browse field labelled "File?" (typically these fields appear as
- a type-in form with a "Browse" button next to it)
- * A sumbit button labelled "Ok"
-
- Select a file from your local filesystem (type it into the type-in field
- or use the "Browse" button, for example), and then submit the form.
- The CGI will be invoked and you'll see something similar to:
-
- Hello.
- name=john doe
- filename=foo.bar
- This file is 10234 bytes long.
- Goodbye!
-
- As you can see, the file you uploaded using the form has been processed,
- and the size of the file (in bytes) is displayed by the CGI. See
- "filetest.c" to see how this CGI works.
-
-
-THE END
--------
- Hopefully this library will come in useful. If you have questions or
- comments, please direct them to me:
-
- bill at newbreedsoftware.com
-
-
-THANKS FOR USING cgi-util!
-
-End of README.txt
diff -u --recursive --new-file cgi-util-2.2.1-vanilla/TODO cgi-util-2.2.1/TODO
--- cgi-util-2.2.1-vanilla/TODO 1969-12-31 18:00:00.000000000 -0600
+++ cgi-util-2.2.1/TODO 2006-03-09 17:17:46.000000000 -0600
@@ -0,0 +1,11 @@
+TODO.txt for cgi-util
+
+* Fix file upload.
+* Handle shell invoked CGI's again.
+* Handle grabbing multiple values from a singularly-named set of fields.
+ (ie, checkboxes and multiple select fields)
+* Create cgi-util 1.x backwards-compatible API.
+* Handle multiple file upload (maybe).
+* Better tutorials (eg, more info. on using cookies!)
+
+End of TODO.txt
diff -u --recursive --new-file cgi-util-2.2.1-vanilla/TODO.txt cgi-util-2.2.1/TODO.txt
--- cgi-util-2.2.1-vanilla/TODO.txt 2000-11-01 17:36:33.000000000 -0600
+++ cgi-util-2.2.1/TODO.txt 1969-12-31 18:00:00.000000000 -0600
@@ -1,11 +0,0 @@
-TODO.txt for cgi-util
-
-* Fix file upload.
-* Handle shell invoked CGI's again.
-* Handle grabbing multiple values from a singularly-named set of fields.
- (ie, checkboxes and multiple select fields)
-* Create cgi-util 1.x backwards-compatible API.
-* Handle multiple file upload (maybe).
-* Better tutorials (eg, more info. on using cookies!)
-
-End of TODO.txt
--- NEW FILE cgi-util.spec ---
Summary: A C library for creating Common Gateway Interface ("CGI") programs
Name: cgi-util
Version: 2.2.1
Release: 7
License: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.billsgames.com/unix/www/%name/%{name}-%{version}.tar.gz
Patch0: cgi-util-2.2.1-autotools.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: http://www.newbreedsoftware.com/cgi-util/
%description
cgi-util is a library which provides a set of C functions you can
use to create Common Gateway Interface ("CGI") programs. Simply call
cgi-util's initialization function and send HTML (or any other kind of
data) out from your program and to the user's web browser.
%package devel
Summary: Files needed to develop applications using cgi-util
Group: Development/Libraries
Requires: cgi-util = %{version}-%{release}
%description devel
This package provides the libraries, include files, and other resources
needed for developing applications using the cgi-util library.
%prep
%setup
%patch0 -p1
chmod +x configure
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libcgi-util.la
rm -f ${RPM_BUILD_ROOT}/%{_bindir}/*.cgi
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/lib*.so.*
%doc ChangeLog COPYING INSTALL TODO test.cgi filetest.cgi test.html filetest.html
%files devel
%{_libdir}/lib*.so
%{_includedir}/cgi-util.h
%doc README test.c filetest.c
%changelog
* Tue Apr 04 2006 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-7
- Remove *.cgi from bindir.
* Thu Mar 09 2006 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-6
- Move test.cgi and filetest.cgi to %doc.
- Move README to -devel %doc and add test.c and filetest.c.
- Pass --disable-static to configure.
* Thu Feb 23 2006 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-5
- Remove Werror from Makefile.in.
- Remove --gnu from autotools options.
- Revert patch that renames, for example, README.txt to README
as this is required for automake.
* Wed Feb 22 2006 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-4
- Turn off -Werror.
* Tue Feb 21 2006 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-3
- Simplify project descriptions.
- Do not change filenames in autotools patch.
* Tue Dec 13 2005 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-2
- Split out -devel package.
* Wed Nov 30 2005 W. Michael Petullo <mike[@]flyn.org> - 2.2.1-1
- Initial RPM.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/cgi-util/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 8 Apr 2006 00:30:34 -0000 1.1
+++ .cvsignore 8 Apr 2006 00:31:40 -0000 1.2
@@ -0,0 +1 @@
+cgi-util-2.2.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/cgi-util/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 8 Apr 2006 00:30:34 -0000 1.1
+++ sources 8 Apr 2006 00:31:40 -0000 1.2
@@ -0,0 +1 @@
+f48531a2b24b880ed6a87c801a8643fc cgi-util-2.2.1.tar.gz
More information about the fedora-extras-commits
mailing list