You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
%global goipath github.com/thomseddon/traefik-forward-auth
|
|
Version: 2.2.0
|
|
|
|
%gometa
|
|
|
|
%global common_description %{expand: Minimal forward authentication service
|
|
that provides Google/OpenID oauth based login and authentication for the
|
|
traefik reverse proxy}
|
|
|
|
%global golicenses LICENSE.md
|
|
|
|
Name: traefik-forward-auth
|
|
Release: itix1
|
|
Summary: Minimal forward authentication service for the traefik reverse proxy
|
|
License: MIT
|
|
ExclusiveArch: x86_64
|
|
URL: %{gourl}
|
|
Source0: %{gosource}
|
|
Source1: traefik-forward-auth.service
|
|
Requires: traefik
|
|
BuildRequires: systemd
|
|
BuildRequires: go-rpm-macros
|
|
|
|
%description
|
|
%{common_description}
|
|
|
|
%global _missing_build_ids_terminate_build 0
|
|
%global _build_id_links none
|
|
%global debug_package %{nil}
|
|
|
|
%prep
|
|
%goprep
|
|
cp %{S:1} %{name}.service
|
|
|
|
%build
|
|
CGO_ENABLED=0 GO111MODULE=on go build -o %{gobuilddir}/traefik-forward-auth %{goipath}/cmd
|
|
|
|
%install
|
|
|
|
install -D %{gobuilddir}/traefik-forward-auth %{buildroot}/opt/traefik/bin/traefik-forward-auth
|
|
install -D -m 0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
|
|
|
%files
|
|
%license LICENSE.md
|
|
%defattr(0644, root, root, 0755)
|
|
%attr(0755, root, root) /opt/traefik/bin/traefik-forward-auth
|
|
%{_unitdir}/%{name}.service
|
|
|
|
%changelog
|
|
* Mon Feb 22 2021 Nicolas MASSE <nicolas.masse@itix.fr> - 2.2.0-itix1
|
|
- First release
|
|
|