public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/4th] rawhide: Update to 3.64.2
@ 2026-11-04 23:17 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-04 23:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/4th
            Branch : rawhide
            Commit : a57b671b3ce7d82386dd4935a136d317bf432b31
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-23T14:56:11-03:00
            Stats  : +33/-11 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/4th/c/a57b671b3ce7d82386dd4935a136d317bf432b31?branch=rawhide

            Log:
            Update to 3.64.2

Resolves: rhbz#2070770

---
diff --git a/.gitignore b/.gitignore
index 4e09cf5..8d4339a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/4th-3.62.5-unix.tar.gz
+/4th-3.64.2-unix.tar.gz

diff --git a/4th.spec b/4th.spec
index 5e9f8c1..09d6401 100644
--- a/4th.spec
+++ b/4th.spec
@@ -1,14 +1,15 @@
 Name:           4th
-Version:        3.62.5
+Version:        3.64.2
 Release:        %autorelease
 Summary:        A Forth compiler
 
-# Automatically converted from old format: GPLv3+ - review is highly recommended.
-License:        GPL-3.0-or-later
+License:        GPL-3.0-or-later AND LGPL-3.0-or-later
 URL:            https://thebeez.home.xs4all.nl/4tH/
 Source0:        https://downloads.sourceforge.net/project/forth-4th/%{name}-%{version}/%{name}-%{version}-unix.tar.gz
 
-BuildRequires:  gcc make
+BuildRequires:  gcc
+BuildRequires:  make
+BuildRequires:  sed
 
 %description
 4tH is basic framework for creating application specific scripting
@@ -26,14 +27,21 @@ library.
 
 
 %prep
-%setup -q -n %{name}-%{version}-unix
+%setup -q -n %{name}-%{version}
+%if %{__isa_bits} == 64
+cp -p sources/include64/*.h sources/
+%else
+cp -p sources/include32/*.h sources/
+%endif
 
 
 %build
+%set_build_flags
+MYCFLAGS="-DUNIX -fsigned-char $CFLAGS $LDFLAGS -fPIC"
 LD_LIBRARY_PATH="$PWD/sources/" \
-make %{?_smp_mflags} -C sources \
+%make_build -C sources \
         STATIC= SHARED=1 \
-        CFLAGS="-DUNIX -fsigned-char %{optflags} -fPIC"
+        CFLAGS="$MYCFLAGS"
 
 
 %install
@@ -44,15 +52,28 @@ mkdir -p \
         %{buildroot}%{_mandir} \
         %{buildroot}%{_docdir}/%{name}
 
+%set_build_flags
+MYCFLAGS="-DUNIX -fsigned-char $CFLAGS $LDFLAGS -fPIC"
 LD_LIBRARY_PATH="$PWD/sources/" \
 %make_install -C sources \
         STATIC= SHARED=1 \
+        CFLAGS="$MYCFLAGS" \
         LIBRARIES=%{buildroot}%{_libdir} \
         INCLUDES=%{buildroot}%{_includedir} \
         BINARIES=%{buildroot}%{_bindir} \
         MANDIR=%{buildroot}%{_mandir} \
         DOCDIR=%{buildroot}%{_docdir}
-cp -ap sources/include/*.h %{buildroot}%{_includedir}/%{name}/
+install -Dpm 0644 sources/4th.h %{buildroot}%{_includedir}/%{name}/4th.h
+
+
+%check
+LD_LIBRARY_PATH="$PWD/sources/" \
+sources/4th cxq 4th/demo/hello.4th
+
+# Run VM test
+cd 4th
+LD_LIBRARY_PATH="../sources/" \
+../sources/4th cxq vm-test.4th
 
 
 %files
@@ -61,7 +82,8 @@ cp -ap sources/include/*.h %{buildroot}%{_includedir}/%{name}/
 %{_bindir}/pp4th
 %{_bindir}/4th
 %{_mandir}/man1/4th.1*
-%doc %{_docdir}/%{name}
+%{_mandir}/man1/pp4th.1*
+%doc %{_docdir}/%{name}/4tHmanual.pdf
 %doc README
 %license COPYING
 

diff --git a/sources b/sources
index 37bf4f5..61c7447 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (4th-3.62.5-unix.tar.gz) = 14e96829d3cbf01661f2d994ed60f708e49b6273c5e148afc69655203585dabe6489e3bfc5f2af6f571d43db45c2ba7c9f85147fdd044bca9c237d216adc88ee
+SHA512 (4th-3.64.2-unix.tar.gz) = 214b369bbec7e686d6453f63b54de74ef6b3552eca0a189f6168362c707917a39192415be6b6e2e41462ad3c38daa16dc25314581d37aa87dc29c3b43ab0aafd

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04 23:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 23:17 [rpms/4th] rawhide: Update to 3.64.2 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox