Summary: CGI library for C Name: cgilib Version: 0.5 Release: 1 Group: Utilities/Text License: GPL Source: http://www.infodrom.org/projects/cgilib/download/cgilib-%{version}.tar.gz URL: http://www.infodrom.north.de/cgilib/ BuildRoot: /var/tmp/%{name}-root %description This is quite a simple library that provides an easy interface to the common gateway interface, known as CGI. The purpose is to provide an easy to use interface to CGI if you need to write your program in C instead of perl. %prep %setup -q mkdir examples cp -p cgitest.c jumpto.c examples/ %build make CFLAGS="%{optflags} -I." libcgi.a %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_libdir} install -m 644 libcgi.a %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} install -m 644 cgi.h %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_mandir}/man3 for f in *.3; do install -m 644 $f %{buildroot}%{_mandir}/man3 done mkdir -p %{buildroot}%{_mandir}/man5 for f in *.5; do install -m 644 $f %{buildroot}%{_mandir}/man5 done %clean rm -rf %{buildroot} %files %defattr (-, root, root) %doc readme CHANGES CREDITS cookies.txt %doc examples %{_libdir}/libcgi.a %{_includedir}/cgi.h %{_mandir}/man3/* %{_mandir}/man5/* %changelog * Thu Apr 29 2004 Chris Adams 0.5-1 - initial build