Rcompilare RPM ALMA

Las asta aici pentru viitor:)

# yum install tar gcc make ncurses-devel

# dnf install rpmdevtools rpmlint

#rpmdev-setuptree

O sa creeze structura necesara in /root/rpmbuild:
total 28
drwxr-xr-x 7 root root 4096 Jan 23 13:50 .
dr-xr-x—. 5 root root 4096 Jan 23 13:50 ..
drwxr-xr-x 2 root root 4096 Jan 23 13:50 BUILD
drwxr-xr-x 2 root root 4096 Jan 23 13:50 RPMS
drwxr-xr-x 2 root root 4096 Jan 23 13:50 SOURCES
drwxr-xr-x 2 root root 4096 Jan 23 13:50 SPECS
drwxr-xr-x 2 root root 4096 Jan 23 13:50 SRPMS

[root@emil rpmbuild]# wget https://www.bitwizard.nl/mtr/files/mtr-0.94.tar.gz

[root@emil rpmbuild]# tar fxvz mtr-0.94.tar.gz

[root@emil rpmbuild]# cd mtr-0.94

[root@emil rpmbuild]# ./configure

[root@emil rpmbuild]# ./make

[root@emil rpmbuild]# ./make install

[root@emil rpmbuild]#  cd ..

[root@emil rpmbuild]# tar cfvz mtr-0.94-alma.tar.gz mtr-0.94

[root@emil rpmbuild]# mv mtr-0.94-alma.tar.gz /root/rpmbuild/SOURCES/

[root@emil ~]# more /root/rpmbuild/SPECS/mtr-0.94-alma.spec
Name: mtr
Version: 0.94
Release: 1%{?dist}
Summary: Alma version

License: GPL
Source0: %{name}-%{version}.tar.gz

Requires: bash

%description
Mtr with tcp support for ALMA

%global debug_package %{nil}

%prep
%autosetup

%build
%configure
%make_build

%install
rm -rf $RPM_BUILD_ROOT
%make_install

%files
/usr/sbin/mtr
/usr/sbin/mtr-packet
/usr/share/man/man8/mtr.8.gz
/usr/share/man/man8/mtr-packet.8.gz
/usr/share/bash-completion/completions/mtr

%changelog
* Mon Jan 23 2023 root

[root@emil rpmbuild]# rpmbuild -bb /root/rpmbuild/SPECS/mtr-0.94-alma.spec

[root@emil rpmbuild]# rpm -i /root/rpmbuild/RPMS/x86_64/mtr-0.94-1.el8.x86_64.rpm

[root@emil rpmbuild]# rm -e mtr-0.94