diff --git a/harec.changes b/harec.changes index 443b179..5f1e6db 100644 --- a/harec.changes +++ b/harec.changes @@ -10,6 +10,8 @@ Sat Jan 20 07:21:00 UTC 2024 - Soc Virnyl Estela diff --git a/harec.spec b/harec.spec index 386826a..64ab1f2 100644 --- a/harec.spec +++ b/harec.spec @@ -36,28 +36,40 @@ POSIX-compatible systems. %prep %setup -q -mkdir -p build/ %build -export CFLAGS="%optflags" +cat > config.mk <<-SH +PREFIX = %{_prefix} +BINDIR = %{_bindir} -# Harec does not use autoconf -pushd build/ -../configure -make %{?_smp_mflags} VERSION="%{version}" -popd +PLATFORM = linux +ARCH = %{_arch} +HARECFLAGS = +QBEFLAGS = +ASFLAGS = +LDLINKFLAGS = --gc-sections -z noexecstack +CFLAGS = %{optflags} +LDFLAGS = %{build_ldflags} + +CC = cc +AS = as +LD = ld +QBE = qbe + +HARECACHE = .cache +BINOUT = .bin + +DEFAULT_TARGET = %{_arch} +VERSION = %{version} +SH + +make %install -export CFLAGS="%optflags" -pushd build/ -make %{?_smp_mflags} VERSION="%{version}" DESTDIR="%{buildroot}" BINDIR="%{_bindir}" install -popd +make DESTDIR=%{buildroot} install %check -export CFLAGS="%optflags" -cd build -../configure -make %{?_smp_mflags} check +make check %files %{_bindir}/%{name}