public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/newlisp] rawhide: spec cleanup and modernization, respect build flags
@ 2026-06-10 0:10 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-10 0:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/newlisp
Branch : rawhide
Commit : 21c1d5b986239769a02efa8855edff1b6833bd4f
Author : Filipe Rosset <filiperosset@fedoraproject.org>
Date : 2026-06-09T21:01:42-03:00
Stats : +37/-23 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/newlisp/c/21c1d5b986239769a02efa8855edff1b6833bd4f?branch=rawhide
Log:
spec cleanup and modernization, respect build flags
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index 796be7c..4a5c129 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1 @@
-/newlisp-10.3.2.tgz
-/newlisp-10.3.3.tgz
-/newlisp-10.3.5.tgz
-/newlisp-10.4.0.tgz
-/newlisp-10.4.2.tgz
-/newlisp-10.4.3.tgz
-/newlisp-10.5.4.tgz
-/newlisp-10.6.0.tgz
-/newlisp-10.7.1.tgz
-/newlisp-10.7.5.tgz
+/newlisp-*.tgz
diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..b52c2e9
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,19 @@
+# See the documentation for more information:
+# https://packit.dev/docs/configuration/
+
+specfile_path: newlisp.spec
+
+copy_upstream_release_description: false
+
+jobs:
+ - job: pull_from_upstream
+ trigger: release
+ dist_git_branches:
+ - fedora-rawhide
+
+ - job: koji_build
+ trigger: commit
+ allowed_committers: ['packit','all_admins']
+ dist_git_branches:
+ - fedora-rawhide
+
diff --git a/newlisp-0000-Support-64bit.patch b/newlisp-0000-Support-64bit.patch
index 0055460..b420303 100644
--- a/newlisp-0000-Support-64bit.patch
+++ b/newlisp-0000-Support-64bit.patch
@@ -1,5 +1,5 @@
---- modules/gsl.lsp-orig 2017-01-25 14:42:21.000000000 -0200
-+++ modules/gsl.lsp 2017-04-22 04:27:14.236572746 -0300
+--- a/modules/gsl.lsp 2017-01-25 14:42:21.000000000 -0200
++++ b/modules/gsl.lsp 2017-04-22 04:27:14.236572746 -0300
@@ -170,6 +170,7 @@
(= ostype "Windows") "libgsl-0.dll" ; 32-bit or 64-bit
(= ostype "OSX") "libgsl.dylib" ; 32-bit or 64-bit
diff --git a/newlisp.spec b/newlisp.spec
index 2166d35..274c6b0 100644
--- a/newlisp.spec
+++ b/newlisp.spec
@@ -8,12 +8,11 @@ Source0: http://www.newlisp.org/downloads/%{name}-%{version}.tgz
Patch0: %{name}-0000-Support-64bit.patch
Patch1: %{name}-0003-Don-t-strip-the-resulting-binary.patch
BuildRequires: gcc
-BuildRequires: libffi-devel
BuildRequires: make
BuildRequires: readline-devel
# This is required for the modules for newLisp
-Requires: openssl-devel%{?_isa} gmp-devel%{_isa} gsl-devel%{_isa}
-Requires: mariadb-connector-c-devel%{?_isa} libpq-devel%{_isa}
+Requires: openssl-devel%{?_isa} gmp-devel%{?_isa} gsl-devel%{?_isa}
+Requires: mariadb-connector-c-devel%{?_isa} libpq-devel%{?_isa}
Requires: sqlite-devel%{?_isa} zlib-devel%{?_isa}
%description
@@ -22,9 +21,7 @@ applications in AI, web search. It also can be used for embedded systems
applications.
%prep
-%setup -q
-%patch -P0 -p0 -b .64bit-support
-%patch -P1 -p1 -b .stop-binary-strip
+%autosetup -p1
# Remove it from the general build and specify it on supported platforms below
sed -i.m32 's/\-m32 //' makefile_linux
@@ -32,28 +29,35 @@ sed -i.m64 's/\-m64 //' makefile_linuxLP64
sed -i.m32 's/\-m32 //' makefile_linux_utf8
sed -i.m64 's/\-m64 //' makefile_linuxLP64_utf8
+# Inject LDFLAGS into makefiles to respect Fedora build flags
+sed -i 's/\$(CC) \$(OBJS)/\$(CC) \$(LDFLAGS) \$(OBJS)/' makefile_linuxLP64_utf8 makefile_linux_utf8
+
%build
%set_build_flags
-%configure
%if "%{_lib}" == "lib64"
NEWLISP_FLAGS="-c -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX"
%make_build -f makefile_linuxLP64_utf8 -j1 \
- CFLAGS="%{optflags} -std=gnu17 -fPIC -fno-strict-aliasing $NEWLISP_FLAGS"
+ CFLAGS="%{optflags} -std=gnu17 -fPIC -fno-strict-aliasing $NEWLISP_FLAGS" \
+ LDFLAGS="%{build_ldflags}"
%else
NEWLISP_FLAGS="-c -DREADLINE -DSUPPORT_UTF8 -DLINUX"
%make_build -f makefile_linux_utf8 -j1 \
- CFLAGS="%{optflags} -std=gnu17 -fPIC -fno-strict-aliasing $NEWLISP_FLAGS"
+ CFLAGS="%{optflags} -std=gnu17 -fPIC -fno-strict-aliasing $NEWLISP_FLAGS" \
+ LDFLAGS="%{build_ldflags}"
%endif
%install
-make install_home HOME=%{buildroot}/usr/
+cp makefile_original_install makefile_install
+make install_home HOME=%{buildroot}%{_prefix}
+rm %{buildroot}%{_datadir}/doc/newlisp/COPYING
%check
make check
%files
-%doc %{_datadir}/doc/*
+%license doc/COPYING
+%doc %{_docdir}/%{name}/
%{_bindir}/%{name}
%{_bindir}/newlispdoc
%{_mandir}/man1/*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-10 0:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10 0:10 [rpms/newlisp] rawhide: spec cleanup and modernization, respect build flags Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox