69 lines
1.2 KiB
RPMSpec
69 lines
1.2 KiB
RPMSpec
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
|
|
-
|