]> git.pld-linux.org Git - packages/bes.git/blob - bes.spec
- started update to 3.17.0
[packages/bes.git] / bes.spec
1 Summary:        OPeNDAP Back End Server software framework
2 Summary(pl.UTF-8):      Szkielet OPeNDAP Back End Server (serwera backendu OPeNDAP)
3 Name:           bes
4 Version:        3.17.0
5 Release:        0.1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.opendap.org/pub/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  4534a887fe752cb30f20a09bda058fd1
10 Patch0:         %{name}-conf.patch
11 Patch1:         %{name}-configure.patch
12 Patch2:         %{name}-link.patch
13 URL:            http://opendap.org/
14 BuildRequires:  autoconf >= 2.63
15 BuildRequires:  automake >= 1:1.10
16 BuildRequires:  bison
17 BuildRequires:  bzip2-devel
18 %{?with_tests:BuildRequires:    cppunit-devel >= 1.12.0}
19 BuildRequires:  cfitsio-devel
20 BuildRequires:  gdal-devel >= 1.10.0
21 BuildRequires:  gridfields-devel >= 1.0.5
22 BuildRequires:  hdf-devel >= 4
23 BuildRequires:  hdf-eos-devel >= 2
24 BuildRequires:  hdf5-devel
25 BuildRequires:  libdap-devel >= 3.17.0
26 BuildRequires:  libicu-devel >= 3.6
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  libtool >= 2:1.5
29 BuildRequires:  libwrap-devel
30 BuildRequires:  libuuid-devel
31 BuildRequires:  libxml2-devel >= 1:2.6.16
32 BuildRequires:  openjpeg2-devel >= 2
33 BuildRequires:  openssl-devel
34 BuildRequires:  perl-base
35 BuildRequires:  pkgconfig
36 BuildRequires:  readline-devel
37 BuildRequires:  sed >= 4.0
38 BuildRequires:  zlib-devel
39 Requires(pre):  /bin/id
40 Requires(pre):  /usr/bin/getgid
41 Requires(pre):  /usr/sbin/groupadd
42 Requires(pre):  /usr/sbin/useradd
43 Requires(postun):       /usr/sbin/groupdel
44 Requires(postun):       /usr/sbin/userdel
45 Requires:       libxml2 >= 1:2.6.16
46 Requires:       %{name}-libs = %{version}-%{release}
47 Provides:       group(bes)
48 Provides:       user(bes)
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 BES is a high-performance back-end server software framework for
53 OPeNDAP that allows data providers more flexibility in providing end 
54 users views of their data. The current OPeNDAP data objects (DAS, DDS,
55 and DataDDS) are still supported, but now data providers can add new
56 data views, provide new functionality, and new features to their end
57 users through the BES modular design. Providers can add new data
58 handlers, new data objects/views, the ability to define views with
59 constraints and aggregation, the ability to add reporting mechanisms,
60 initialization hooks, and more.
61
62 %description -l pl.UTF-8
63 BES to szkielet wysoko wydajnego serwera backendu dla OPeNDAP,
64 pozwalający na większą elastyczność dostarczycieli danych (providers)
65 w udostępnianiu widoków danych dla użytkowników końcowych. Obecne
66 obiekty danych OPeNDAP (DAS, DDS i DataDDS) są nadal obsługiwane, ale
67 teraz dostarczyciele danych mogą dodawać nowe widoki danych, zapewniać
68 nową funkcjonalność oraz nowe możliwości dla użytkowników końcowych
69 poprzez modularną budowę BES. Dostarczyciele mogą dodawać nowe
70 procedury obsługujące (handlers), nowe obiekty/widoki danych,
71 możliwość definiowania widoków z ograniczeniami i agregacją, możliwość
72 dodawania mechanizmów raportujących, uchwytów inicjujących itd.
73
74 %package libs
75 Summary:        Shared OPeNDAP Back End Server libraries
76 Summary(pl.UTF-8):      Biblioteki współdzielone serwera backendu OPeNDAP
77 Group:          Libraries
78 Requires:       libdap >= 3.17.0
79
80 %description libs
81 Shared OPeNDAP Back End Server libraries.
82
83 %description libs -l pl.UTF-8
84 Biblioteki współdzielone serwera backendu OPeNDAP.
85
86 %package devel
87 Summary:        Header files for OPeNDAP Back End Server libraries
88 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek serwera backendu OPeNDAP
89 Group:          Development/Libraries
90 Requires:       %{name}-libs = %{version}-%{release}
91 Requires:       bzip2-devel
92 Requires:       libstdc++-devel
93 Requires:       openssl-devel
94 Requires:       zlib-devel
95
96 %description devel
97 Header files for OPeNDAP Back End Server libraries.
98
99 %description devel -l pl.UTF-8
100 Pliki nagłówkowe bibliotek serwera backendu OPeNDAP.
101
102 %package static
103 Summary:        Static OPeNDAP Back End Server libraries
104 Summary(pl.UTF-8):      Statyczne biblioteki serwera backendu OPeNDAP
105 Group:          Development/Libraries
106 Requires:       %{name}-devel = %{version}-%{release}
107
108 %description static
109 Static OPeNDAP Back End Server libraries.
110
111 %description static -l pl.UTF-8
112 Statyczne biblioteki serwera backendu OPeNDAP.
113
114 %prep
115 %setup -q
116 %patch0 -p1
117 %patch1 -p1
118 %patch2 -p1
119
120 %build
121 %{__libtoolize}
122 %{__aclocal} -I conf
123 %{__autoconf}
124 %{__autoheader}
125 %{__automake}
126 %configure \
127         CURL=/usr/bin/curl \
128         --with-hdfeos2="" \
129         --with-libwrap
130 %{__make}
131
132 %{?with_tests:%{__make} check}
133
134 %install
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT/etc/pki/bes/{cacerts,certs,public} \
137         $RPM_BUILD_ROOT{/var/cache/bes,/var/log/bes} \
138         $RPM_BUILD_ROOT%{_datadir}/hyrax/data
139
140 %{__make} -j1 install \
141         DESTDIR=$RPM_BUILD_ROOT
142
143 %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.{la,a}
144 # obsoleted by pkg-config
145 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbes*.la
146
147 install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
148 cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/bes.conf <<EOF
149 d /var/run/bes 0775 bes bes -
150 EOF
151
152 %clean
153 rm -rf $RPM_BUILD_ROOT
154
155 %pre
156 %groupadd -g 307 bes
157 %useradd -u 307 -d /var/cache/bes -g bes -s /bin/false -c "BES daemon" bes
158
159 %postun
160 if [ "$1" = "0" ]; then
161         %userremove bes
162         %groupremove bes
163 fi
164
165 %post   libs -p /sbin/ldconfig
166 %postun libs -p /sbin/ldconfig
167
168 %files
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_bindir}/bescmdln
171 %attr(755,root,root) %{_bindir}/besctl
172 %attr(755,root,root) %{_bindir}/besdaemon
173 %attr(755,root,root) %{_bindir}/beslistener
174 %attr(755,root,root) %{_bindir}/besstandalone
175 %attr(755,root,root) %{_bindir}/hyraxctl
176 %dir %{_sysconfdir}/bes/modules
177 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/dap.conf
178 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/functions.conf
179 %dir /etc/pki/bes
180 %dir /etc/pki/bes/cacerts
181 %dir /etc/pki/bes/certs
182 %dir /etc/pki/bes/public
183 %attr(754,root,root) /etc/rc.d/init.d/besd
184 %dir %{_datadir}/hyrax
185 %dir %{_datadir}/hyrax/data
186 %attr(775,bes,bes) %dir /var/cache/bes
187 %attr(775,bes,bes) %dir /var/log/bes
188 %attr(775,bes,bes) %dir /var/run/bes
189 %{systemdtmpfilesdir}/bes.conf
190
191 # [opendap-csv_handler]
192 #%doc modules/csv_handler/{COPYRIGHT,ChangeLog,NEWS,README}
193 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/csv.conf
194 %attr(755,root,root) %{_libdir}/bes/libcsv_module.so
195 %dir %{_datadir}/hyrax/data/csv
196 %{_datadir}/hyrax/data/csv/temperature.csv
197
198 # [opendap-fileout_gdal]
199 #%doc modules/fileout_gdal/{ChangeLog,NEWS,README}
200 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fong.conf
201 %attr(755,root,root) %{_libdir}/bes/libfong_module.so
202
203 # [opendap-fileout_netcdf]
204 #%doc modules/fileout_netcdf/{COPYRIGHT,ChangeLog,NEWS,README}
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fonc.conf
206 %attr(755,root,root) %{_libdir}/bes/libfonc_module.so
207
208 # [opendap-fits_handler]
209 #%doc modules/fits_handler/{COPYRIGHT,ChangeLog,NEWS,README}
210 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fits.conf
211 %attr(755,root,root) %{_libdir}/bes/libfits_module.so
212 %dir %{_datadir}/hyrax/data/fits
213 %{_datadir}/hyrax/data/fits/*.fts
214
215 # [opendap-freeform_handler]
216 #%doc modules/freeform_handler/{COPYRIGHT,ChangeLog,NEWS,README}
217 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/ff.conf
218 %attr(755,root,root) %{_libdir}/bes/libff_module.so
219 %dir %{_datadir}/hyrax/data/ff
220 %{_datadir}/hyrax/data/ff/*.dat
221 %{_datadir}/hyrax/data/ff/*.dat.das
222 %{_datadir}/hyrax/data/ff/*.fmt
223
224 # [opendap-gateway_module]
225 #%doc modules/gateway_module/{COPYRIGHT,ChangeLog,NEWS,README}
226 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/gateway.conf
227 %attr(755,root,root) %{_libdir}/bes/libgateway_module.so
228
229 # [opendap-gdal_handler]
230 #%doc modules/gdal_handler/{ChangeLog,NEWS,README}
231 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/gdal.conf
232 %attr(755,root,root) %{_libdir}/bes/libgdal_module.so
233 %dir %{_datadir}/hyrax/data/gdal
234 %{_datadir}/hyrax/data/gdal/*.wind.grb.bz2
235 %{_datadir}/hyrax/data/gdal/*.jp2
236 %{_datadir}/hyrax/data/gdal/*.jpg
237 %{_datadir}/hyrax/data/gdal/*.lgo
238 %{_datadir}/hyrax/data/gdal/*.tif
239 %{_datadir}/hyrax/data/gdal/*.txt
240 %{_datadir}/hyrax/data/gdal/*.TIF
241 %doc %{_datadir}/hyrax/data/gdal/README
242
243 # [opendap-hdf4_handler]
244 #%doc modules/hdf4_handler/{COPYRIGHT_URI,ChangeLog,NEWS,README}
245 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/h4.conf
246 %attr(755,root,root) %{_libdir}/bes/libhdf4_module.so
247 %dir %{_datadir}/hyrax/data/hdf4
248 %{_datadir}/hyrax/data/hdf4/*.HDF.gz
249 %{_datadir}/hyrax/data/hdf4/*.hdf.gz
250 %{_datadir}/hyrax/data/hdf4/grid_1_2d.hdf
251
252 # [opendap-hdf5_handler]
253 #%doc modules/hdf5_handler/{ChangeLog,NEWS,README}
254 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/h5.conf
255 %attr(755,root,root) %{_libdir}/bes/libhdf5_module.so
256 %dir %{_datadir}/hyrax/data/hdf5
257 %{_datadir}/hyrax/data/hdf5/grid_1_2d.h5
258
259 # [opendap-ncml_module]
260 #%doc modules/ncml_module/{COPYRIGHT,ChangeLog,NEWS,README}
261 %attr(755,root,root) %{_libdir}/bes/libncml_module.so
262 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/ncml.conf
263 #XXX %dir %{_datadir}/hyrax/data/nc
264 %{_datadir}/hyrax/data/nc/jan.nc
265 %{_datadir}/hyrax/data/nc/feb.nc
266 %dir %{_datadir}/hyrax/data/ncml
267 %{_datadir}/hyrax/data/ncml/fnoc1.nc
268 %{_datadir}/hyrax/data/ncml/*.ncml
269 %dir %{_datadir}/hyrax/data/ncml/agg
270 %{_datadir}/hyrax/data/ncml/agg/*.ncml
271 %dir %{_datadir}/hyrax/data/ncml/agg/dated
272 %{_datadir}/hyrax/data/ncml/agg/dated/*.nc
273 %dir %{_datadir}/hyrax/data/ncml/agg/grids
274 %{_datadir}/hyrax/data/ncml/agg/grids/*.hdf
275
276 # [opendap-netcdf_handler]
277 #%doc modules/netcdf_handler/{COPYRIGHT,ChangeLog,NEWS,README}
278 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/nc.conf
279 %attr(755,root,root) %{_libdir}/bes/libnc_module.so
280 # XXX dir here? (see module_ncml)
281 %dir %{_datadir}/hyrax/data/nc
282 %{_datadir}/hyrax/data/nc/bears.nc
283 %{_datadir}/hyrax/data/nc/bears.nc.das
284 %{_datadir}/hyrax/data/nc/coads_climatology.nc
285 %{_datadir}/hyrax/data/nc/fnoc1.das
286 %{_datadir}/hyrax/data/nc/fnoc1.nc
287 %{_datadir}/hyrax/data/nc/fnoc1.nc.html
288 %{_datadir}/hyrax/data/nc/zero_length_array.nc
289
290 # [opendap-ugrid_functions]
291 #%doc modules/ugrid_functions/{ChangeLog,INSTALL,NEWS,README}
292 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/ugrid_functions.conf
293 %attr(755,root,root) %{_libdir}/bes/libugrid_functions.so
294 %dir %{_datadir}/hyrax/data/ugrids
295 %{_datadir}/hyrax/data/ugrids/ugrid_test_*.nc
296
297 # [opendap-xml_data_handler]
298 #%doc modules/xml_data_handler/{ChangeLog,NEWS,README}
299 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/xml_data_handler.conf
300 %attr(755,root,root) %{_libdir}/bes/libxml_data_module.so
301
302 # [dap-server]
303 #%doc modules/dap-server/{COPYRIGHT_*,ChangeLog,NEWS,README}
304 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/dap-server.conf
305 %attr(755,root,root) %{_libdir}/bes/libascii_module.so
306 %attr(755,root,root) %{_libdir}/bes/libusage_module.so
307 %attr(755,root,root) %{_libdir}/bes/libwww_module.so
308 %{_datadir}/bes/dap-server_help.*
309
310 # (fileout_json - new module)
311 #%doc modules/fileout_json/{ChangeLog,NEWS}
312 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fojson.conf
313 %attr(755,root,root) %{_libdir}/bes/libfojson_module.so
314
315 # (w10n_handler - new module)
316 #%doc modules/w10n_handler/{ChangeLog,NEWS}
317 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/w10n.conf
318 %attr(755,root,root) %{_libdir}/bes/libw10n_handler.so
319
320 #%doc dapreader/README
321 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/dapreader.conf
322 %dir %{_datadir}/hyrax/data/dapreader
323 %{_datadir}/hyrax/data/dapreader/fnoc1.das
324 %{_datadir}/hyrax/data/dapreader/fnoc1.data
325 %{_datadir}/hyrax/data/dapreader/fnoc1.dds
326 %dir %{_datadir}/hyrax/data/dapreader/dap4
327 %{_datadir}/hyrax/data/dapreader/dap4/dap4.html
328 %{_datadir}/hyrax/data/dapreader/dap4/D4-xml
329 %{_datadir}/hyrax/data/dapreader/dap4/dmr-testsuite
330
331 %files libs
332 %defattr(644,root,root,755)
333 %doc NEWS README*
334 %attr(755,root,root) %{_libdir}/libbes_dispatch.so.*.*.*
335 %attr(755,root,root) %ghost %{_libdir}/libbes_dispatch.so.8
336 %attr(755,root,root) %{_libdir}/libbes_ppt.so.*.*.*
337 %attr(755,root,root) %ghost %{_libdir}/libbes_ppt.so.4
338 %attr(755,root,root) %{_libdir}/libbes_xml_command.so.*.*.*
339 %attr(755,root,root) %ghost %{_libdir}/libbes_xml_command.so.1
340 %dir %{_libdir}/bes
341 %attr(755,root,root) %{_libdir}/bes/libdap_module.so
342 %attr(755,root,root) %{_libdir}/bes/libdap_xml_module.so
343 %attr(755,root,root) %{_libdir}/bes/libdapreader_module.so
344 %attr(755,root,root) %{_libdir}/bes/libfunctions_module.so
345 %dir %{_sysconfdir}/bes
346 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/bes.conf
347 %dir %{_datadir}/bes
348 %{_datadir}/bes/bes_help.*
349 %{_datadir}/bes/dap_help.*
350
351 %files devel
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/bes-config
354 %attr(755,root,root) %{_bindir}/bes-config-pkgconfig
355 %attr(755,root,root) %{_bindir}/besCreateModule
356 %attr(755,root,root) %{_libdir}/libbes_dispatch.so
357 %attr(755,root,root) %{_libdir}/libbes_ppt.so
358 %attr(755,root,root) %{_libdir}/libbes_xml_command.so
359 %{_includedir}/bes
360 %{_pkgconfigdir}/bes_dispatch.pc
361 %{_pkgconfigdir}/bes_ppt.pc
362 %{_pkgconfigdir}/bes_xml_command.pc
363 %{_aclocaldir}/bes.m4
364 %{_datadir}/bes/templates
365
366 %files static
367 %defattr(644,root,root,755)
368 %{_libdir}/libbes_dispatch.a
369 %{_libdir}/libbes_ppt.a
370 %{_libdir}/libbes_xml_command.a
This page took 1.099056 seconds and 4 git commands to generate.