input/libtasn1.spec
raw · 3.4 KiB
%bcond_with 32bit
Name: libtasn1
Version: 4.20.0
Release: 1%{?dist}
Summary: Library for working with ASN.1
Summary(ru): Библиотека для работы с ASN.1
License: GPL-3.0-or-later AND LGPL-2.1-or-later
URL: https://www.gnu.org/software/libtasn1/
Source0: https://ftp.gnu.org/gnu/libtasn1/%{name}-%{version}.tar.gz
# CVE-2025-13151:
# Stack-based buffer overflow in asn1_expand_octet_string().
# Minimal backport from upstream commit d276cc495a2a32b182c3c39851f1ba58f2d9f9b8.
Patch0: libtasn1-4.20.0-CVE-2025-13151.patch
Packager: NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor: NiceSOFT
Distribution: NiceOS.Core
BugURL: https://bugs.niceos.ru/
VCS: https://specs.niceos.ru/rmps/%{name}
%if %{with 32bit}
BuildRequires: lib32-gcc
%endif
%description
libtasn1 is a library providing functions for parsing, encoding, and decoding
data structures defined in ASN.1. It is used by various security and
cryptographic applications and protocols for authentication and secure data
exchange.
%description -l ru
libtasn1 предоставляет функции для разбора, кодирования и декодирования данных,
описанных в ASN.1. Библиотека используется в различных криптографических
приложениях и протоколах для обеспечения безопасности и аутентификации.
%package devel
Summary: Development files for libtasn1 library
Summary(ru): Файлы разработки для библиотеки libtasn1
Requires: %{name} = %{version}-%{release}
Provides: pkgconfig(libtasn1)
%description devel
This subpackage contains headers and development files needed to build
applications against libtasn1.
%description -l ru devel
Подпакет devel содержит файлы для разработки, включая заголовочные файлы и
библиотеки, необходимые для компиляции программ, использующих libtasn1.
%if %{with 32bit}
%package_32bit
%endif
%prep
%autosetup -p1
%build
mkdir -pv build64
pushd build64
%configure64 --disable-static
%make_build
popd
%if %{with 32bit}
mkdir -pv build32
pushd build32
%configure32 --disable-static
%make_build
popd
%endif
%check
pushd build64
%make_build check
popd
%install
%make64_install
%if %{with 32bit}
%make32_install
%endif
rm -rf %{buildroot}%{_infodir}/*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%attr(0755,root,root) %{_libdir}/*.so.*
%{_mandir}/man1/*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*
%if %{with 32bit}
%files_32bit
# RU: 32-bit подпакет формируется макросами NiceOS; список файлов оставлен как в исходном spec.
# EN: The 32-bit subpackage contents are handled by NiceOS macros; the file list is kept as in the original spec.
%endif
%changelog
* Sun May 24 2026 Stanislav Belikov <niceos@ncsgp.ru> - 4.20.0-2
- CVE-2025-13151
* Wed Jan 07 2026 NiceOS Team <niceos@ncsgp.ru> - 4.20.0-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)