-
Notifications
You must be signed in to change notification settings - Fork 3
/
gtransfer.spec
289 lines (242 loc) · 11.7 KB
/
gtransfer.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
Name: gtransfer
Version: 0.8.1
Release: 1%{?dist}
Summary: Advanced data transfer tool for GridFTP
Group: base
License: GPLv3
URL: https://github.com/fr4nk5ch31n3r/%{name}
Source0: https://github.com/fr4nk5ch31n3r/%{name}/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: coreutils,grep,sed,telnet,tgftp,uberftp,globus-gass-copy-progs
%description
gtransfer - An advanced data transfer tool for GridFTP. Gtransfer is a wrapper
for tgftp (which itself wraps globus-url-copy) and also uses functionality of
uberftp. Gtransfer provides several features that make it easy and comfortable
to use, that allow rerouting of data transfers for improved performance or
crossing network domains and that also allow for high-performance data
transfers.
%prep
%setup -q -n %{name}-%{version}
%install
rm -rf %{buildroot}
# Create needed directories
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/pids
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/aliases
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
mkdir -p %{buildroot}%{_bindir}
# SLES does not have a "libexec" dir!
%if 0%{?rhel}
mkdir -p %{buildroot}%{_libexecdir}/%{name}
%endif
mkdir -p %{buildroot}%{_datadir}/%{name}/pids
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
################################################################################
# Install all files
################################################################################
# * Configuration files
################################################################################
cp etc/gtransfer/gtransfer.conf %{buildroot}%{_sysconfdir}/%{name}/
cp etc/gtransfer/dpath.conf %{buildroot}%{_sysconfdir}/%{name}/
cp etc/gtransfer/dparam.conf %{buildroot}%{_sysconfdir}/%{name}/
cp etc/gtransfer/dpath.template %{buildroot}%{_sysconfdir}/%{name}/
cp etc/gtransfer/chunkConfig %{buildroot}%{_sysconfdir}/%{name}/
cp etc/gtransfer/pids/irodsMicroService_mappingFile %{buildroot}%{_sysconfdir}/%{name}/pids/
cp etc/gtransfer/aliases.conf %{buildroot}%{_sysconfdir}/%{name}/
cp etc/bash_completion.d/gtransfer.sh %{buildroot}%{_sysconfdir}/bash_completion.d/
cp etc/bash_completion.d/gtools.sh %{buildroot}%{_sysconfdir}/bash_completion.d/
################################################################################
# * Bash libraries
################################################################################
cp lib/gtransfer/autoOptimization.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/exitCodes.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/helperFunctions.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/listTransfer.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/urlTransfer.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/alias.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/pids/irodsMicroService.bashlib %{buildroot}%{_datadir}/%{name}/pids/
cp lib/gtransfer/multipathing.bashlib %{buildroot}%{_datadir}/%{name}/
cp lib/gtransfer/gridftp.bashlib %{buildroot}%{_datadir}/%{name}/
################################################################################
# * Tools and symlinks
################################################################################
cp bin/gtransfer.bash %{buildroot}%{_bindir}/
cp bin/datapath.bash %{buildroot}%{_bindir}/
cp bin/defaultparam.bash %{buildroot}%{_bindir}/
cp bin/halias.bash %{buildroot}%{_bindir}/
cp bin/gtransfer-version.bash %{buildroot}%{_bindir}/
cp bin/gtools.bash %{buildroot}%{_bindir}/
ln -s gtransfer.bash %{buildroot}%{_bindir}/gtransfer
ln -s gtransfer.bash %{buildroot}%{_bindir}/gt
ln -s datapath.bash %{buildroot}%{_bindir}/dpath
ln -s defaultparam.bash %{buildroot}%{_bindir}/dparam
ln -s halias.bash %{buildroot}%{_bindir}/halias
ln -s gtransfer-version.bash %{buildroot}%{_bindir}/gt-version
ln -s gtools.bash %{buildroot}%{_bindir}/gtools
ln -s gtools.bash %{buildroot}%{_bindir}/gcat
ln -s gtools.bash %{buildroot}%{_bindir}/gls
ln -s gtools.bash %{buildroot}%{_bindir}/gmkdir
ln -s gtools.bash %{buildroot}%{_bindir}/gmv
ln -s gtools.bash %{buildroot}%{_bindir}/grm
################################################################################
# * Additional (internal) tools
################################################################################
%if 0%{?rhel}
cp libexec/getPidForUrl.r %{buildroot}%{_libexecdir}/%{name}/
cp libexec/getUrlForPid.r %{buildroot}%{_libexecdir}/%{name}/
cp libexec/packBinsNew.py %{buildroot}%{_libexecdir}/%{name}/
%endif
# SLES does not have a "libexec" dir!
%if 0%{?suse_version}
cp libexec/getPidForUrl.r %{buildroot}%{_datadir}/%{name}/
cp libexec/getUrlForPid.r %{buildroot}%{_datadir}/%{name}/
cp libexec/packBinsNew.py %{buildroot}%{_datadir}/%{name}/
%endif
################################################################################
# * Manpages
################################################################################
cp share/man/man1/gtransfer.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/gt.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/dpath.1 %{buildroot}%{_mandir}/man1/
cp share/man/man5/dpath.5 %{buildroot}%{_mandir}/man5/
cp share/man/man1/dparam.1 %{buildroot}%{_mandir}/man1/
cp share/man/man5/dparam.5 %{buildroot}%{_mandir}/man5/
cp share/man/man1/halias.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/gtools.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/gcat.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/gls.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/gmkdir.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/gmv.1 %{buildroot}%{_mandir}/man1/
cp share/man/man1/grm.1 %{buildroot}%{_mandir}/man1/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%config %{_sysconfdir}/%{name}/gtransfer.conf
%config %{_sysconfdir}/%{name}/dpath.conf
%config %{_sysconfdir}/%{name}/dparam.conf
%config %{_sysconfdir}/%{name}/dpath.template
%config %{_sysconfdir}/%{name}/chunkConfig
%config %{_sysconfdir}/%{name}/pids/irodsMicroService_mappingFile
%config %{_sysconfdir}/%{name}/aliases.conf
%config %{_sysconfdir}/bash_completion.d/gtransfer.sh
%config %{_sysconfdir}/bash_completion.d/gtools.sh
%doc README.md COPYING ChangeLog share/doc/dparam.1.md share/doc/dparam.5.md share/doc/dpath.1.md share/doc/dpath.5.md share/doc/gtransfer.1.md share/doc/halias.1.md share/doc/gtools.1.md share/doc/host-aliases.md share/doc/persistent-identifiers.md share/doc/images/multi-step-transfer.png share/doc/images/multipathing-transfer.png
%{_sysconfdir}/%{name}
%{_sysconfdir}/bash_completion.d
%{_sysconfdir}/bash_completion.d/gtransfer.sh
%{_sysconfdir}/bash_completion.d/gtools.sh
%{_bindir}/gtransfer.bash
%{_bindir}/gtransfer
%{_bindir}/gt
%{_bindir}/datapath.bash
%{_bindir}/dpath
%{_bindir}/defaultparam.bash
%{_bindir}/dparam
%{_bindir}/halias.bash
%{_bindir}/halias
%{_bindir}/gtransfer-version.bash
%{_bindir}/gt-version
%{_bindir}/gtools.bash
%{_bindir}/gtools
%{_bindir}/gcat
%{_bindir}/gls
%{_bindir}/gmkdir
%{_bindir}/gmv
%{_bindir}/grm
%if 0%{?rhel}
%{_libexecdir}/%{name}
%{_libexecdir}/%{name}/getPidForUrl.r
%{_libexecdir}/%{name}/getUrlForPid.r
%{_libexecdir}/%{name}/packBinsNew.py
%endif
%{_datadir}/%{name}
%{_datadir}/%{name}/autoOptimization.bashlib
%{_datadir}/%{name}/exitCodes.bashlib
%{_datadir}/%{name}/helperFunctions.bashlib
%{_datadir}/%{name}/listTransfer.bashlib
%{_datadir}/%{name}/urlTransfer.bashlib
%{_datadir}/%{name}/alias.bashlib
%{_datadir}/%{name}/pids/irodsMicroService.bashlib
%{_datadir}/%{name}/multipathing.bashlib
%{_datadir}/%{name}/gridftp.bashlib
%if 0%{?suse_version}
%{_datadir}/%{name}
%{_datadir}/%{name}/getPidForUrl.r
%{_datadir}/%{name}/getUrlForPid.r
%{_datadir}/%{name}/packBinsNew.py
%endif
%{_mandir}/man1/gtransfer.1.gz
%{_mandir}/man1/gt.1.gz
%{_mandir}/man1/dpath.1.gz
%{_mandir}/man5/dpath.5.gz
%{_mandir}/man1/dparam.1.gz
%{_mandir}/man5/dparam.5.gz
%{_mandir}/man1/halias.1.gz
%{_mandir}/man1/gtools.1.gz
%{_mandir}/man1/gcat.1.gz
%{_mandir}/man1/gls.1.gz
%{_mandir}/man1/gmkdir.1.gz
%{_mandir}/man1/gmv.1.gz
%{_mandir}/man1/grm.1.gz
%changelog
* Thu Apr 20 2017 Frank Scheiner <[email protected]> 0.8.1-1
- Updated source version number to new patch level.
* Mon Mar 27 2017 Frank Scheiner <[email protected]> 0.8.0-1
- Updated source package and version number to new release. Also added new gtools to the toolkit.
* Thu Sep 08 2016 Frank Scheiner <[email protected]> 0.7.1-1
- Updated source version number to new patch level.
* Thu Sep 01 2016 Frank Scheiner <[email protected]> 0.7.0-1
- Updated source package and version number to new release.
* Thu Jun 30 2016 Frank Scheiner <[email protected]> 0.6.0-1
- Updated source package and version number to new release.
* Thu Apr 12 2016 Frank Scheiner <[email protected]> 0.5.1-1
- Updated source version number to new patch level.
* Thu Apr 12 2016 Frank Scheiner <[email protected]> 0.5.0-1
- Updated source package and version number to new release.
* Wed Jan 27 2016 Frank Scheiner <[email protected]> 0.4.1-1
- Updated source version number to new patch level.
* Thu Sep 17 2015 Frank Scheiner <[email protected]> 0.4.0-1
- Updated source package and version number to new release.
* Fri Apr 24 2015 Frank Scheiner <[email protected]> 0.3.0-2
- Changed if clauses to detect all RHEL compatible distributions (Scientific Linux was missing).
* Thu Apr 23 2015 Frank Scheiner <[email protected]> 0.3.0-1
- Updated source package and version number to new release.
* Thu Apr 23 2015 Frank Scheiner <[email protected]> 0.3.0RC2-1
- Introduced specific behaviour for SLES and RHEL compatible. Also added "%%config" tags for some config files.
* Fri Apr 17 2015 Frank Scheiner <[email protected]> 0.3.0RC1-1
- Updated source package and version number to upstream version.
* Fri Jan 16 2015 Frank Scheiner <[email protected]> 0.3.0BETA4-1
- Updated spec file to include new multipathing support and gt-version tool.
* Fri Jul 25 2014 Frank Scheiner <[email protected]> 0.3.0BETA3-1
- Updated source package and version number to upstream version.
* Thu Nov 14 2013 Frank Scheiner <[email protected]> 0.3.0BETA1-1
- Added spec file to gtransfer repo. Bash libraries (architecture independent files) are now stored below "/usr/share/gtransfer".
* Thu Nov 14 2013 Frank Scheiner <[email protected]> 0.2.2-2
- Added missing aliases.conf and aliases dir to RPM.
* Thu Nov 14 2013 Frank Scheiner <[email protected]> 0.2.2-1
- Updated source package and version number to upstream version.
* Tue Oct 08 2013 Frank Scheiner <[email protected]> 0.2.0-1
- Updated source package and version number to upstream version. Included new files.
* Fri Apr 05 2013 Frank Scheiner <[email protected]> 0.1.2-2
- Added missing chunkconfig file to RPM.
* Fri Jan 25 2013 Frank Scheiner <[email protected]> 0.1.2-1
- Updated source package and version number to upstream version.
* Thu Jan 24 2013 Frank Scheiner <[email protected]> 0.1.1-1
- Updated source package and version number to upstream version.
* Fri Jan 18 2013 Frank Scheiner <[email protected]> 0.1.0-1
- Updated source package and version number to upstream version. Also included used bash libs. Updated name of bash completion file. Updated dir structure.
* Mon Nov 19 2012 Frank Scheiner <[email protected]> 0.0.10a-1
- Updated source package and version number to upstream version.
* Thu Nov 15 2012 Frank Scheiner <[email protected]> 0.0.10-1
- Updated source package and version number to upstream version.
* Mon Nov 05 2012 Frank Scheiner <[email protected]> 0.0.9c-1
- Updated source package and version number to upstream version. Also updated README name.
* Fri Oct 03 2012 Frank Scheiner <[email protected]> 0.0.9b-1
- Updated source package and version number.
* Fri Oct 03 2012 Frank Scheiner <[email protected]> 0.0.9a-1
- Updated source package and version number. Added bash_completion file.
* Fri Sep 21 2012 Frank Scheiner <[email protected]> 0.0.9-1
- Initial RPM package build for OBS