3 %bcond_with tests # make check (requires BES server)
5 Summary: CSV module for the OPeNDAP data server
6 Summary(pl.UTF-8): Moduł CSV dla serwera danych OPeNDAP
7 Name: opendap-csv_handler
12 Source0: http://www.opendap.org/pub/source/csv_handler-%{version}.tar.gz
13 # Source0-md5: 59a3c15979143753a70efc5a1a23c6fc
14 URL: http://opendap.org/
15 BuildRequires: autoconf >= 2.59
16 BuildRequires: automake >= 1:1.10
17 %{?with_tests:BuildRequires: bes >= 3.13.0}
18 BuildRequires: bes-devel >= 3.13.0
19 %{?with_tests:BuildRequires: cppunit-devel >= 1.12.0}
20 BuildRequires: libdap-devel >= 3.13.0
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.5
23 BuildRequires: pkgconfig
24 Requires: bes >= 3.13.0
25 Requires: libdap >= 3.13.0
26 # old name (single v3.5.1 release from 2010)
27 Obsoletes: opendap-csv_module
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is the CSV module for the OPeNDAP data server. It serves data
32 stored in CSV-formatted files.
34 %description -l pl.UTF-8
35 Ten pakiet zawiera moduł CSV dla serwera danych OPeNDAP. Serwuje dane
36 zapisane w plikach w formacie CSV.
39 %setup -q -n csv_handler-%{version}
42 # rebuild autotools for -as-needed to work
51 %{?with_tests:%{__make} check}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
59 %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc COPYRIGHT ChangeLog NEWS README
67 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/csv.conf
68 %attr(755,root,root) %{_libdir}/bes/libcsv_module.so
69 %dir %{_datadir}/hyrax/data/csv
70 %{_datadir}/hyrax/data/csv/temperature.csv