From 87c014521deebfde1f152fea7697308d3f185c5a Mon Sep 17 00:00:00 2001 From: Dmitrii Tochanskii Date: Tue, 12 Aug 2025 17:01:22 +0000 Subject: [PATCH] glibc 2.42 --- glibc.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 glibc.spec diff --git a/glibc.spec b/glibc.spec new file mode 100644 index 0000000..9e02cc1 --- /dev/null +++ b/glibc.spec @@ -0,0 +1,69 @@ +Name: glibc +Version: 2.42 +Release: 1%{?dist} +Summary: The GNU libc libraries + +License: LGPL-2.1+ BSD HPND ISC inner-net rc PCRE +URL: https://www.gnu.org/software/libc/ +Source0: https://ftpmirror.gnu.org/gnu/glibc/glibc-%{version}.tar.gz + +BuildRequires: gcc bison m4 +Requires: bash + +%global _configure ../configure +%define _program_prefix /usr + +%description + + +%prep +%autosetup + + +%build +mkdir build +export CFLAGS="-O2 -pipe -fstack-protector-strong -m64 -march=x86-64 -mtune=generic" +cd build +%configure \ + --enable-bind-now \ + --enable-stack-protector=strong \ + --disable-systemtap \ + --disable-multi-arch \ + --disable-werror \ + --disable-profile \ + --without-selinux \ + --disable-crypt \ + --disable-build-nscd \ + --disable-nscd \ + --disable-sframe \ + --enable-kernel=6.12.0 \ + libc_cv_slibdir=%{_libdir} + +%make_build + + +%install +cd build +%make_install +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + + +%{?ldconfig_scriptlets} + + +%files +#%license add-license-file-here +#%doc add-main-docs-here +%{_sysconfdir}/* +%{_libexecdir}/* +%{_libdir}/* +%{_bindir}/* +%{_datarootdir}/* +%{_prefix}/include/* +/usr/sbin/* +/sbin/* +/var/db/Makefile + +%changelog +* Tue Aug 12 2025 Super User +-