- Initial release: bash profile config & default library included.

This commit is contained in:
2026-03-17 12:25:59 +01:00
commit 5593b90994
10 changed files with 1919 additions and 0 deletions

101
SPECS/rx3-base.spec Normal file
View File

@@ -0,0 +1,101 @@
%define repo_name base
%define name rx3-%{repo_name}
%define version 1.0.0
%define release %mkrel 1rx3
#-----------------------------------------------------------------------------------------------------------------------------------
# Package
#-----------------------------------------------------------------------------------------------------------------------------------
Summary: Rx3 Base Package
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL 3.0
URL: https://git.rx3.org/gitea/rx3/%{repo_name}
Group: System
Distribution: Rx3 Free Software
Vendor: Rx3
Packager: Arnaud G. GIBERT <arnaud@rx3.net>
BuildArch: noarch
Source0: https://git.rx3.org/gitea/rx3/%{repo_name}/archive/%{repo_name}-%{version}.tar.gz
%description
This is the base component of an Rx3 system:
- Default config files,
- Base bash libraries,
- Default tools.
#-----------------------------------------------------------------------------------------------------------------------------------
# Prep
#-----------------------------------------------------------------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{repo_name}
#-----------------------------------------------------------------------------------------------------------------------------------
# Build
#-----------------------------------------------------------------------------------------------------------------------------------
%build
#-----------------------------------------------------------------------------------------------------------------------------------
# Install
#-----------------------------------------------------------------------------------------------------------------------------------
%install
# Config
%{__mkdir_p} %{buildroot}%{_sysconfdir}/profile.d
cp etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d
# Libs
%{__mkdir_p} %{buildroot}%{_prefix}/lib
cp usr/lib/*.bash %{buildroot}%{_prefix}/lib
#-----------------------------------------------------------------------------------------------------------------------------------
# Files
#-----------------------------------------------------------------------------------------------------------------------------------
%files
%defattr(644,root,root)
%{_sysconfdir}/profile.d/*
%{_prefix}/lib/*
#-----------------------------------------------------------------------------------------------------------------------------------
# ChangeLog
#-----------------------------------------------------------------------------------------------------------------------------------
%changelog
* Tue Mar 17 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.0-1rx3.mga9
- Initial release