3 %bcond_with tests # make check (requires BES server)
5 Summary: Basic request handling the OPeNDAP data server
6 Summary(pl.UTF-8): Obsługa podstawowych zapytań dla serwera danych OPeNDAP
7 Name: opendap-xml_data_handler
12 Source0: http://www.opendap.org/pub/source/xml_data_handler-%{version}.tar.gz
13 # Source0-md5: 9762a8b761c6c21d3ebbacd23e37e9b1
14 Patch0: %{name}-libdap.patch
15 URL: http://opendap.org/
16 BuildRequires: autoconf >= 2.62
17 BuildRequires: automake >= 1:1.10
18 %{?with_tests:BuildRequires: bes >= 3.13.0}
19 BuildRequires: bes-devel >= 3.13.0
20 %{?with_tests:BuildRequires: cppunit-devel >= 1.12.0}
21 BuildRequires: libdap-devel >= 3.13.0
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool >= 2:2
24 BuildRequires: pkgconfig
25 Requires: bes >= 3.13.0
26 Requires: libdap >= 3.13.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This package contains a general purpose handler for use with the Hyrax
31 data server. This handler takes input from a 'data handler' and
32 returns XML document that encodes both dataset metadata and values. It
33 is intended to be used for small data requests and web systems that
34 need data in XML documents.
36 %description -l pl.UTF-8
37 Ten pakiet zawiera moduł obsługi ogólnego przeznaczenia przeznaczony
38 dla serwera danych Hyrax. Moduł ten przyjmuje dane wejściowe z modułu
39 obsługi danych (data handler) i zwraca dokuemnt XML, zawierający
40 zakodowane zarówno metadane, jak i wartości zbioru danych. Jest
41 przeznaczony do użycia dla ządań małych danych oraz systemów WWW
42 wymagających danych w dokumentach XML.
45 %setup -q -n xml_data_handler-%{version}
49 # rebuild autotools for -as-needed to work
58 %{?with_tests:%{__make} check}
61 rm -rf $RPM_BUILD_ROOT
64 DESTDIR=$RPM_BUILD_ROOT
66 %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc ChangeLog NEWS README
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/xml_data_handler.conf
75 %attr(755,root,root) %{_libdir}/bes/libxml_data_module.so