%global debug_package %{nil} %global _missing_build_ids_terminate_build 0 %global _dwz_low_mem_die_limit 0 Name: authelia Version: 4.39.13 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/%{version}/%{name}-%{version}.tar.gz Source1: authelia.sysusers.conf Source2: authelia.service BuildRequires: git-core BuildRequires: golang BuildRequires: pnpm BuildRequires: nodejs BuildRequires: nodejs-npm BuildRequires: systemd-rpm-macros %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 go mod download git init pushd web pnpm install pnpm build popd cp -av api internal/server/public_html/api 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 * 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