-
Notifications
You must be signed in to change notification settings - Fork 0
/
smallpoint.spec
65 lines (48 loc) · 2.72 KB
/
smallpoint.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
Name: smallpoint
Version: 0.3.2
Release: 1%{?dist}
Summary: LDAP group management tool
#Group:
License: ASL 2.0
URL: https://github.com/Cloud-Foundations/SmallPoint
Source0: smallpoint-%{version}.tar.gz
#BuildRequires: Golang
#Requires:
%description
Simple utilites for checking state of ldap infrastructure
%prep
%setup -n %{name}-%{version}
%build
make
%install
#%make_install
%{__install} -Dp -m0755 ~/go/bin/smallpoint %{buildroot}%{_sbindir}/smallpoint
install -d %{buildroot}/usr/lib/systemd/system
install -p -m 0644 misc/startup/smallpoint.service %{buildroot}/usr/lib/systemd/system/smallpoint.service
install -d %{buildroot}/%{_datarootdir}/smallpoint/templates/
install -d %{buildroot}/%{_datarootdir}/smallpoint/templates/css/
install -p -m 0644 cmd/smallpoint/templates/css/new.css %{buildroot}/%{_datarootdir}/smallpoint/templates/css/new.css
install -d %{buildroot}/%{_datarootdir}/smallpoint/templates/js/
install -p -m 0644 cmd/smallpoint/templates/js/addMemberToGroup.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/addMemberToGroup.js
install -p -m 0644 cmd/smallpoint/templates/js/changeGroupOwnership.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/changeGroupOwnership.js
install -p -m 0644 cmd/smallpoint/templates/js/createGroup.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/createGroup.js
install -p -m 0644 cmd/smallpoint/templates/js/deleteGroup.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/deleteGroup.js
install -p -m 0644 cmd/smallpoint/templates/js/deleteMembersFromGroup.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/deleteMembersFromGroup.js
install -p -m 0644 cmd/smallpoint/templates/js/groupInfo.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/groupInfo.js
install -p -m 0644 cmd/smallpoint/templates/js/newtable.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/newtable.js
install -p -m 0644 cmd/smallpoint/templates/js/sidebar.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/sidebar.js
install -p -m 0644 cmd/smallpoint/templates/js/table.js %{buildroot}/%{_datarootdir}/smallpoint/templates/js/table.js
install -d %{buildroot}/%{_datarootdir}/smallpoint/templates/images/
install -p -m 0644 cmd/smallpoint/templates/images/avatar2.png %{buildroot}/%{_datarootdir}/smallpoint/templates/images/avatar2.png
install -p -m 0644 cmd/smallpoint/templates/images/favicon.ico %{buildroot}/%{_datarootdir}/smallpoint/templates/images/favicon.ico
install -p -m 0644 cmd/smallpoint/templates/images/darkBG.svg %{buildroot}/%{_datarootdir}/smallpoint/templates/images/darkBG.svg
%post
systemctl daemon-reload
%postun
systemctl daemon-reload
%files
#%doc
%{_sbindir}/smallpoint
/usr/lib/systemd/system/smallpoint.service
%{_datarootdir}/smallpoint/templates/*
%changelog