- Base library:

- Rename default.bash to base.bash,
    - Normalise some function names: version_print(), help_print(), str_quote(), str_escape(), echo_line(), echo_error() & cmd_exec()
    - Normalise some global variables: VERBOSE & DRY_RUN,
    - Add default options: errexit, pipefail & nounset,
    - Add GPL headers,
- ISL:
    - Move ISL functions to isl command,
    - Add bash completion,
- URPMI-Setup:
    - Add urpmi-setup command.
This commit is contained in:
2026-03-28 17:54:27 +01:00
parent 97c05c4606
commit cc7eda3588
13 changed files with 1093 additions and 245 deletions

View File

@@ -1,6 +1,31 @@
#-----------------------------------------------------------------------------------------------------------------------------------
#
# Rx3 Base
#
# Copyright (C) 2026 Arnaud G. GIBERT
# mailto:arnaud@rx3.net
#
# This is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; If not, see
# <https://www.gnu.org/licenses/>.
#
#-----------------------------------------------------------------------------------------------------------------------------------
%define name rx3-base
%define version 1.0.0
%define version 1.1.0
%define release %mkrel 1rx3
@@ -69,11 +94,17 @@ This is the base component of an Rx3 system:
# Config
%{__mkdir_p} %{buildroot}%{_sysconfdir}/profile.d
cp etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d
%{__mkdir_p} %{buildroot}%{_sysconfdir}/bash_completion.d
cp etc/bash_completion.d/* %{buildroot}%{_sysconfdir}/bash_completion.d
# Libs
%{__mkdir_p} %{buildroot}%{_prefix}/lib/rx3
cp usr/lib/rx3/*.bash %{buildroot}%{_prefix}/lib/rx3
# Bin
%{__mkdir_p} %{buildroot}%{_sbindir}
cp sbin/* %{buildroot}%{_sbindir}
@@ -83,11 +114,13 @@ cp usr/lib/rx3/*.bash %{buildroot}%{_prefix}/lib/rx3
#-----------------------------------------------------------------------------------------------------------------------------------
%files
%doc ReadMe.txt ReleaseNotes.txt ToDo.txt
%license GNU_GPL-3.0.txt GNU_FDL-1.3.txt
%doc ReadMe.txt ReleaseNotes.txt ToDo.txt
%license COPYING COPYING.LESSER GNU_GPL-3.0.txt GNU_LGPL-3.0.txt GNU_FDL-1.3.txt
%defattr(644,root,root)
%{_sysconfdir}/profile.d/*
%{_prefix}/lib/rx3/*
%{_sysconfdir}/profile.d/*
%{_sysconfdir}/bash_completion.d/*
%{_prefix}/lib/rx3/*
%attr(0755,root,root) %{_sbindir}/*
@@ -98,5 +131,8 @@ cp usr/lib/rx3/*.bash %{buildroot}%{_prefix}/lib/rx3
#-----------------------------------------------------------------------------------------------------------------------------------
%changelog
* Mon Apr 6 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.0-1rx3.mga9
- Update to 1.1.0
* Tue Mar 17 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.0-1rx3.mga9
- Initial release