]>
Commit | Line | Data |
---|---|---|
b3b30634 JB |
1 | Summary: CDF 3 data handler for the OPeNDAP data server |
2 | Summary(pl.UTF-8): Moduł obsługujący dane CDF 3 dla serwera danych OPeNDAP | |
3 | Name: opendap-cdf_handler | |
4 | Version: 1.0.3 | |
61fed36c | 5 | Release: 2 |
b3b30634 JB |
6 | License: LGPL v2.1+ |
7 | Group: Daemons | |
8 | Source0: http://www.opendap.org/pub/source/cdf_handler-%{version}.tar.gz | |
9 | # Source0-md5: 79060adceda4e72265e1899f80926639 | |
10 | Patch0: %{name}-libdap.patch | |
11 | Patch1: %{name}-includes.patch | |
12 | Patch2: %{name}-bes.patch | |
13 | URL: http://opendap.org/ | |
14 | BuildRequires: autoconf >= 2.59 | |
15 | BuildRequires: automake | |
16 | BuildRequires: bes-devel >= 3.6.0 | |
17 | BuildRequires: cdflib-devel >= 3.1 | |
18 | BuildRequires: libdap-devel >= 3.8.0 | |
19 | BuildRequires: libstdc++-devel | |
20 | BuildRequires: libtool >= 2:1.5 | |
21 | BuildRequires: pkgconfig | |
22 | Requires: bes >= 3.6.0 | |
23 | Requires: cdflib >= 3.1 | |
24 | Requires: libdap >= 3.8.0 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This is the CDF data handler for OPeNDAP data server. It reads | |
29 | cdf31-dist files and returns DAP responses that are compatible with | |
30 | DAP2 and the dap-server software. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Ten pakiet zawiera moduł obsługi danych CDF dla serwera danych | |
34 | OPeNDAP. Odczytuje pliki cdf31-dist i zwraca odpowiedzi DAP zgodne z | |
35 | DAP2 oraz oprogramowaniem dap-server. | |
36 | ||
37 | %prep | |
38 | %setup -q -n cdf_handler-%{version} | |
39 | %patch0 -p1 | |
40 | %patch1 -p1 | |
41 | %patch2 -p1 | |
42 | ||
43 | %build | |
44 | # rebuild autotools for -as-needed to work | |
45 | %{__libtoolize} | |
46 | %{__aclocal} -I conf | |
47 | %{__autoconf} | |
48 | %{__autoheader} | |
49 | %{__automake} | |
50 | %configure \ | |
51 | --disable-static \ | |
868a7e00 | 52 | --with-cdf-include=%{_includedir}/cdf \ |
b3b30634 JB |
53 | --with-cdf-libdir=%{_libdir} |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la | |
63 | # API not exported | |
64 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.{la,so} | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc COPYRIGHT ChangeLog NEWS README | |
75 | %attr(755,root,root) %{_bindir}/bes-cdf-data.sh | |
76 | %attr(755,root,root) %{_bindir}/dap_cdf_handler | |
77 | %attr(755,root,root) %{_libdir}/libcdf_handler.so.*.*.* | |
78 | %attr(755,root,root) %ghost %{_libdir}/libcdf_handler.so.1 | |
79 | %attr(755,root,root) %{_libdir}/bes/libcdf_module.so | |
80 | %dir %{_datadir}/hyrax/data/cdf | |
81 | %{_datadir}/hyrax/data/cdf/*.cdf |