- Add MariaDB meta package, - New args parsing system with test and verbose options, - Add RPM Specs file.
121 lines
3.5 KiB
RPMSpec
121 lines
3.5 KiB
RPMSpec
%define name mpm
|
|
%define version 1.1.0
|
|
%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 <arnaud@rx3.net>
|
|
|
|
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 755 sbin/%{name} %{buildroot}%{_sbindir}/%{name}
|
|
|
|
# Server
|
|
cd var/www/%{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
|
|
%{_sbindir}/%{name}
|
|
|
|
|
|
|
|
%files server
|
|
%{_webhtml}/%{name}-repository/*
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
# ChangeLog
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
%changelog
|
|
* Sat Mar 14 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.0-1rx3.mga9
|
|
- Create initial SPEC file for 1.1.0 on Mageia 9
|