public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lfortran] epel10: Initial import BZ2229349
@ 2026-07-16 14:31 Benson Muite
  0 siblings, 0 replies; only message in thread
From: Benson Muite @ 2026-07-16 14:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/lfortran
Branch : epel10
Commit : b402af229d5985e374e1ec830823057d494705ea
Author : Benson Muite <benson_muite@emailplus.org>
Date   : 2024-01-19T10:28:05+03:00
Stats  : +217/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/lfortran/c/b402af229d5985e374e1ec830823057d494705ea?branch=epel10

Log:
Initial import BZ2229349

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..959b137
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/lfortran-0.30.0.tar.gz

diff --git a/3043.patch b/3043.patch
new file mode 100644
index 0000000..863592a
--- /dev/null
+++ b/3043.patch
@@ -0,0 +1,62 @@
+From b7839664b54f515ed52aa0068d795685e4a6aad1 Mon Sep 17 00:00:00 2001
+From: Christoph Junghans <junghans@votca.org>
+Date: Thu, 4 Jan 2024 16:00:04 -0700
+Subject: [PATCH 1/2] cmake: add libm to lfortran_runtime
+
+---
+ src/runtime/legacy/CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/runtime/legacy/CMakeLists.txt b/src/runtime/legacy/CMakeLists.txt
+index 03ef4f6425..6da9013888 100644
+--- a/src/runtime/legacy/CMakeLists.txt
++++ b/src/runtime/legacy/CMakeLists.txt
+@@ -2,9 +2,13 @@ set(SRC
+     ../../../src/libasr/runtime/lfortran_intrinsics.c
+ )
+ 
++set(MATH_LIBRARIES "m" CACHE STRING "math library")
++mark_as_advanced( MATH_LIBRARIES )
++
+ add_library(lfortran_runtime SHARED ${SRC})
+ target_include_directories(lfortran_runtime BEFORE PUBLIC ${libasr_SOURCE_DIR}/..)
+ target_include_directories(lfortran_runtime BEFORE PUBLIC ${libasr_BINARY_DIR}/..)
++target_link_libraries(lfortran_runtime PRIVATE ${MATH_LIBRARIES})
+ set_target_properties(lfortran_runtime PROPERTIES
+   VERSION ${PROJECT_VERSION}
+   SOVERSION ${PROJECT_VERSION_MAJOR})
+@@ -14,6 +18,7 @@ set_target_properties(lfortran_runtime PROPERTIES
+ add_library(lfortran_runtime_static STATIC ${SRC})
+ target_include_directories(lfortran_runtime_static BEFORE PUBLIC ${libasr_SOURCE_DIR}/..)
+ target_include_directories(lfortran_runtime_static BEFORE PUBLIC ${libasr_BINARY_DIR}/..)
++target_link_libraries(lfortran_runtime PRIVATE ${MATH_LIBRARIES})
+ set_target_properties(lfortran_runtime_static PROPERTIES
+     LIBRARY_OUTPUT_DIRECTORY ..)
+ 
+
+From f28ae4a58bd0851f378c0f27e6ffde7e1833b901 Mon Sep 17 00:00:00 2001
+From: Christoph Junghans <junghans@votca.org>
+Date: Thu, 4 Jan 2024 16:42:26 -0700
+Subject: [PATCH 2/2] cmake: fix build on WIndows
+
+---
+ src/runtime/legacy/CMakeLists.txt | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/runtime/legacy/CMakeLists.txt b/src/runtime/legacy/CMakeLists.txt
+index 6da9013888..0c80f9daf9 100644
+--- a/src/runtime/legacy/CMakeLists.txt
++++ b/src/runtime/legacy/CMakeLists.txt
+@@ -2,7 +2,11 @@ set(SRC
+     ../../../src/libasr/runtime/lfortran_intrinsics.c
+ )
+ 
+-set(MATH_LIBRARIES "m" CACHE STRING "math library")
++if(WIN32)
++  set(MATH_LIBRARIES "" CACHE STRING "math library")
++else()
++  set(MATH_LIBRARIES "m" CACHE STRING "math library")
++endif()
+ mark_as_advanced( MATH_LIBRARIES )
+ 
+ add_library(lfortran_runtime SHARED ${SRC})

diff --git a/lfortran.spec b/lfortran.spec
new file mode 100644
index 0000000..598ec28
--- /dev/null
+++ b/lfortran.spec
@@ -0,0 +1,153 @@
+Version:        0.30.0
+Name:           lfortran
+Release:        4%{?dist}
+Summary:        A modern Fortran compiler
+
+# Main code is BSD-3-Clause
+# src/libasr/codegen/KaleidoscopeJIT.h is available under the Apache 2.0
+# License with LLVM exception
+License:        BSD-3-Clause AND Apache-2.0 WITH LLVM-exception
+URL:            https://lfortran.org/
+Source0:        https://lfortran.github.io/tarballs/release/lfortran-%{version}.tar.gz
+# fix missing symbols in runtime library
+Patch0:         https://github.com/lfortran/lfortran/pull/3043.patch
+# https://github.com/lfortran/lfortran/issues/2981
+ExclusiveArch: x86_64
+
+BuildRequires: binutils-devel
+BuildRequires: bison
+BuildRequires: cmake
+BuildRequires: fmt-devel
+BuildRequires: gcc-c++
+BuildRequires: json-devel
+BuildRequires: libffi-devel
+BuildRequires: libunwind-devel
+BuildRequires: libuuid-devel
+BuildRequires: llvm16-devel
+BuildRequires: libzstd-devel
+BuildRequires: libzstd-static
+BuildRequires: python3-devel
+BuildRequires: rapidjson-devel
+BuildRequires: re2c
+BuildRequires: zlib-ng-compat-devel
+BuildRequires: zlib-ng-compat-static
+# Needed for Jupyter kernel
+BuildRequires: cppzmq-devel
+BuildRequires: json-devel
+BuildRequires: openssl-devel
+BuildRequires: xeus-devel
+BuildRequires: xeus-zmq-devel
+BuildRequires: xtl-devel
+# For manpage, drop in next release
+BuildRequires: pandoc
+Requires: %{name}-shared%{?_isa} = %{version}-%{release}
+
+%global lfortran_desc \
+LFortran is a modern open-source (BSD licensed) interactive Fortran \
+compiler built on top of LLVM. It can execute user's code interactively \
+to allow exploratory work (much like Python, MATLAB or Julia) as well as \
+compile to binaries with the goal to run user's code on modern \
+architectures such as multi-core CPUs and GPUs.
+
+%description
+%{lfortran_desc}
+
+%package devel
+Summary:  Development headers and libraries for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+%{lfortran_desc}
+
+This package contains development headers and libraries for %{name}.
+
+%package static
+Summary:   Static runtime library for %{name}
+
+%description static
+%{lfortran_desc}
+
+This package contains static runtime library for %{name}.
+
+%package shared
+Summary:   Shared runtime library for %{name}
+
+%description shared
+%{lfortran_desc}
+
+This package contains shared runtime library for %{name}.
+
+%package jupyter
+Summary:   Jupyter kernel for %{name}
+Requires:  %{name}%{?_isa} = %{version}-%{release}
+Requires:  jupyterlab
+Requires:  python-jupyter-filesystem
+
+%description jupyter
+%{lfortran_desc}
+
+This package contains the jupyter kernel for %{name}.
+
+
+%prep
+%autosetup -p1
+
+%build
+%cmake -DCMAKE_PREFIX_PATH=%{_libdir}/llvm16/ \
+       -DWITH_LLVM=ON \
+       -DWITH_RUNTIME_LIBRARY=ON \
+       -DWITH_FMT=ON \
+       -DWITH_JSON=ON \
+       -DWITH_STACKTRACE=ON \
+       -DWITH_TARGET_WASM=ON \
+       -DWITH_UNWIND=ON \
+       -DWITH_WHEREAMI=OFF \
+       -DWITH_XEUS=ON \
+       -DWITH_ZLIB=ON
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+%ctest
+
+%files
+%doc README.md
+%license LICENSE
+%{_bindir}/lfortran
+%{_mandir}/man1/lfortran.1.*
+
+%files devel
+%dir %{_includedir}/lfortran
+%dir %{_includedir}/lfortran/impure
+%{_includedir}/lfortran/impure/lfortran_intrinsics.h
+%{_libdir}/liblfortran_runtime.so
+%{_libdir}/lfortran_*.mod
+
+%files static
+%{_libdir}/liblfortran_runtime_static.a
+
+%files shared
+%{_libdir}/liblfortran_runtime.so.*
+
+%files jupyter
+%dir %{_datadir}/jupyter/kernels/fortran
+%{_datadir}/jupyter/kernels/fortran/kernel.json
+
+%changelog
+* Tue Jan 16 2024 Benson Muite <benson_muite@emailplus.org> - 0.30.0-4
+- Use zlib-ng
+- Ensure all directories are owned
+
+* Mon Jan 15 2024 Christoph Junghans <junghans@votca.org> - 0.30.0-3
+- Enable WASM backend
+
+* Wed Jan 10 2024 Christoph Junghans <junghans@votca.org> - 0.30.0-2
+- More subpackages
+
+* Thu Jan 04 2024 Christoph Junghans <junghans@votca.org> - 0.30.0-1
+- Version bump v0.30.0
+
+* Sat Oct 07 2023 Benson Muite <benson_muite@emailplus.org> - 0.21.5-1
+- Initial packaging

diff --git a/sources b/sources
new file mode 100644
index 0000000..cb93757
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (lfortran-0.30.0.tar.gz) = cc333cb449823f29ba36a56e200f2f3f74fc8b14d6f618ef82557a8af5bd38f2cf150723af0e466a5391e92181b4a9347aaceb6745f70ee38bbdd0fb46e1f67f

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

only message in thread, other threads:[~2026-07-16 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-16 14:31 [rpms/lfortran] epel10: Initial import BZ2229349 Benson Muite

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