]>
Commit | Line | Data |
---|---|---|
35c79efd JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # make check (requires BES server) | |
4 | # | |
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 | |
6aafff77 | 8 | Version: 1.0.4 |
35c79efd JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Daemons | |
12 | Source0: http://www.opendap.org/pub/source/xml_data_handler-%{version}.tar.gz | |
6aafff77 JB |
13 | # Source0-md5: 9762a8b761c6c21d3ebbacd23e37e9b1 |
14 | Patch0: %{name}-libdap.patch | |
35c79efd JB |
15 | URL: http://opendap.org/ |
16 | BuildRequires: autoconf >= 2.62 | |
17 | BuildRequires: automake >= 1:1.10 | |
6aafff77 JB |
18 | %{?with_tests:BuildRequires: bes >= 3.13.0} |
19 | BuildRequires: bes-devel >= 3.13.0 | |
35c79efd | 20 | %{?with_tests:BuildRequires: cppunit-devel >= 1.12.0} |
6aafff77 | 21 | BuildRequires: libdap-devel >= 3.13.0 |
35c79efd JB |
22 | BuildRequires: libstdc++-devel |
23 | BuildRequires: libtool >= 2:2 | |
24 | BuildRequires: pkgconfig | |
6aafff77 JB |
25 | Requires: bes >= 3.13.0 |
26 | Requires: libdap >= 3.13.0 | |
35c79efd JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
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. | |
35 | ||
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. | |
43 | ||
44 | %prep | |
45 | %setup -q -n xml_data_handler-%{version} | |
6aafff77 | 46 | %patch0 -p1 |
35c79efd JB |
47 | |
48 | %build | |
49 | # rebuild autotools for -as-needed to work | |
50 | %{__libtoolize} | |
51 | %{__aclocal} -I conf | |
52 | %{__autoconf} | |
53 | %{__autoheader} | |
54 | %{__automake} | |
55 | %configure | |
56 | %{__make} | |
57 | ||
58 | %{?with_tests:%{__make} check} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
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 |