This repository contains the files necessary to build RHTLC RPM packages using COPR (Cool Other Package Repo).
rhtlc.spec- RPM spec file for building the packageRHTLC-GUI.desktop- Desktop entry file for the GUI applicationreleases/- Directory containing versioned binary releases
The spec file references binaries from the releases/ directory:
rhtlc-linux-x86_64- CLI binaryrhtlc-gui-linux-x86_64- GUI binary
These binaries are automatically published by the GitHub Actions workflow from the main repository.
# Install rpmbuild tools
sudo dnf install rpm-build rpmdevtools
# Set up RPM build environment
rpmdev-setuptree- Download the binaries from a release:
VERSION="3.4.3"
cd ~/rpmbuild/SOURCES/
# Download binaries
curl -L -o rhtlc-linux-x86_64 \
https://github.com/RedHatTraining/rhtlc-copr/raw/main/releases/${VERSION}/rhtlc-linux-x86_64
curl -L -o rhtlc-gui-linux-x86_64 \
https://github.com/RedHatTraining/rhtlc-copr/raw/main/releases/${VERSION}/rhtlc-gui-linux-x86_64
# Download desktop file
curl -L -o RHTLC-GUI.desktop \
https://github.com/RedHatTraining/rhtlc-copr/raw/main/RHTLC-GUI.desktop- Copy the spec file:
cp rhtlc.spec ~/rpmbuild/SPECS/- Build the RPM:
cd ~/rpmbuild/SPECS/
rpmbuild -ba rhtlc.spec- Find the built RPM:
ls -lh ~/rpmbuild/RPMS/x86_64/rhtlc-*.rpm
ls -lh ~/rpmbuild/SRPMS/rhtlc-*.src.rpmsudo dnf install ~/rpmbuild/RPMS/x86_64/rhtlc-3.4.3-1.x86_64.rpmOr:
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/rhtlc-3.4.3-1.x86_64.rpm-
Create a COPR account at https://copr.fedorainfracloud.org/
-
Install COPR CLI:
sudo dnf install copr-cli- Configure API token:
Get your API token from: https://copr.fedorainfracloud.org/api/
Save it to ~/.config/copr:
[copr-cli]
username = your-username
login = your-fedora-login
token = your-api-token
copr_url = https://copr.fedorainfracloud.orgcopr-cli create rhtlc \
--chroot fedora-39-x86_64 \
--chroot fedora-40-x86_64 \
--chroot epel-8-x86_64 \
--chroot epel-9-x86_64 \
--description "Red Hat Training Lab Connector - CLI and GUI tools"Option 1: Build from this repository:
copr-cli buildscm rhtlc \
--clone-url https://github.com/RedHatTraining/rhtlc-copr.git \
--method make \
--spec rhtlc.specOption 2: Build from uploaded SRPM:
# First create SRPM locally
rpmbuild -bs ~/rpmbuild/SPECS/rhtlc.spec
# Then upload to COPR
copr-cli build rhtlc ~/rpmbuild/SRPMS/rhtlc-3.4.3-1.src.rpmcopr-cli status rhtlccopr-cli get rhtlcOnce the package is built in COPR:
# Enable the COPR repository
sudo dnf copr enable your-username/rhtlc
# Install the package
sudo dnf install rhtlc
# Or update existing installation
sudo dnf upgrade rhtlcIf you prefer not to use RPM:
# Download binaries
VERSION="3.4.3"
curl -L -o /tmp/rhtlc \
https://github.com/RedHatTraining/rhtlc-copr/raw/main/releases/${VERSION}/rhtlc-linux-x86_64
curl -L -o /tmp/rhtlc-gui \
https://github.com/RedHatTraining/rhtlc-copr/raw/main/releases/${VERSION}/rhtlc-gui-linux-x86_64
# Install
chmod +x /tmp/rhtlc /tmp/rhtlc-gui
sudo mv /tmp/rhtlc /tmp/rhtlc-gui /usr/local/bin/
# Verify
rhtlc --versionAfter installation, the RPM provides:
/opt/RHTLC/rhtlc- CLI application/opt/RHTLC/rhtlc-gui- GUI application/usr/bin/rhtlc- Symlink to CLI/usr/bin/rhtlc-gui- Symlink to GUI
/usr/share/applications/RHTLC-GUI.desktop- Desktop entry- Desktop menu: Internet → RHTLC GUI
/usr/share/doc/RHTLC/README.md- Basic documentation
To update to a new version:
- Update
%define versioninrhtlc.spec - Update the
%changelogsection - Download new binaries from the corresponding release
- Rebuild the RPM
- RHEL/Fedora/AlmaLinux/Rocky Linux 8 or later
- glibc 2.28 or later
- x86_64 architecture
- Python 3.8 or later
If you get dependency errors:
sudo dnf install python3chmod +x /opt/RHTLC/rhtlc /opt/RHTLC/rhtlc-guiUpdate desktop database:
sudo update-desktop-database /usr/share/applications/- GitHub Issues: https://github.com/RedHatTraining/rhtlc-copr/issues
- Source Repository: https://github.com/RedHatTraining/dle-wstunnel-ole (private)
- Binary Repository: https://github.com/RedHatTraining/rhtlc-copr
MIT License - See source repository for details