From 82a97e61e2fcc52c9b214faf59610a810dec4a51 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Mon, 6 Apr 2026 20:36:31 +0300 Subject: [PATCH] pass PAMLIB to make --- .github/workflows/build-rpm-armhf.yml | 3 +-- scripts/rh/3proxy.spec | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-rpm-armhf.yml b/.github/workflows/build-rpm-armhf.yml index a188750..f731288 100644 --- a/.github/workflows/build-rpm-armhf.yml +++ b/.github/workflows/build-rpm-armhf.yml @@ -63,8 +63,7 @@ jobs: run: | ret=`pwd` cd ~/rpmbuild/SPECS - PAMLIB=pam0g - rpmbuild -ba --define "_arch arm" --define "cross yes" --target=arm-linux-gnueabi 3proxy-$RELEASE.spec + rpmbuild -ba --define "PAMLIB pam0g" --define "_arch arm" --define "cross yes" --target=arm-linux-gnueabi 3proxy-$RELEASE.spec cd $ret mv ~/rpmbuild/RPMS/arm/3proxy-$RELEASE-1.arm.rpm 3proxy-$RELEASE.arm.rpm - name: Get artifact diff --git a/scripts/rh/3proxy.spec b/scripts/rh/3proxy.spec index d6e61b6..6e673be 100644 --- a/scripts/rh/3proxy.spec +++ b/scripts/rh/3proxy.spec @@ -17,7 +17,11 @@ Source: https://github.com/%{packager}/%{name}/archive/%{version}.tar.gz ln -s Makefile.Linux Makefile %build -make +%if "%{?PAMLIB}" != "" + make PAMLIB=%{?PAMLIB} +%else + make +%endif %install make DESTDIR=%buildroot install