]>
Commit | Line | Data |
---|---|---|
eca106e1 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # make check (requires BES server) | |
4 | # | |
5 | Summary: FITS data handler module for the OPeNDAP data server | |
6 | Summary(pl.UTF-8): Moduł obsługujący dane FITS dla serwera danych OPeNDAP | |
7 | Name: opendap-fits_handler | |
8 | Version: 1.0.10 | |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Daemons | |
12 | Source0: http://www.opendap.org/pub/source/fits_handler-%{version}.tar.gz | |
13 | # Source0-md5: 3a479a12b73a37b2ffca4fa079421a98 | |
14 | URL: http://opendap.org/ | |
15 | BuildRequires: autoconf >= 2.59 | |
16 | BuildRequires: automake >= 1:1.10 | |
17 | %{?with_tests:BuildRequires: bes >= 3.9.1} | |
18 | BuildRequires: bes-devel >= 3.9.1 | |
19 | BuildRequires: cfitsio-devel | |
20 | BuildRequires: libdap-devel >= 3.11.1 | |
21 | BuildRequires: libstdc++-devel | |
22 | BuildRequires: libtool >= 2:1.5 | |
23 | BuildRequires: pkgconfig | |
24 | Requires: bes >= 3.9.1 | |
25 | Requires: libdap >= 3.11.1 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This is the FITS data handler module for the OPeNDAP data server. It | |
30 | reads FITS data and returns DAP responses that are compatible with | |
31 | DAP2 and the dap-server software. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Ten pakiet zawiera moduł obsługujący dane FITS dla serwera danych | |
35 | OPeNDAP. Odczytuje dane FITS i zwraca odpowiedzi DAP zgodne z | |
36 | oprogramowaniem DAP2 i dap-server. | |
37 | ||
38 | %prep | |
39 | %setup -q -n fits_handler-%{version} | |
40 | ||
41 | %build | |
42 | # rebuild autotools for -as-needed to work | |
43 | %{__libtoolize} | |
44 | %{__aclocal} -I conf | |
45 | %{__autoconf} | |
46 | %{__autoheader} | |
47 | %{__automake} | |
48 | %configure \ | |
49 | --with-cfits-include=%{_includedir} \ | |
50 | --with-cfits-libdir=%{_libdir} | |
51 | %{__make} | |
52 | ||
53 | %{?with_tests:%{__make} check} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc COPYRIGHT ChangeLog NEWS README | |
69 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fits.conf | |
70 | %attr(755,root,root) %{_libdir}/bes/libfits_module.so | |
71 | %dir %{_datadir}/hyrax/data/fits | |
72 | %{_datadir}/hyrax/data/fits/*.fts |