Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:azouhr:playground
oauth2-proxy
oauth2-proxy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File oauth2-proxy.spec of Package oauth2-proxy
# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # needs to match path in source5 %define homedir /var/lib/%{name} Name: oauth2-proxy Version: 7.6.0+git.0.7af1e42 Release: 0 License: AGPL-3.0 Summary: OpenID Connect Proxy service Url: https://github.com/oauth2-proxy/oauth2-proxy Group: Development/Languages/Other Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Source2: oauth2-proxy.service Source3: sysconfig.oauth2-proxy Source4: oauth2-proxy-user.conf BuildRequires: golang-packaging BuildRequires: xz BuildRequires: sysuser-shadow BuildRequires: sysuser-tools Requires(post): %fillup_prereq %{?systemd_ordering} %sysusers_requires %{go_nostrip} %{go_provides} %description Gatekeeper is a proxy which integrates with OpenID Connect (OIDC) Providers, it supports both access tokens in a browser cookie or bearer tokens. %prep %autosetup -a1 %build export REV="%{version}" export REV="${REV##*.}" go build \ -mod=vendor \ -buildmode=pie \ -ldflags "-X main.VERSION=%{version}" %sysusers_generate_pre %{SOURCE4} oauth2-proxy %install install -D -d -m 0750 %{buildroot}%{homedir} %{buildroot}%{_sysconfdir}/%{name} install -D -m 0755 oauth2-proxy %{buildroot}%{_sbindir}/oauth2-proxy install -D -m 0640 contrib/oauth2-proxy.cfg.example %{buildroot}%{_sysconfdir}/%{name}/oauth2-proxy.cfg install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/oauth2-proxy.service install -D -m 644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.oauth2-proxy install -D -m 644 %{SOURCE4} %{buildroot}%{_sysusersdir}/oauth2-proxy-user.conf ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcoauth2-proxy %pre -f oauth2-proxy.pre %service_add_pre oauth2-proxy.service %post %fillup_only -n oauth2-proxy %service_add_post oauth2-proxy.service %preun %service_del_preun oauth2-proxy.service %postun %service_del_postun oauth2-proxy.service %files %doc README.md %license LICENSE %{_sbindir}/oauth2-proxy %{_sbindir}/rcoauth2-proxy %{_unitdir}/oauth2-proxy.service %config(noreplace) %attr(-,root,%{name}) %{_sysconfdir}/%{name}/ %{_fillupdir}/sysconfig.oauth2-proxy %{_sysusersdir}/oauth2-proxy-user.conf %dir %attr(-,%{name},%{name}) %{homedir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor