From 24351c77aabb1b6a23499fecc60dcc212d8ee4c3 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 25 Oct 2024 16:15:03 +0300 Subject: [PATCH] import libecap-1.0.1-18.el10 --- .gitignore | 1 + .libecap.metadata | 1 + SOURCES/autoconf.h | 57 ++++++++++++++ SPECS/libecap.spec | 182 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 241 insertions(+) create mode 100644 .gitignore create mode 100644 .libecap.metadata create mode 100644 SOURCES/autoconf.h create mode 100644 SPECS/libecap.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..114765c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libecap-1.0.1.tar.gz diff --git a/.libecap.metadata b/.libecap.metadata new file mode 100644 index 0000000..f3ec407 --- /dev/null +++ b/.libecap.metadata @@ -0,0 +1 @@ +89533c2ac77fee7b26f53c20c25a1423ce1498b7 SOURCES/libecap-1.0.1.tar.gz diff --git a/SOURCES/autoconf.h b/SOURCES/autoconf.h new file mode 100644 index 0000000..a41d765 --- /dev/null +++ b/SOURCES/autoconf.h @@ -0,0 +1,57 @@ +/* + * 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 +#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#include "libecap/common/autoconf-ppc64.h" +#else +#include "libecap/common/autoconf-ppc64le.h" +#endif +#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" +#elif defined(__riscv) +#if __riscv_xlen == 64 +#include "libecap/common/autoconf-riscv64.h" +#else +#include "libecap/common/autoconf-riscv32.h" +#endif +#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..3cf2591 --- /dev/null +++ b/SPECS/libecap.spec @@ -0,0 +1,182 @@ +Name: libecap +Version: 1.0.1 +Release: 18%{?dist} +Summary: Squid interface for embedded adaptation modules +License: BSD-2-Clause +URL: http://www.e-cap.org/ +Source0: http://www.measurement-factory.com/tmp/ecap/%{name}-%{version}.tar.gz +Source1: autoconf.h + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: make + +%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 +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the libraries, include files, and other +resources needed for developing libecap applications. + +%prep +%autosetup + +%build +%configure +%make_build + +%install +%make_install +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 -pm644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h + +%ldconfig_scriptlets + +%files +%doc LICENSE CREDITS NOTICE README +%{_libdir}/libecap.so.* + +%files devel +%{_libdir}/libecap.so +%{_libdir}/pkgconfig/libecap.pc +%{_includedir}/libecap + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 1.0.1-18 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 1.0.1-18 +- Bump release for June 2024 mass rebuild + +* Wed Feb 21 2024 Songsong Zhang - 1.0.1-17 +- Add riscv64 support + +* Thu Jan 25 2024 Fedora Release Engineering - 1.0.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.0.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Sep 11 2023 Luboš Uhliarik - 1.0.1-14 +- SPDX migration + +* Thu Jul 20 2023 Fedora Release Engineering - 1.0.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.0.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1.0.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.0.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.0.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.0.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Aug 21 2017 Luboš Uhliarik - 1.0.1-1 +- new version 1.0.1 +- autoconf.h moved from lookaside to dist-git + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 1.0.0-2 +- Rebuilt for GCC 5 C++11 ABI change + +* Fri Mar 13 2015 Pavel Šimerda - 1.0.0-1 +- new version 1.0.0 + +* Sun Aug 17 2014 Fedora Release Engineering - 0.2.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 13 2014 Jaromir Capik - 0.2.0-8 +- Introducing suppport for ppc64le in autoconf.h (#1075180) + +* Mon Sep 16 2013 Michal Luscon - 0.2.0-7 +- Fixed: #831404 - multilib conflicts due to platform dependent autoconf.h + +* Sat Aug 03 2013 Fedora Release Engineering - 0.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* 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