%global debug_package %{nil} %global __global_cflags %{optflags} -O2 -march=x86-64-v2 -flto=auto -fno-semantic-interposition %global __global_ldflags -flto=auto -fuse-ld=lld -Wl,-O2 -Wl,--as-needed Name: execline Version: 2.9.9.2 Release: 1%{?dist} Summary: A non-interactive shell meant to be used as an interpreter for a text file License: ISC URL: https://skarnet.org/software/execline/ Source0: https://skarnet.org/software/execline/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: lld BuildRequires: chrpath BuildRequires: skalibs-devel >= 2.15.1.0 %description Execline is a (non-interactive) scripting language, like sh - but its syntax is quite different from a traditional shell syntax. The execlineb program is meant to be used as an interpreter for a text file; the other commands are essentially useful inside an execlineb script. %package devel Summary: Execline development files Requires: %{name} = %{version}-%{release} Requires: skalibs-devel >= 2.15.1.0 %description devel Development bits (lib and headers) for the %{name} suite of tools. %prep %autosetup -p1 %build export CFLAGS="%{__global_cflags}" export LDFLAGS="%{__global_ldflags}" ./configure \ --enable-shared \ --disable-allstatic \ --with-sysdeps=%{_libdir}/skalibs/sysdeps \ --with-dynlib=%{_lib64} \ --with-lib=%{_libdir} \ --prefix=/usr \ --libdir=%{_libdir} \ --dynlibdir=%{_libdir} \ --includedir=%{_includedir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --bindir=%{_bindir} \ --cflags="%{__global_cflags}" \ --ldflags="%{__global_ldflags}" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} find %{buildroot}%{_bindir} %{buildroot}%{_libdir} -type f -exec chrpath -d {} \; 2>/dev/null || true %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %doc AUTHORS NEWS README %{_bindir}/* %{_libdir}/libexecline.so.* %files devel %{_includedir}/execline %{_libdir}/libexecline.so %changelog * Tue Aug 25 2026 Inga Vesnova - 2.9.9.2-1 - Applied x86-64-v2, -O2, LTO, and lld optimizations (matching skalibs) - Fixed configure flags to pass CFLAGS/LDFLAGS correctly to skarnet build system - Added chrpath to clean up standard RPATHs and prevent rpmbuild failures - Added explicit BuildRequires and Requires for skalibs-devel