Name: libcgi Version: 1.0 Release: 1mamba Summary: A CGI (Common Gateway Interface) programming interface Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Tiziana Ferro URL: http://libcgi.sourceforge.net/ Source: http://dfn.dl.sourceforge.net/sourceforge/libcgi/libcgi-%{version}.tar.gz Patch0: libcgi-1.0-Makefile.in.patch Patch1: libcgi-1.0-cgi.c-hextable.patch Patch2: libcgi-1.0-string.c-make_string.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This library offers a simple programming interface to the Common Gateway Interface, known as CGI, including Cookies. The purpose is to provide an easy to use interface to CGI if you need to write your program in C instead of perl. %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{version} %description devel This library offers a simple programming interface to the Common Gateway Interface, known as CGI, including Cookies. The purpose is to provide an easy to use interface to CGI if you need to write your program in C instead of perl. This package contains static libraries and header files need for development. %prep %setup -q -n libcgi-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 find examples/ -name "Makefile.am" -exec rm {} ';' %build %configure --disable-static %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall DESTDIR=%{buildroot} make DESTDIR=%{buildroot} install_man %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS BUGS ChangeLog README THANKS TODO %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc doc/html/ examples/ %{_libdir}/*.so %{_includedir}/cgi.h %{_includedir}/session.h %{_libdir}/libcgi.a %{_mandir}/man3/*.3* %changelog * Sun Oct 26 2008 Tiziana Ferro 1.0-1mamba - update to 1.0 - packager changed * Tue May 17 2005 Davide Madrisan 0.5-1qilnx - package created by autospec