%global debug_package %{nil} %global _missing_build_ids_terminate_build 0 %global _dwz_low_mem_die_limit 0 Name: authelia Version: 4.39.20 Release: 1%{?dist} Summary: Authelia is an open-source authentication and authorization server License: Apache-2.0 URL: https://github.com/authelia/authelia Source0: https://github.com/authelia/authelia/archive/refs/tags/v%{version}.tar.gz Source1: authelia.sysusers.conf Source2: authelia.service Source3: https://go.dev/dl/go1.26.4.linux-amd64.tar.gz BuildRequires: gcc BuildRequires: git-core BuildRequires: nodejs-pnpm BuildRequires: nodejs BuildRequires: nodejs-npm BuildRequires: systemd-rpm-macros ExcludeArch: i686 s390 %{power64} %{arm64} %description Authelia is an open-source authentication and authorization server providing two-factor authentication and single sign-on (SSO) for your applications via a web portal. It acts as a companion for reverse proxies by allowing, denying, or redirecting requests. %prep %autosetup -p1 %build # Extract and setup Go mkdir -p %{_builddir}/go tar -C %{_builddir}/go -xzf %{SOURCE3} export PATH="%{_builddir}/go/go/bin:$PATH" export GOROOT="%{_builddir}/go/go" export GOCACHE="%{_builddir}/go/cache" export GOMODCACHE="%{_builddir}/go/modcache" # Initialize git repo (required by authelia build) git init # Download Go dependencies go mod download # Build web frontend pushd web # Skip postinstall scripts to avoid segfaults, but install optional deps (needed for rolldown) node %{_bindir}/pnpm install --ignore-scripts node %{_bindir}/pnpm build popd # Copy API files cp -av api internal/server/public_html/api # Build authelia binary go build -buildmode=pie -o "./bin/authelia" ./cmd/authelia %install # install authelia user and group install -Dm0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/authelia.conf mkdir -p %{buildroot}%{_sysconfdir}/authelia/ mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sharedstatedir}/authelia/ install -m0755 bin/authelia %{buildroot}%{_bindir}/authelia install -m0755 config.template.yml %{buildroot}%{_sysconfdir}/authelia/config.template.yml install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/authelia.service %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %doc README.md CONTRIBUTING.md %attr(0755,root,root) %{_bindir}/authelia %attr(0750,root,authelia) %{_sysconfdir}/authelia/ %attr(0755,authelia,authelia) %{_sharedstatedir}/authelia/ %{_unitdir}/authelia.service %{_sysusersdir}/authelia.conf %changelog * Fri Apr 17 2026 Patrick Laimbock - 4.39.19-1 - update to version 4.39.19 * Sun Mar 29 2026 Patrick Laimbock - 4.39.16-1 - update to version 4.39.16 * Sat Jan 17 2026 Patrick Laimbock - 4.39.15-1 - update to version 4.39.15 - build for F43 only * Sun Oct 12 2025 Patrick Laimbock - 4.39.13-1 - initial release for Fedora 42 & 43 - based on the spec file by Grillo del Mal