From 128c8510fb8e99183404b0e3c322a6ef14d09794 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 17:21:28 +0000 Subject: [PATCH] import UBI libecap-1.0.1-19.el10 --- .gitignore | 2 +- .libecap.metadata | 1 - SOURCES/autoconf.h => autoconf.h | 6 +++ SPECS/libecap.spec => libecap.spec | 79 +++++++++++++++++++++++++----- sources | 1 + 5 files changed, 74 insertions(+), 15 deletions(-) delete mode 100644 .libecap.metadata rename SOURCES/autoconf.h => autoconf.h (91%) rename SPECS/libecap.spec => libecap.spec (62%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index 114765c..4faa17d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/libecap-1.0.1.tar.gz +libecap-1.0.1.tar.gz diff --git a/.libecap.metadata b/.libecap.metadata deleted file mode 100644 index f3ec407..0000000 --- a/.libecap.metadata +++ /dev/null @@ -1 +0,0 @@ -89533c2ac77fee7b26f53c20c25a1423ce1498b7 SOURCES/libecap-1.0.1.tar.gz diff --git a/SOURCES/autoconf.h b/autoconf.h similarity index 91% rename from SOURCES/autoconf.h rename to autoconf.h index aa5de1c..a41d765 100644 --- a/SOURCES/autoconf.h +++ b/autoconf.h @@ -44,6 +44,12 @@ #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 diff --git a/SPECS/libecap.spec b/libecap.spec similarity index 62% rename from SPECS/libecap.spec rename to libecap.spec index c9963e9..6787d01 100644 --- a/SPECS/libecap.spec +++ b/libecap.spec @@ -1,13 +1,16 @@ Name: libecap Version: 1.0.1 -Release: 2%{?dist} +Release: 19%{?dist} Summary: Squid interface for embedded adaptation modules -License: BSD -Group: Development/Libraries +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 @@ -27,32 +30,30 @@ 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} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the libraries, include files, and other resources needed for developing libecap applications. %prep -%setup -q +%autosetup %build %configure -make %{?_smp_mflags} +%make_build %install -make install DESTDIR=%{buildroot} +%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 -m644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h +install -pm644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files %doc LICENSE CREDITS NOTICE README @@ -64,8 +65,60 @@ install -m644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h %{_includedir}/libecap %changelog -* Fri Aug 23 2019 Lubos Uhliarik - 1.0.1-2 -- Resolves: #1695587 - Ensure modular RPM upgrade path +* Tue Oct 29 2024 Troy Dawson - 1.0.1-19 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..3dbee14 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libecap-1.0.1.tar.gz) = 0054ad11b3f558d7c623060a69207a1b8e679803cabdf1a2bce4b04335d71c016eec770fc9d2cbf3d0a93502c255cb528305f9f8e6df4e095fcb980667045919