RPMSpec · 1930 bytes Raw Blame History
1 Name: fortsh
2 Version: 1.0.0
3 Release: 1%{?dist}
4 Summary: Fortran Shell - A modern shell implementation in Fortran with advanced features
5
6 License: MIT
7 URL: https://github.com/FortranGoingOnForty/fortsh
8 Source0: %{name}-%{version}.tar.gz
9
10 BuildRequires: gfortran >= 11.0
11 BuildRequires: gcc
12 BuildRequires: make
13 Requires: glibc
14
15 %description
16 Fortsh (Fortran Shell) is a modern Unix shell implementation written in Fortran 2018
17 that demonstrates Fortran's capability for system programming. It provides advanced
18 shell features including job control, pattern matching, performance monitoring,
19 and comprehensive scripting support.
20
21 Features:
22 - Advanced I/O redirection (pipes, here-strings, process substitution)
23 - Full scripting support (loops, functions, local variables)
24 - Job control enhancements (suspend/resume, background process management)
25 - Pattern matching and globbing (*,?,[])
26 - Performance monitoring and memory management
27 - Tab completion, command history, aliases, and variables
28 - Compatible with bash/zsh scripts and workflows
29 - Built-in performance profiling and memory optimization
30
31 %prep
32 %autosetup
33
34 %build
35 make clean
36 make all
37
38 %check
39 make test
40
41 %install
42 mkdir -p %{buildroot}%{_bindir}
43 mkdir -p %{buildroot}%{_mandir}/man1
44 mkdir -p %{buildroot}%{_docdir}/%{name}
45
46 # Install binary
47 install -Dm755 bin/fortsh %{buildroot}%{_bindir}/fortsh
48
49 # Install documentation
50 install -Dm644 README.md %{buildroot}%{_docdir}/%{name}/README.md
51
52 %files
53 %doc README.md
54 %{_bindir}/fortsh
55 %{_docdir}/%{name}/README.md
56
57 %changelog
58 * Sun Aug 25 2024 mfw <espadon@outlook.com> - 1.0.0-1
59 - Initial RPM release
60 - Complete Fortran shell implementation
61 - Advanced I/O redirection and job control
62 - Performance monitoring and memory management
63 - Pattern matching and globbing support
64 - Full scripting capabilities with control flow
65 - Comprehensive test suite and error handling