Browse Source

authelia version update 4.30.2

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 3 years ago
parent
commit
394c0f461f
  1. 22
      SPECS/authelia.spec

22
SPECS/authelia.spec

@ -2,11 +2,12 @@
%define debug_package %{nil} %define debug_package %{nil}


Name : authelia Name : authelia
Version : 4.29.4 Version : 4.30.2
Release : 1%{dist} Release : 1%{dist}
License : MIT License : MIT
URL : https://www.authelia.com/ URL : https://www.authelia.com/
Summary : Single Sign-On Multi-Factor portal for web apps Summary : Single Sign-On Multi-Factor portal for web apps
Source0 : authelia-sqlite-disable.patch
BuildRequires: golang BuildRequires: golang
BuildRequires: git BuildRequires: git
BuildRequires: npm BuildRequires: npm
@ -30,16 +31,25 @@ export GOPATH=`pwd`
export GO111MODULE=on export GO111MODULE=on
pushd go/src/github.com/authelia/authelia/ pushd go/src/github.com/authelia/authelia/
git checkout v%{version} git checkout v%{version}
#git checkout feat-oidc-userinfo-endpoint
export GITCOMMIT=$(git rev-parse --short HEAD)
export BUILDDATE=$(date +%Y%m%d)
pushd web pushd web
npm install npm install
npm run build npm run build
popd popd
rm -rf internal/server/public_html #rm -rf internal/server/public_html
cp -rv web/build internal/server/public_html #cp -rv web/build internal/server/public_html
cp -rv api internal/server/public_html/api cp -rv api internal/server/public_html/api
sed "s/__BUILD_TAG__/"%{version}"/" -i cmd/authelia/constants.go %ifarch ppc64le ppc64
sed "s/__BUILD_COMMIT__/"%{release}"/" -i cmd/authelia/constants.go rm -rf internal/storage/sqlite_provider.go
go build -v -tags netgo -trimpath -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version} -o authelia ./cmd/authelia/ patch -p0 -i %{SOURCE0}
%endif
if [ -f cmd/authelia/constants.go ]; then
sed "s/__BUILD_TAG__/"%{version}"/" -i cmd/authelia/constants.go
sed "s/__BUILD_COMMIT__/"%{release}"/" -i cmd/authelia/constants.go
fi
go build -v -tags netgo -trimpath -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'github.com/authelia/authelia/internal/utils.BuildTag="%{version}"' -X 'github.com/authelia/authelia/internal/utils.BuildState=\"tagged clean\"' -X 'github.com/authelia/authelia/internal/utils.BuildExtra="%{dist}"' -X 'github.com/authelia/authelia/internal/utils.BuildDate="${BUILDATE}"' -X 'github.com/authelia/authelia/internal/utils.BuildCommit="${GITCOMMIT}"' -X 'github.com/authelia/authelia/internal/utils.BuildBranch=\"master\"' -X 'github.com/authelia/authelia/internal/utils.BuildNumber="%{release}"'" -o authelia ./cmd/authelia/




%install %install

Loading…
Cancel
Save