- Add SPEC files to generate docker_tools & docker_tools-devel RPM packages.
167 lines
5.1 KiB
RPMSpec
167 lines
5.1 KiB
RPMSpec
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
#
|
|
# MPM (Meta Package Manager)
|
|
# Copyright (C) 2024-2026 Arnaud G. GIBERT
|
|
# mailto:arnaud@rx3.net
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or 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, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%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 <arnaud@rx3.net>
|
|
|
|
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: rx3-base
|
|
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
|
|
|
|
cd sbin
|
|
|
|
for file in *
|
|
do
|
|
install -D -pm 755 ${file} %{buildroot}%{_sbindir}/${file}
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
# Check
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
# Files
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
%files
|
|
%doc ReadMe.txt ReleaseNotes.txt ToDo.txt
|
|
%license GNU_GPL-3.0.txt
|
|
%{_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
|
|
%{_sbindir}docker_build_push
|
|
%{_sbindir}docker_mk_dir
|
|
%{_sbindir}docker_sbs
|
|
%{_sbindir}mk_base_image
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
# ChangeLog
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
%changelog
|
|
* Sun Mar 22 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.5.0-1rx3.mga9
|
|
- Create initial SPEC file for 1.5.0 on Mageia 9
|