-
Notifications
You must be signed in to change notification settings - Fork 0
/
dtools.spec
215 lines (179 loc) · 8.25 KB
/
dtools.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
%define debug_package %{nil}
%define _build_id_links none
%define _name dtools
%define _prefix /opt
%define _version 00.90.00
%define _rel 0
%define _arch x86_64
%define _binaryname dtools
Name: dtools
Version: %{_version}
Release: %{_rel}
Summary: Modern docker client
Group: containers
License: GPL2.0
URL: https://git.famillegratton.net:3000/devops/dtools
Source0: %{name}-%{_version}.tar.gz
BuildArchitectures: x86_64
BuildRequires: gcc
#Requires: docker
%description
Modern-day Docker client
%prep
%autosetup
%build
cd %{_sourcedir}/%{_name}-%{_version}/src
PATH=$PATH:/opt/go/bin go build -o %{_sourcedir}/%{_binaryname} .
strip %{_sourcedir}/%{_binaryname}
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if getent group devops > /dev/null; then
exit 0
else
if getent group 2500; then
groupadd devops
else
groupadd -g 2500 devops
fi
fi
exit 0
%install
install -Dpm 0755 %{_sourcedir}/%{_binaryname} %{buildroot}%{_bindir}/%{_binaryname}
%post
cd /opt/bin
chgrp -R devops .
chmod 775 /opt/bin/dtools
%preun
%postun
%files
%defattr(-,root,root,-)
%{_bindir}/%{_binaryname}
%changelog
* Sat Jul 20 2024 DEB Builder <[email protected]> 00.90.00-0
- new package built with tito
* Mon May 27 2024 RPM Builder <[email protected]> 00.81.00-0
- Re-registered the 'get' command. Why was it un-registered ??? (jean-
- Update to FIXME ([email protected])
* Thu May 23 2024 RPM Builder <[email protected]> 00.80.02-0
- Fixed dtools ls ([email protected])
* Wed May 22 2024 RPM Builder <[email protected]> 00.80.01-0
- Fixed dtools lsi and dtools ls ([email protected])
- stub for 0.81 ([email protected])
- Forgot one version number in script ([email protected])
* Wed May 22 2024 RPM Builder <[email protected]> 00.80.00-0
- Version bump ([email protected])
- Completed phase 1 or customError migration ([email protected])
- Sync bergen -> ([email protected])
- Changed package name ([email protected])
- Completed migrating the auth subpackage ([email protected])
- Initial stub for customError migration ([email protected])
- Migrated from helpers/* to github's helperFunctions (jean-
- dtools version bump, go version bump ([email protected])
* Fri May 17 2024 RPM Builder <[email protected]> 00.75.00-0
- Moved some data structures to newer ones, as per the newest Docker SDK (jean-
- GO version bump ([email protected])
- Completely fixed dtools get ([email protected])
* Thu Feb 01 2024 RPM Builder <[email protected]> 00.74.00-0
- dtools get now supports insecure registries (jean-
- Fixed -d issue, dtools push still not working (jean-
- Fixed default registry path, more info in repo add -h (jean-
* Wed Jan 31 2024 RPM Builder <[email protected]> 00.73.00-2
- Fixed post-inst typos ([email protected])
* Wed Jan 31 2024 RPM Builder <[email protected]> 00.73.00-1
- Bumped release number ([email protected])
- Added pre/post install scripts for all package types (jean-
* Sat Jan 27 2024 RPM Builder <[email protected]> 00.73.00-0
- New output for dtools lsi ([email protected])
* Sat Jan 27 2024 RPM Builder <[email protected]> 00.72.00-0
- Prettified dtools ls output, version bump ([email protected])
- buildDeps + go version bumps ([email protected])
- Renamed a file, no biggie ([email protected])
- Fixed APK release number ([email protected])
* Sat Dec 23 2023 RPM Builder <[email protected]> 00.70.00-0
- Fixed unresolved reference ([email protected])
- Completed vol subcommands ([email protected])
- Doc update, version bump ([email protected])
- Completed volume rm ([email protected])
- Completed volume ls ([email protected])
- Completed volume ls ([email protected])
- Extra commands stubs ([email protected])
- Version bump ([email protected])
- dtools volume stub ([email protected])
- Moved CheckAPIversion() into system ([email protected])
* Fri Dec 22 2023 RPM Builder <[email protected]> 00.60.00-1
- Removed un-needed dependency that might break dnf (jean-
* Fri Dec 22 2023 RPM Builder <[email protected]> 00.60.00-0
- New release : 00.60.00 ([email protected])
- Removed unused function parameter in API version check (jean-
- doc update ([email protected])
- Doc update, fixed stdin being echoed to stdout (jean-
- Markdown shakeup by zigarn (Alexandre Garnier) (jean-
- doc reformatting ([email protected])
- Reverted to kludged dtools exec ([email protected])
* Thu Dec 14 2023 RPM Builder <[email protected]> 00.50.00-0
- New release with a dtools exec mostly working (jean-
- Completed a somehow broken dtools exec ([email protected])
- New command : dtools diff ([email protected])
- Sync zenika->home ([email protected])
- More .md updates ([email protected])
- Doc update + output clarification on dtools lsi (jean-
- Doc update, moved dtools info to dtools system info (jean-
- Moved repo.ReadDefaultFile() to a type receiver (jean-
- More workspace cleanup ([email protected])
- Final doc fix (API version doc) ([email protected])
- Final doc update... for now ([email protected])
- Extra update ([email protected])
- Doc update ([email protected])
- Extra documentation ([email protected])
* Thu Dec 07 2023 RPM Builder <[email protected]> 00.31.00-0
- GO version bump, completed dockergettags and dockergetcatalog (jean-
- Release bump ([email protected])
- Completed network connect/disconnect; added docker API check before using the
soft ([email protected])
* Sun Dec 03 2023 RPM Builder <[email protected]> 00.30.00-0
- Packaging version bump ([email protected])
- Mostly English corrections, really ([email protected])
- Completed network removal command ([email protected])
- Fixed parameters parsing for the inspect subcommand (jean-
- Minor file refactoring ([email protected])
- Completed output of network ls ([email protected])
- Sync Bergen-> ([email protected])
- Completed network ls ([email protected])
- Out of band fix for an overlooked issue ([email protected])
- Enabled rmi, completed tag ([email protected])
* Mon Nov 27 2023 RPM Builder <[email protected]> 00.20.00-0
- Release number bump ([email protected])
- Fixed issue of blindly pushing non-existing images (jean-
- Sync bergen-> ([email protected])
- Removed useless return params ([email protected])
- Fixes to pull, completed broken push ([email protected])
- Completed dtools info ([email protected])
- Completed repo subcommands ([email protected])
- Completed the system info subcommand ([email protected])
- Fixed dumbass GoLand's excessive refactoring (jean-
- ALPINE - Makefile fix ([email protected])
- Fixed control file ([email protected])
* Sat Nov 18 2023 RPM Builder <[email protected]> 00.10.00-0
- new package built with tito
* Sat Nov 18 2023 RPM Builder <[email protected]> 00.10.00-0
- new package built with tito