%global debug_package %{nil} %define _build_id_links none %if 0%{?rhel} && 0%{?rhel} < 10 %global gcc_toolset_enable source /opt/rh/gcc-toolset-15/enable %else %global gcc_toolset_enable source /usr/lib/gcc-toolset/15-env.source %endif Name: libarchive Version: 3.8.6 Release: 1%{?dist} Summary: A library for handling streaming archive formats License: BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL URL: https://www.libarchive.org/ Source0: https://libarchive.org/downloads/%{name}-%{version}.tar.gz %if 0%{?rhel} >= 10 BuildRequires: autoconf %else BuildRequires: autoconf271 %endif BuildRequires: automake BuildRequires: bison BuildRequires: bzip2-devel BuildRequires: gcc-toolset-15-gcc BuildRequires: gcc-toolset-15-gcc-plugin-annobin BuildRequires: gcc-toolset-15-gcc-c++ BuildRequires: e2fsprogs-devel BuildRequires: libtool BuildRequires: libzstd-devel BuildRequires: openssl-devel BuildRequires: zlib-devel BuildRequires: make # When configured against OpenSSL 1.1, the RIPEMD-160 support was not detected, # so it was not compiled in previously. With OpenSSL 3.0, it's now detected as # being available, but it only actually works when the legacy provider is # loaded, which breaks the RIPEMD-160 test. This patch disables the RIPEMD-160 # support explicitly. Patch0001: 0001-Drop-rmd160-from-OpenSSL.patch %description Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar variants, several cpio formats, and GNU ar variants. It can also write shar archives and read ISO9660 CDROM images and ZIP archives. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 %build %{gcc_toolset_enable} autoreconf -ifv %configure \ --disable-static \ --disable-bsdtar \ --disable-bsdcat \ --disable-bsdcpio \ --disable-bsdunzip \ --disable-xattr \ --disable-acl \ --without-lz4 \ --with-lzo2 \ --without-lzma \ --without-xml2 \ LT_SYS_LIBRARY_PATH=%_libdir %make_build %install %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %files %doc NEWS README.md %{_libdir}/libarchive.so.13* %exclude %{_mandir} %files devel %{_includedir}/*.h %{_libdir}/libarchive.so %{_libdir}/pkgconfig/libarchive.pc %changelog %autochangelog