mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
add rpm packaging (#83)
This commit is contained in:
21
packaging/rpm/entrypoint.sh
Executable file
21
packaging/rpm/entrypoint.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Install the build tools
|
||||
dnf install -y epel-release
|
||||
rpm --import http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8
|
||||
dnf install -y make rpm-build rpm-devel rpmlint rpmdevtools
|
||||
|
||||
# Install the build dependencies
|
||||
dnf install -y qt5-qtbase-devel qt5-qtwebengine-devel qt5-qtwebsockets-devel
|
||||
|
||||
# Prepare the RPM build environment
|
||||
rpmdev-setuptree
|
||||
cp *.spec $HOME/rpmbuild/SPECS/
|
||||
cp *.tar.gz $HOME/rpmbuild/SOURCES/
|
||||
|
||||
# Build
|
||||
rpmbuild -ba $HOME/rpmbuild/SPECS/globalprotect-openconnect.spec
|
||||
|
||||
# Copy the package to the current directory
|
||||
cp $HOME/rpmbuild/RPMS/x86_64/globalprotect-openconnect-*.rpm .
|
||||
cp $HOME/rpmbuild/SRPMS/globalprotect-openconnect-*.src.rpm .
|
||||
Reference in New Issue
Block a user