mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Update rpm packaging
This commit is contained in:
parent
a0891e9f04
commit
a19789f1e3
11
Makefile
11
Makefile
@ -38,7 +38,7 @@ tarball: clean clean-tarball build-fe cargo-vendor
|
|||||||
extract-vendor:
|
extract-vendor:
|
||||||
if [ -f vendor.tar.xz ]; then tar -xJf vendor.tar.xz; fi
|
if [ -f vendor.tar.xz ]; then tar -xJf vendor.tar.xz; fi
|
||||||
|
|
||||||
build: extract-vendor build-fe build-rs gpgui-helper
|
build: build-fe build-rs
|
||||||
|
|
||||||
# Install and build the frontend
|
# Install and build the frontend
|
||||||
# If OFFLINE is set to 1, skip it
|
# If OFFLINE is set to 1, skip it
|
||||||
@ -52,14 +52,13 @@ build-fe:
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-rs:
|
build-rs: extract-vendor
|
||||||
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpclient -p gpauth -p gpservice
|
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpclient -p gpauth -p gpservice
|
||||||
|
|
||||||
gpgui-helper:
|
|
||||||
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpgui-helper --features "tauri/custom-protocol"
|
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpgui-helper --features "tauri/custom-protocol"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(CARGO) clean
|
$(CARGO) clean
|
||||||
|
rm -rf .rpm
|
||||||
rm -rf .vendor
|
rm -rf .vendor
|
||||||
rm -rf apps/gpgui-helper/node_modules
|
rm -rf apps/gpgui-helper/node_modules
|
||||||
|
|
||||||
@ -123,7 +122,7 @@ publish-ppa: ppa
|
|||||||
# Generate RPM sepc file
|
# Generate RPM sepc file
|
||||||
rpm-spec:
|
rpm-spec:
|
||||||
rm -rf .rpm
|
rm -rf .rpm
|
||||||
mkdir -p .rpm
|
mkdir .rpm
|
||||||
|
|
||||||
cp packaging/rpm/globalprotect-openconnect.spec.in .rpm/globalprotect-openconnect.spec
|
cp packaging/rpm/globalprotect-openconnect.spec.in .rpm/globalprotect-openconnect.spec
|
||||||
cp packaging/rpm/globalprotect-openconnect.changes.in .rpm/globalprotect-openconnect.changes
|
cp packaging/rpm/globalprotect-openconnect.changes.in .rpm/globalprotect-openconnect.changes
|
||||||
@ -154,5 +153,5 @@ rpm: rpm-spec
|
|||||||
|
|
||||||
# Copy the SRPM only for x86_64.
|
# Copy the SRPM only for x86_64.
|
||||||
if [ "$(shell uname -m)" = "x86_64" ]; then \
|
if [ "$(shell uname -m)" = "x86_64" ]; then \
|
||||||
cp $(HOME)/rpmbuild/SRPMS/$(PKG_NAME)*.rpm .rpm \
|
cp $(HOME)/rpmbuild/SRPMS/$(PKG_NAME)*.rpm .rpm; \
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: globalprotect-openconnect
|
Name: globalprotect-openconnect
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: @REVISION@%{?dist}
|
Release: @REVISION@
|
||||||
Summary: A GlobalProtect VPN client powered by OpenConnect
|
Summary: A GlobalProtect VPN client powered by OpenConnect
|
||||||
Group: Productivity/Networking/PPP
|
Group: Productivity/Networking/PPP
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user