File cgicc.spec of Package cgicc

Summary: GNU cgicc is a C++ class library for writing CGI applications
Name: cgicc
Version: 3.2.16
Release: 1
License: LGPL
Group: Internet/WWW/Servers
URL: http://www.cgicc.org/
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++ doxygen
Requires: lib%{name}3

%package -n lib%{name}3
#Requires: %name
Group: Development/Libraries
Summary: Shared libraries for %{name}

%package devel
Requires: %name
Group: Development/Libraries
Summary: Header files for %name 
URL: http://www.cgicc.org/

%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.

%description devel
Header files and documentation for the CGICC C++ class library. 

%description -n lib%{name}3
Shared libraries for the CGICC C++ class library


%prep
%setup -q

%build
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install

# patch to install doc accoring with LINUX FS 2.2
mkdir -p ${RPM_BUILD_ROOT}/%{_docdir}
mv $RPM_BUILD_ROOT/usr/doc/cgicc-%{version} ${RPM_BUILD_ROOT}/%{_docdir}/cgicc

%clean
rm -rf $RPM_BUILD_ROOT

%post -n lib%{name}3
/sbin/ldconfig

%postun -n lib%{name}3
/sbin/ldconfig

%files
%attr(755,root,root) /usr/bin/cgicc-config
%defattr(644,root,root,755) 
%{_docdir}/cgicc
%{_libdir}/pkgconfig/cgicc.pc

%files -n lib%{name}3
%attr(644,root,root) %{_libdir}/libcgicc.so.*

%files devel
%defattr(644,root,root,755) 
%{_includedir}/cgicc
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/cgicc.m4
%{_libdir}/libcgicc.so
%{_libdir}/libcgicc.a
%{_libdir}/libcgicc.la

%Changelog
*Sun Nov 17 2013 Guillermo Ballester <gbvalor@gmail.com> 2.3.10
- Updated to 2.3.10
*Sun Nov 17 2013 Guillermo Ballester <gbvalor@gmail.com> 2.3.8
- Fixed build for RHEL 6
*Sat Sep 01 2012 Guillermo Ballester <gbvalor@gmail.com> 2.3.8
- Fixed spec file for OBS opensuse 12.2
*Thu Jun 18 2009 Guillermo Ballester <gbv@oxixares.com> 2.3.8
- Updated to 2.3.8
- Rescued from project server:http


openSUSE Build Service is sponsored by