File c-icap-modules.spec of Package c-icap-modules

#
# spec file for package c-icap-modules
#
# Copyright 2013-2014 by Lars Vogdt
#
# 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.



Name:           c-icap-modules
Version:        0.3.2
Release:        1
License:        GPL-2.0+
Summary:        ICAP server modules
Url:            http://c-icap.sourceforge.net/
Group:          Development/Libraries/C and C++
Source:         http://switch.dl.sourceforge.net/sourceforge/c-icap/c_icap_modules-%{version}.tar.gz
Recommends:     c-icap-mod-virus-scan
Recommends:     c-icap-mod-urlcheck
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  c-icap-devel
BuildRequires:  clamav
# clamav needs openssl devel
BuildRequires:  openssl-devel
BuildRequires:  zlib-devel
Buildrequires:  db-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
This dummy package recommends module and subsystem packages for the ICAP server.

c-icap is an implementation of an ICAP server. It can be used with HTTP proxies
that support the ICAP protocol to implement content adaptation and filtering
services.

Most of the commercial HTTP proxies must support the ICAP protocol. The open
source Squid 3.x proxy server supports it.

%package -n c-icap-mod-virus-scan
Summary:        Antivirus Service for c-icap
Group:          Development/Libraries/C and C++
Requires:       c-icap-mod-clamd

%description -n c-icap-mod-virus-scan
This is a generic antivirus Service for c-icap to do scanning. 

It is distributed with c-icap and written by the same author.

%package -n c-icap-mod-clamd
Summary:        Antivirus Service for c-icap with clamav
Group:          Development/Libraries/C and C++
Requires:       c-icap
Requires:       clamav

%description -n c-icap-mod-clamd
This is an antivirus Service for c-icap which uses libclamav or clamd to do
scanning.

It is distributed with c-icap and written by the same author.

%package -n c-icap-mod-urlcheck
Summary:        URL Check Service for c-icap
Group:          Development/Libraries/C and C++
Requires:       c-icap

%description -n c-icap-mod-urlcheck
This is an URL Check Service for c-icap. 

It is distributed with c-icap and written by the same author.

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

%build
export CFLAGS="%{optflags} -D_GNU_SOURCE"
%configure
%{__make} %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_sysconfdir}/c-icap
%makeinstall INSTALL_ROOT=%{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc COPYING SPONSORS

%files -n c-icap-mod-urlcheck
%defattr(0644,root,root,0755)
%dir %{_datadir}/c_icap/templates/srv_url_check
%dir %{_datadir}/c_icap/templates/srv_url_check/en
%config %{_sysconfdir}/c-icap/srv_url_check.conf.default
%config(noreplace) %{_sysconfdir}/c-icap/srv_url_check.conf
%config(noreplace) %{_datadir}/c_icap/templates/srv_url_check/en/*
%{_prefix}/lib/c_icap/srv_url_check*.so
%exclude %{_prefix}/lib/c_icap/srv_url_check*.la
%attr(0755,root,root) %{_bindir}/c-icap-mods-sguardDB
%{_mandir}/man8/c-icap-mods-sguardDB.8*

%files -n c-icap-mod-virus-scan
%defattr(0644,root,root,0755)
%dir %{_datadir}/c_icap/templates/virus_scan
%dir %{_datadir}/c_icap/templates/virus_scan/en
%config %{_sysconfdir}/c-icap/virus_scan.conf.default
%config(noreplace) %{_sysconfdir}/c-icap/virus_scan.conf
%config(noreplace) %{_datadir}/c_icap/templates/virus_scan/en/*
%{_prefix}/lib/c_icap/virus_scan*.so
%exclude %{_prefix}/lib/c_icap/virus_scan*.la

%files -n c-icap-mod-clamd
%defattr(0644,root,root,0755)
%config(noreplace) %{_sysconfdir}/c-icap/clamav_mod.conf
%config %{_sysconfdir}/c-icap/clamav_mod.conf.default
%config(noreplace) %{_sysconfdir}/c-icap/clamd_mod.conf
%config %{_sysconfdir}/c-icap/clamd_mod.conf.default
%{_prefix}/lib/c_icap/clamd_mod*.so
%exclude %{_prefix}/lib/c_icap/clamd_mod*.la
%{_prefix}/lib/c_icap/clamav_mod.la
%{_prefix}/lib/c_icap/clamav_mod.so

%changelog
openSUSE Build Service is sponsored by