#----------------------------------------------------------------------------------------------------------------------------------- # # Docker Tools # # Copyright (C) 2024-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 # . # #----------------------------------------------------------------------------------------------------------------------------------- %define name docker_tools %define version 1.5.0 %define release %mkrel 1rx3 %global debug_package %{nil} Name: %{name} Version: %{version} Release: %{release} Summary: Rx3 Docker Management Tools License: GPL URL: https://git.rx3.org/gitea/rx3/%{name} Source0: https://git.rx3.org/gitea/rx3/%{name}/archive/%{name}-%{version}.tar.gz Distribution: Rx3 Free Software Vendor: Rx3 Packager: Arnaud G. GIBERT BuildArch: noarch Requires: rx3-base %description This project aims to give some basic tools to be used by other Rx3 docker packaging projects Features: - docker_tools_install & docker_mk_dir to setup a new application environment, - docker_mk_env command to compile env file into .env file, - docker_start, docker_stop , docker_restart & docker_logs command, - docker_network_up & docker_network_down automatically called to setup external network rule & route, - docker_service_add env file function, - docker_build_push & docker_sbs (Stop / Build / Start), - mk_base_image to build a base image, - distributed in two RPM packages: docker_tools & docker_tools-devel. Support different mounted volume modes: - Single, - Mixed (Old mode), - Merged, - Splited (Default). %package devel Summary: Meta Package Manager - Server repository Requires: %{name} Requires: buildah %description devel This project aims to give some basic tools to be used by other Rx3 docker packaging projects. This is de development package, only needed for image creation. #----------------------------------------------------------------------------------------------------------------------------------- # Prep #----------------------------------------------------------------------------------------------------------------------------------- %prep %setup -q -n %{name} #----------------------------------------------------------------------------------------------------------------------------------- # Build #----------------------------------------------------------------------------------------------------------------------------------- %build #----------------------------------------------------------------------------------------------------------------------------------- # Install #----------------------------------------------------------------------------------------------------------------------------------- %install # Bash completion %{__mkdir_p} %{buildroot}%{_sysconfdir}/bash_completion.d cp etc/bash_completion.d/* %{buildroot}%{_sysconfdir}/bash_completion.d # Lib %{__mkdir_p} %{buildroot}%{_prefix}/lib/rx3 cp usr/lib/rx3/*.bash %{buildroot}%{_prefix}/lib/rx3 # Bin %{__mkdir_p} %{buildroot}%{_sbindir} cp sbin/* %{buildroot}%{_sbindir} #----------------------------------------------------------------------------------------------------------------------------------- # Check #----------------------------------------------------------------------------------------------------------------------------------- %check #----------------------------------------------------------------------------------------------------------------------------------- # Files #----------------------------------------------------------------------------------------------------------------------------------- %files %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(0644,root,root) %{_prefix}/lib/rx3/* %defattr(0755,root,root) %{_sbindir}/docker_logs %{_sbindir}/docker_mk_env %{_sbindir}/docker_network_* %{_sbindir}/docker_restart %{_sbindir}/docker_start %{_sbindir}/docker_stop %{_sbindir}/docker_tools_install %files devel %defattr(644,root,root) %{_sysconfdir}/bash_completion.d/mk_base_image %defattr(0755,root,root) %{_sbindir}/docker_build_push %{_sbindir}/docker_mk_dir %{_sbindir}/docker_sbs %{_sbindir}/mk_base_image #----------------------------------------------------------------------------------------------------------------------------------- # ChangeLog #----------------------------------------------------------------------------------------------------------------------------------- %changelog * Sun Mar 29 2026 Arnaud G. GIBERT - 1.5.0-1rx3.mga9 - Create initial SPEC file for 1.5.0 on Mageia 9