da87cd
Name:       libecap
da87cd
Version:    0.2.0
da87cd
Release:    9%{?dist}
da87cd
Summary:    Squid interface for embedded adaptation modules
da87cd
License:    BSD
da87cd
Group:      Development/Libraries
da87cd
URL:        http://www.e-cap.org/
da87cd
Source0:    http://www.measurement-factory.com/tmp/ecap/%{name}-%{version}.tar.gz
da87cd
Source1:    autoconf.h
da87cd
da87cd
%description
da87cd
eCAP is a software interface that allows a network application, such as an 
da87cd
HTTP proxy or an ICAP server, to outsource content analysis and adaptation to 
da87cd
a loadable module. For each applicable protocol message being processed, an 
da87cd
eCAP-enabled host application supplies the message details to the adaptation 
da87cd
module and gets back an adapted message, a "not interested" response, or a 
da87cd
"block this message now!" instruction. These exchanges often include message 
da87cd
bodies.
da87cd
da87cd
The adaptation module can also exchange meta-information with the host 
da87cd
application to supply additional details such as configuration options, a 
da87cd
reason behind the decision to ignore a message, or a detected virus name.
da87cd
da87cd
If you are familiar with the ICAP protocol (RFC 3507), then you may think of 
da87cd
eCAP as an "embedded ICAP", where network interactions with an ICAP server are 
da87cd
replaced with function calls to an adaptation module.
da87cd
da87cd
%package devel
da87cd
Summary:    Libraries and header files for the libecap library
da87cd
Group:      Development/Libraries
da87cd
Requires:   %{name} = %{version}-%{release}
da87cd
da87cd
%description devel
da87cd
This package provides the libraries, include files, and other
da87cd
resources needed for developing libecap applications.
da87cd
da87cd
%prep
da87cd
%setup -q
da87cd
da87cd
%build
da87cd
%configure
da87cd
make %{?_smp_mflags}
da87cd
da87cd
%install
da87cd
make install DESTDIR=%{buildroot}
da87cd
rm -f %{buildroot}%{_libdir}/libecap.a
da87cd
rm -f %{buildroot}%{_libdir}/libecap.la
da87cd
da87cd
# Rename libecap/common/autoconf.h to libecap/common/autoconf-<arch>.h to avoid file conflicts on
da87cd
# multilib systems and install autoconf.h wrapper
da87cd
mv %{buildroot}%{_includedir}/%{name}/common/autoconf.h %{buildroot}%{_includedir}/%{name}/common/autoconf-%{_arch}.h
da87cd
install -m644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h
da87cd
da87cd
da87cd
%post   -p /sbin/ldconfig
da87cd
%postun -p /sbin/ldconfig
da87cd
da87cd
%files
da87cd
%doc LICENSE CREDITS NOTICE README
da87cd
%{_libdir}/libecap.so.*
da87cd
da87cd
%files devel
da87cd
%{_libdir}/libecap.so
da87cd
%{_libdir}/pkgconfig/libecap.pc
da87cd
%{_includedir}/libecap
da87cd
da87cd
%changelog
da87cd
* Mon Aug 11 2014 Michal Luscon <mluscon@redhat.com> - 0.2.0-9
da87cd
- Fixed: #1125685 - ppc64le architecture
da87cd
da87cd
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.0-8
da87cd
- Mass rebuild 2014-01-24
da87cd
da87cd
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.0-7
da87cd
- Mass rebuild 2013-12-27
da87cd
da87cd
* Tue Aug 20 2013 Michal Luscon <mluscon@redhat.com> - 0.2.0-6
da87cd
- Fixed: #881193 - multilib conflicts due to platform dependent autoconf.h
da87cd
da87cd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-5
da87cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
da87cd
da87cd
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-4
da87cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
da87cd
da87cd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
da87cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
da87cd
da87cd
* Mon Dec 12 2011 Chris Spike <spike@fedoraproject.org> 0.2.0-2
da87cd
- Added pkgconfig file to -devel
da87cd
da87cd
* Mon Jul 11 2011 Chris Spike <spike@fedoraproject.org> 0.2.0-1
da87cd
- Updated to 0.2.0
da87cd
da87cd
* Tue May 10 2011 Chris Spike <spike@fedoraproject.org> 0.0.3-2
da87cd
- Added LICENSE to doc
da87cd
- Fixed release tag (missing dist)
da87cd
da87cd
* Wed Apr 27 2011 Chris Spike <spike@fedoraproject.org> 0.0.3-1
da87cd
- Initial version of the package