-
Notifications
You must be signed in to change notification settings - Fork 0
/
ermis.spec
72 lines (58 loc) · 1.98 KB
/
ermis.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
70
71
72
%global provider gitlab
%global provider_tld cern.ch
%global project lb-experts
%global provider_full %{provider}.%{provider_tld}/%{project}
%global repo goermis
%global import_path %{provider_full}/%{repo}
%global gopath %{_datadir}/gocode
%global debug_package %{nil}
Name: ermis
Version: 1.4.0
Release: 2%{?dist}
Summary: CERN LB DNS Web interface
License: ASL 2.0
URL: https://%{import_path}
Source: %{name}-%{version}.tgz
BuildRequires: golang >= 1.14 systemd
ExclusiveArch: x86_64
%description
%{summary}
Web interface for ermis
%prep
%setup -n %{name}-%{version} -q
%build
go build -o ermis -mod=vendor -ldflags "-X main.Version=%{version} -X main.Release=%{release}"
%install
# main package binary
install -d -p %{buildroot}/usr/sbin/ %{buildroot}/var/lib/ermis/ %{buildroot}/lib/systemd/system/
install -p -m0755 ermis %{buildroot}/usr/sbin/ermis
cp -r staticfiles templates %{buildroot}/var/lib/ermis/
install -p -m0644 config/systemd/ermis.service %{buildroot}/lib/systemd/system
%files
%doc LICENSE COPYING README.md
/usr/sbin/ermis
/var/lib/ermis/
/lib/systemd/system/ermis.service
%post
%systemd_post ermis.service
%preun
%systemd_preun ermis.service
%postun
%systemd_postun_with_restart ermis.service
%changelog
* Fri Oct 1 2021 Pablo Saiz <[email protected]> - 1.4.0-2
- Adding systemd start/stop during the rpm installation
* Thu Jul 15 2021 Kristian Kouros <[email protected]> - 1.3.0-7
- add OIDC protected GET entrypoint
* Sat Jul 10 2021 Kristian Kouros <[email protected]> - 1.3.0-6
- specify data types for ID fields
* Mon Jul 05 2021 Kristian Kouros <[email protected]> - 1.3.0-5
- build for lb8s
* Mon Jul 05 2021 Kristian Kouros <[email protected]> - 1.3.0-4
- edit ermis.service
* Fri Jul 03 2020 Pablo Saiz <[email protected]> - 0.0.3
- Include staticfiles
* Mon May 25 2020 Pablo Saiz <[email protected]> - 0.0.2
- Include the service startup
* Wed May 20 2020 Pablo Saiz <[email protected]> - 0.0.1
- First version