From 8c986d569df2fe94c40525045e52ad57f7eabaca Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Aug 20 2013 13:31:37 +0000 Subject: import libecap-0.2.0-6.el7.src.rpm --- diff --git a/.libecap.metadata b/.libecap.metadata new file mode 100644 index 0000000..728597c --- /dev/null +++ b/.libecap.metadata @@ -0,0 +1 @@ +aa32d084e062668376194f2caae88ed3ce271967 SOURCES/libecap-0.2.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/autoconf.h b/SOURCES/autoconf.h new file mode 100644 index 0000000..d3a8258 --- /dev/null +++ b/SOURCES/autoconf.h @@ -0,0 +1,46 @@ +/* + * This autoconf.h is a wrapper include file for the original libecap/common/autoconf.h, + * which has been renamed to autoconf-.h. There are conflicts for the + * original autoconf.h on multilib systems, which result from arch-specific + * configuration options. Please do not use the arch-specific file directly. + */ + +/* + * This wrapped is addpated from SDL's one: + * http://pkgs.fedoraproject.org/cgit/SDL.git/tree/SDL_config.h + */ + +#ifdef libecap_autoconf_wrapper_h +#error "libecap_autoconf_wrapper_h should not be defined!" +#endif +#define libecap_autoconf_wrapper_h + +#if defined(__i386__) +#include "libecap/common/autoconf-i386.h" +#elif defined(__ia64__) +#include "libecap/common/autoconf-ia64.h" +#elif defined(__powerpc64__) +#include "libecap/common/autoconf-ppc64.h" +#elif defined(__powerpc__) +#include "libecap/common/autoconf-ppc.h" +#elif defined(__s390x__) +#include "libecap/common/autoconf-s390x.h" +#elif defined(__s390__) +#include "libecap/common/autoconf-s390.h" +#elif defined(__x86_64__) +#include "libecap/common/autoconf-x86_64.h" +#elif defined(__arm__) +#include "libecap/common/autoconf-arm.h" +#elif defined(__alpha__) +#include "libecap/common/autoconf-alpha.h" +#elif defined(__sparc__) && defined (__arch64__) +#include "libecap/common/autoconf-sparc64.h" +#elif defined(__sparc__) +#include "libecap/common/autoconf-sparc.h" +#elif defined(__aarch64__) +#include "libecap/common/autoconf-aarch64.h" +#else +#error "The libecap-devel package is not usable with the architecture." +#endif + +#undef libecap_autoconf_wrapper_h diff --git a/SPECS/libecap.spec b/SPECS/libecap.spec new file mode 100644 index 0000000..7cbd8da --- /dev/null +++ b/SPECS/libecap.spec @@ -0,0 +1,91 @@ +Name: libecap +Version: 0.2.0 +Release: 6%{?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 +Source1: autoconf.h + +%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 + +# Rename libecap/common/autoconf.h to libecap/common/autoconf-.h to avoid file conflicts on +# multilib systems and install autoconf.h wrapper +mv %{buildroot}%{_includedir}/%{name}/common/autoconf.h %{buildroot}%{_includedir}/%{name}/common/autoconf-%{_arch}.h +install -m644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc LICENSE CREDITS NOTICE README +%{_libdir}/libecap.so.* + +%files devel +%{_libdir}/libecap.so +%{_libdir}/pkgconfig/libecap.pc +%{_includedir}/libecap + +%changelog +* Tue Aug 20 2013 Michal Luscon - 0.2.0-6 +- Fixed: #881193 - multilib conflicts due to platform dependent autoconf.h + +* Thu Feb 14 2013 Fedora Release Engineering - 0.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Dec 12 2011 Chris Spike 0.2.0-2 +- Added pkgconfig file to -devel + +* Mon Jul 11 2011 Chris Spike 0.2.0-1 +- Updated to 0.2.0 + +* 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