#----------------------------------------------------------------------------------------------------------------------------------- # # 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 mpm %define version 1.1.1 %define release %mkrel 1rx3 %global debug_package %{nil} %global _webdir %{_localstatedir}/www %global _webcgi %{_webdir}/cgi-bin %global _webhtml %{_webdir}/html Name: %{name} Version: %{version} Release: %{release} Summary: Meta Package Manager - Client tool 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 %description MPM is a Meta Package Manager, based upon URPMI and RPM packages. This is the client tool. %package server Summary: Meta Package Manager - Server repository Requires: apache %description server MPM is a Meta Package Manager, based upon URPMI and RPM packages. This is the server repository. #----------------------------------------------------------------------------------------------------------------------------------- # Prep #----------------------------------------------------------------------------------------------------------------------------------- %prep %setup -q -n %{name} #----------------------------------------------------------------------------------------------------------------------------------- # Build #----------------------------------------------------------------------------------------------------------------------------------- %build #----------------------------------------------------------------------------------------------------------------------------------- # Install #----------------------------------------------------------------------------------------------------------------------------------- %install # Client install -D -pm 644 etc/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf install -D -pm 644 etc/bash_completion.d/%{name} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} install -D -pm 755 sbin/%{name} %{buildroot}%{_sbindir}/%{name} # Server cd var/www/html/%{name}-repository for file in *.mpm do install -D -pm 644 ${file} %{buildroot}%{_webhtml}/%{name}-repository/${file} done #----------------------------------------------------------------------------------------------------------------------------------- # Check #----------------------------------------------------------------------------------------------------------------------------------- %check #----------------------------------------------------------------------------------------------------------------------------------- # Files #----------------------------------------------------------------------------------------------------------------------------------- %files %doc ReadMe.txt ReleaseNotes.txt ToDo.txt %license GNU_GPL-3.0.txt %config(noreplace) %{_sysconfdir}/%{name}.conf %{_sysconfdir}/bash_completion.d/%{name} %{_sbindir}/%{name} %files server %{_webhtml}/%{name}-repository/* #----------------------------------------------------------------------------------------------------------------------------------- # ChangeLog #----------------------------------------------------------------------------------------------------------------------------------- %changelog * Sat Mar 21 2026 Arnaud G. GIBERT - 1.1.1-1rx3.mga9 - Update to 1.1.1 - Add bash completion support - Fix html file location * Sat Mar 14 2026 Arnaud G. GIBERT - 1.1.0-1rx3.mga9 - Create initial SPEC file for 1.1.0 on Mageia 9