-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgoeap_proxy.spec
70 lines (50 loc) · 1.33 KB
/
goeap_proxy.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Generated by go2rpm 1.3
%bcond_without check
# https://github.com/pyther/goeap_proxy
%global goipath github.com/pyther/goeap_proxy
Version: 0.3.0
%gometa
%global common_description %{expand:
EAP Proxy written in Go.}
%global godocs README.md
Name: goeap_proxy
Release: 1%{?dist}
Summary: EAP Proxy written in Go
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires: systemd
BuildRequires: systemd-rpm-macros
%description
%{common_description}
%gopkg
%prep
%goprep -k
%build
BUILD=`date +%FT%T%z`
LDFLAGS="-X main.Version=%{version} -X main.BuildStamp=${BUILD} $LDFLAGS"
%gobuild -o %{gobuilddir}/bin/goeap_proxy %{goipath}
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vd %{buildroot}%{_unitdir}
install -m 0755 -vp %{gobuilddir}/bin/goeap_proxy %{buildroot}%{_bindir}/
install -m 0644 -vp goeap_proxy.service %{buildroot}%{_unitdir}/
%if %{with check}
%check
%gocheck
%endif
%files
%doc README.md
%{_bindir}/goeap_proxy
%{_unitdir}/goeap_proxy.service
%gopkgfiles
%post
%systemd_post goeap_proxy.service
%preun
%systemd_preun goeap_proxy.service
%postun
%systemd_postun_with_restart goeap_proxy.service
%changelog
* Sun Jan 24 07:26:18 PST 2021 Matthew Gyurgyik <[email protected]> - 0.2.0-1
- Initial package