Группа :: Система/Библиотеки
Пакет: libarchive
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define sover 13
%define libarchive libarchive%sover
Name: libarchive
Version: 3.6.1
Release: alt2
Group: System/Libraries
Summary: A library for handling streaming archive formats
License: BSD
Url: http://www.libarchive.org
# https://github.com/libarchive/libarchive.git
Source: %name-%version.tar
# SuSE
# ALT
Patch100: alt-disable-lzma-mt.patch
Patch101: CVE-2022-36227-handle-a-calloc-returning-NULL.patch
BuildRequires: bzlib-devel glibc-devel libacl-devel libattr-devel libe2fs-devel liblzma-devel liblzo2-devel libssl-devel libxml2-devel zlib-devel
BuildRequires: libzstd-devel
BuildRequires: libnettle-devel
%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 both BSD and GNU ar variants. It can also write shar archives and
read ISO9660 CDROM images and ZIP archives.
%package -n %libarchive
Summary: Full-featured tar replacement built on libarchive
Group: System/Libraries
Provides: %name = %EVR
%description -n %libarchive
The bsdtar program is a full-featured tar replacement built on libarchive.
%package -n bsdtar
Summary: Full-featured tar replacement built on libarchive
Group: Archiving/Backup
Requires: %libarchive = %EVR
%description -n bsdtar
The bsdtar program is a full-featured tar replacement built on libarchive.
%package -n bsdcpio
Summary: Full-featured cpio replacement built on libarchive
Group: Archiving/Backup
Requires: %libarchive = %EVR
%description -n bsdcpio
The bsdcpio program is a full-featured cpio replacement built on libarchive.
%package -n bsdcat
Summary: Full-featured cat replacement built on libarchive
Group: Archiving/Backup
Requires: %libarchive = %EVR
%description -n bsdcat
The bsdcpio program is a full-featured cat replacement built on libarchive.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %libarchive = %EVR
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup
%patch100 -p1
%patch101 -p1
%build
%autoreconf
%configure \
--disable-rpath \
--disable-static \
--enable-shared \
--enable-bsdtar=shared \
--enable-bsdcpio=shared \
--with-lzma \
--without-lzmadec
%make_build
%install
%makeinstall_std
%files -n %libarchive
%doc README* NEWS COPYING
%_libdir/*.so.%sover
%_libdir/*.so.%sover.*
%files -n bsdtar
%_bindir/bsdtar
%_man1dir/bsdtar*
%files -n bsdcpio
%_bindir/bsdcpio
%_man1dir/bsdcpio*
%files -n bsdcat
%_bindir/bsdcat
%_man1dir/bsdcat*
%files devel
%_includedir/*
%_man3dir/*
%_man5dir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%changelog
…
Полный changelog можно просмотреть здесь
%define sover 13
%define libarchive libarchive%sover
Name: libarchive
Version: 3.6.1
Release: alt2
Group: System/Libraries
Summary: A library for handling streaming archive formats
License: BSD
Url: http://www.libarchive.org
# https://github.com/libarchive/libarchive.git
Source: %name-%version.tar
# SuSE
# ALT
Patch100: alt-disable-lzma-mt.patch
Patch101: CVE-2022-36227-handle-a-calloc-returning-NULL.patch
BuildRequires: bzlib-devel glibc-devel libacl-devel libattr-devel libe2fs-devel liblzma-devel liblzo2-devel libssl-devel libxml2-devel zlib-devel
BuildRequires: libzstd-devel
BuildRequires: libnettle-devel
%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 both BSD and GNU ar variants. It can also write shar archives and
read ISO9660 CDROM images and ZIP archives.
%package -n %libarchive
Summary: Full-featured tar replacement built on libarchive
Group: System/Libraries
Provides: %name = %EVR
%description -n %libarchive
The bsdtar program is a full-featured tar replacement built on libarchive.
%package -n bsdtar
Summary: Full-featured tar replacement built on libarchive
Group: Archiving/Backup
Requires: %libarchive = %EVR
%description -n bsdtar
The bsdtar program is a full-featured tar replacement built on libarchive.
%package -n bsdcpio
Summary: Full-featured cpio replacement built on libarchive
Group: Archiving/Backup
Requires: %libarchive = %EVR
%description -n bsdcpio
The bsdcpio program is a full-featured cpio replacement built on libarchive.
%package -n bsdcat
Summary: Full-featured cat replacement built on libarchive
Group: Archiving/Backup
Requires: %libarchive = %EVR
%description -n bsdcat
The bsdcpio program is a full-featured cat replacement built on libarchive.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %libarchive = %EVR
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup
%patch100 -p1
%patch101 -p1
%build
%autoreconf
%configure \
--disable-rpath \
--disable-static \
--enable-shared \
--enable-bsdtar=shared \
--enable-bsdcpio=shared \
--with-lzma \
--without-lzmadec
%make_build
%install
%makeinstall_std
%files -n %libarchive
%doc README* NEWS COPYING
%_libdir/*.so.%sover
%_libdir/*.so.%sover.*
%files -n bsdtar
%_bindir/bsdtar
%_man1dir/bsdtar*
%files -n bsdcpio
%_bindir/bsdcpio
%_man1dir/bsdcpio*
%files -n bsdcat
%_bindir/bsdcat
%_man1dir/bsdcat*
%files devel
%_includedir/*
%_man3dir/*
%_man5dir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%changelog
…
Полный changelog можно просмотреть здесь