File cgicc.spec of Package cgicc
#
# spec file for package cgicc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cgicc
Version: 3.2.9
Release: 0
License: LGPL
Summary: It is a C++ class library for writing CGI applications
Url: http://www.gnu.org/software/cgicc
Group: Productivity/Networking/Web/Utilities
Source0: %{name}-%{version}.tar.bz2
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package -n lib%{name}5
Summary: Shared libraries for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description -n lib%{name}5
Shared libraries for the CGICC C++ class library.
%package devel
Summary: Header files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: lib%{name}5 = %{version}
%description devel
Header files and documentation for the CGICC C++ class library.
%description
GNU cgicc is a C++ class library that greatly simplifies the creation of CGI applications for the World Wide Web. cgicc performs the following functions:
* 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.
* Supports HTTP file upload.
* Compatible with FastCGI.
%prep
%setup -q
%build
%configure
%{__make} %{?_smp_mflags}
%install
%makeinstall
%{__install} -d %{buildroot}/%{_docdir}
%{__mv} %{buildroot}%{_prefix}/doc/%{name}-%{version} %{buildroot}/%{_docdir}/%{name}
%clean
%{__rm} -rf %{buildroot}
%post -n lib%{name}5 -p /sbin/ldconfig
%postun -n lib%{name}5 -p /sbin/ldconfig
%files
%attr(755,root,root) %{_bindir}/cgicc-config
%defattr(644,root,root,755)
%{_docdir}/cgicc
%files -n lib%{name}5
%attr(644,root,root) %{_libdir}/libcgicc.so.*
%files devel
%defattr(644,root,root,755)
%{_includedir}/cgicc
%{_datadir}/aclocal/cgicc.m4
%{_libdir}/libcgicc.so
%{_libdir}/libcgicc.a
%{_libdir}/libcgicc.la
%changelog