forked from dCache/dcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dcap.spec.in
254 lines (218 loc) · 5.64 KB
/
dcap.spec.in
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
%define krb 0
%define vdt 0
%define epel 0
%define ssl 0
%{?_with_krb:%define krb 1}
%{?_with_vdt:%define vdt 1}
%{?_with_epel:%define epel 1}
%{?_with_ssl:%define ssl 1}
%if %vdt || %epel
%define gsi 1
%else
%define gsi 0
%endif
Summary: dCache Client
Vendor: dcache.org
Name: @PACKAGE@
Version: @VERSION@
Release: @VER_PATCH@
Prefix: /opt/d-cache/dcap
#BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRoot: %{_tmppath}/%{name}-root
Source: @PACKAGE@-@VERSION@.tar.gz
License: LGPL
Group: Applications/System
BuildRequires: zlib-devel
%description
dCache is a distributed mass storage system.
This package contains the client components.
%package tests
Summary: dCache Client libraries Tests
Group: Applications/System
%description tests
dCache is a distributed mass storage system.
%package -n libdcap
Summary: dCache Client libraries
Group: Applications/System
%description -n libdcap
dCache is a distributed mass storage system.
This package contains the client libraries dcachedcap.
%package -n libdcap-devel
Summary: dCache Client Headers
Group: Applications/System
Requires: libdcap
%description -n libdcap-devel
This package contains the client library dcachedcap header files.
%if %gsi
%package -n libdcap-tunnel-gsi
Summary: dCache GSI Tunnel
Group: Applications/System
Requires: libdcap
BuildRequires: openssl-devel
%if %vdt
BuildRequires: vdt_globus_essentials
%endif
%if %epel
BuildRequires: globus-gssapi-gsi-devel
%endif
%description -n libdcap-tunnel-gsi
This package contains the gsi tunnel plugin library used by dcachedcap.
This library is dynamically loaded at run time.
%endif
%if %krb
%package -n libdcap-tunnel-krb
Summary: dCache Kerberos Tunnel
Group: Applications/System
Requires: libdcap
BuildRequires: krb5-devel
%description -n libdcap-tunnel-krb
This package contains the kerberos tunnel plugin library used by dcachedcap.
This library is dynamically loaded at run time.
%endif
%package -n libdcap-tunnel-telnet
Summary: dCache Telnet Tunnel
Group: Applications/System
Requires: libdcap
%description -n libdcap-tunnel-telnet
This package contains the telnet tunnel plugin library used by dcachedcap.
This library is dynamically loaded at run time.
%if %ssl
%package -n libdcap-tunnel-ssl
Summary: dCache SSL Tunnel
Group: Applications/System
Requires: libdcap
BuildRequires: openssl-devel
%description -n libdcap-tunnel-ssl
This package contains the ssl tunnel plugin library used by dcachedcap.
This library is dynamically loaded at run time.
%endif
%prep
%setup -q -n @PACKAGE@-@VERSION@
%build
libdir=%{prefix}/lib
bindir=%{prefix}/bin
%ifos Linux
%ifarch x86_64
libdir=%{prefix}/lib64
%endif
%endif
CPPFLAGS="@CPPFLAGS@" LDFLAGS="@LDFLAGS@" ./configure \
--bindir=/${bindir} \
--libdir=/${libdir} \
--with-doc-dir=%{prefix}/share/doc/@PACKAGE@-@VERSION@ \
--includedir=%{prefix}/include/ \
--with-krb5-gssapi-include=@KRB5_GSSAPI_INCLUDE_DIR@ \
--with-globus-include=@GLOBUS_INCLUDE_DIR@ \
--with-globus-lib=@GLOBUS_LIB_DIR@
make
%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
make install DESTDIR=$RPM_BUILD_ROOT
echo --libdir=/${libdir}
%clean
rm -rf $RPM_BUILD_ROOT
%pre
#%post
%preun
#%postun
%files
%defattr(-,root,root)
%attr(0755,root,root) %{prefix}/bin/dccp
%{prefix}/share/doc/@PACKAGE@-@VERSION@/AUTHORS
%{prefix}/share/doc/@PACKAGE@-@VERSION@/ChangeLog
%{prefix}/share/doc/@PACKAGE@-@VERSION@/COPYING
%{prefix}/share/doc/@PACKAGE@-@VERSION@/INSTALL
%{prefix}/share/doc/@PACKAGE@-@VERSION@/LICENSE
%{prefix}/share/doc/@PACKAGE@-@VERSION@/README
%files tests
%defattr(0755,root,root)
%{prefix}/bin/dcap_test
%{prefix}/bin/dcsuck
%{prefix}/bin/readv_test
%{prefix}/bin/wdccp
%{prefix}/bin/dcap_url-test
%files -n libdcap
%defattr(-,root,root)
%ifarch x86_64
%{prefix}/lib64/libdcap.so*
%{prefix}/lib64/libpdcap.so*
%else
%{prefix}/lib/libdcap.so*
%{prefix}/lib/libpdcap.so*
%endif
%files -n libdcap-devel
%defattr(-,root,root)
%{prefix}/include/dc_hack.h
%{prefix}/include/dcap.h
%{prefix}/include/dcap_errno.h
%{prefix}/share/doc/@PACKAGE@-@VERSION@/examples/dccp.c
%ifarch x86_64
%{prefix}/lib64/libdcap.a
%{prefix}/lib64/libdcap.la
%{prefix}/lib64/libpdcap.a
%{prefix}/lib64/libpdcap.la
%else
%{prefix}/lib/libdcap.a
%{prefix}/lib/libdcap.la
%{prefix}/lib/libpdcap.a
%{prefix}/lib/libpdcap.la
%endif
%if %gsi
%files -n libdcap-tunnel-gsi
%defattr(-,root,root)
%ifarch x86_64
%{prefix}/lib64/libgsiTunnel.a
%{prefix}/lib64/libgsiTunnel.la
%{prefix}/lib64/libgsiTunnel.so*
%else
%{prefix}/lib/libgsiTunnel.a
%{prefix}/lib/libgsiTunnel.la
%{prefix}/lib/libgsiTunnel.so*
%endif
%endif
%if %krb
%files -n libdcap-tunnel-krb
%defattr(-,root,root)
%ifarch x86_64
%{prefix}/lib64/libgssTunnel.a
%{prefix}/lib64/libgssTunnel.la
%{prefix}/lib64/libgssTunnel.so*
%else
%{prefix}/lib/libgssTunnel.a
%{prefix}/lib/libgssTunnel.la
%{prefix}/lib/libgssTunnel.so*
%endif
%endif
%files -n libdcap-tunnel-telnet
%defattr(-,root,root)
%ifarch x86_64
%{prefix}/lib64/libtelnetTunnel.a
%{prefix}/lib64/libtelnetTunnel.la
%{prefix}/lib64/libtelnetTunnel.so*
%else
%{prefix}/lib/libtelnetTunnel.a
%{prefix}/lib/libtelnetTunnel.la
%{prefix}/lib/libtelnetTunnel.so*
%endif
%if %ssl
%files -n libdcap-tunnel-ssl
%defattr(-,root,root)
%ifarch x86_64
%{prefix}/lib64/libsslTunnel.a
%{prefix}/lib64/libsslTunnel.la
%{prefix}/lib64/libsslTunnel.so*
%else
%{prefix}/lib/libsslTunnel.a
%{prefix}/lib/libsslTunnel.la
%{prefix}/lib/libsslTunnel.so*
%endif
%endif
%changelog
* Wed Dec 22 2010 - tigran.mkrtchyan (at) desy.de
- Fixed files ownership
* Thu Nov 19 2009 - owen.synge (at) desy.de
- Repackaged with auto tools
* Fri Sep 26 2009 - owen.synge (at) desy.de
- Added cleaned up packaging.
* Wed Sep 24 2009 - owen.synge (at) desy.de
- Released first version of this packaging.