From d258577ca8b858f513ec365f29705afcae4056e9 Mon Sep 17 00:00:00 2001 From: spike Date: Fri, 13 May 2011 14:04:16 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + libecap.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 libecap.spec diff --git a/.gitignore b/.gitignore index e69de29..be6befb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libecap-0.0.3.tar.gz diff --git a/libecap.spec b/libecap.spec new file mode 100644 index 0000000..088e0b2 --- /dev/null +++ b/libecap.spec @@ -0,0 +1,67 @@ +Name: libecap +Version: 0.0.3 +Release: 2%{?dist} +Summary: Squid interface for embedded adaptation modules +License: BSD +Group: Development/Libraries +URL: http://www.e-cap.org/ +Source0: http://www.measurement-factory.com/tmp/ecap/%{name}-%{version}.tar.gz + +%description +eCAP is a software interface that allows a network application, such as an +HTTP proxy or an ICAP server, to outsource content analysis and adaptation to +a loadable module. For each applicable protocol message being processed, an +eCAP-enabled host application supplies the message details to the adaptation +module and gets back an adapted message, a "not interested" response, or a +"block this message now!" instruction. These exchanges often include message +bodies. + +The adaptation module can also exchange meta-information with the host +application to supply additional details such as configuration options, a +reason behind the decision to ignore a message, or a detected virus name. + +If you are familiar with the ICAP protocol (RFC 3507), then you may think of +eCAP as an "embedded ICAP", where network interactions with an ICAP server are +replaced with function calls to an adaptation module. + +%package devel +Summary: Libraries and header files for the libecap library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the libraries, include files, and other +resources needed for developing libecap applications. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_libdir}/libecap.a +rm -f %{buildroot}%{_libdir}/libecap.la + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc LICENSE CREDITS NOTICE README +%{_libdir}/libecap.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libecap.so +%{_includedir}/libecap + +%changelog +* Tue May 10 2011 Chris Spike 0.0.3-2 +- Added LICENSE to doc +- Fixed release tag (missing dist) + +* Wed Apr 27 2011 Chris Spike 0.0.3-1 +- Initial version of the package diff --git a/sources b/sources index e69de29..186a166 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +62fbac7b84fd50978e6df1c3439ef878 libecap-0.0.3.tar.gz