File zoo-libcgic.spec of Package zoo-libcgic

#
# spec file for package libcgic
#

# norootforbuild

Name:           zoo-libcgic
Version:        2.0.6
Release:        1
Summary:        Cgic is an ANSI-C library for the creation of CGI-based World Wide Web applications
Group:          Development/Libraries/C and C++
License:        CGIC
URL:            http://www.boutell.com/cgic/
Source0:        libcgic-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  gcc-c++ gcc
BuildRequires: 	fdupes 
BuildRequires:	FastCGI-devel

%description
Cgic is an ANSI-C library for the creation of CGI-based World Wide Web applications

%package        devel
License:        CGIC
Summary:        Development files for libgcic
Group:          Development/Libraries/C and C++

%description    devel
The libcgic-devel package contains libraries and header files for
developing applications that use libcgic

%prep
%setup -q -n libcgic-%{version}

%build
%if "%{_lib}" == "lib64"
  mv Makefile.64 Makefile
%endif
make

%install
mkdir %{buildroot}/usr
mkdir %{buildroot}/usr/include
mkdir %{buildroot}/usr/%{_lib}
cp libcgic.a %{buildroot}/usr/%{_lib}/
cp cgic.h %{buildroot}/usr/include/

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files devel
%defattr(-,root,root,-)
%{_includedir}/cgic.h
%{_libdir}/lib*.a

%changelog
openSUSE Build Service is sponsored by