]>
Commit | Line | Data |
---|---|---|
9ef468fd JB |
1 | # |
2 | # Conditional build: | |
448fc012 JB |
3 | %bcond_without tests # don't perform "make check" |
4 | # (note: tests need endoder-enabled szip) | |
5 | %bcond_with tests_net # remote tests (Internet access required) | |
9ef468fd | 6 | # |
765d5b43 | 7 | Summary: NetCDF: Network Common Data Form |
3cc44f67 | 8 | Summary(pl.UTF-8): NetCDF: obsługa wspólnego sieciowego formatu danych |
765d5b43 | 9 | Name: netcdf |
b0f6dfc4 | 10 | Version: 4.3.2 |
d0e4bd3e | 11 | Release: 5 |
a720171d | 12 | License: BSD-like |
765d5b43 | 13 | Group: Libraries |
ecbe1b4e | 14 | Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz |
b0f6dfc4 | 15 | # Source0-md5: 2fd2365e1fe9685368cd6ab0ada532a0 |
12c24a38 | 16 | URL: http://www.unidata.ucar.edu/packages/netcdf/ |
e012fa8d | 17 | BuildRequires: autoconf >= 2.59 |
a4487e06 | 18 | BuildRequires: automake |
5c3de209 | 19 | BuildRequires: curl-devel |
9292de23 | 20 | BuildRequires: doxygen |
6f1b7ff5 | 21 | BuildRequires: hdf5-devel >= 1.8.5 |
75b6cea1 | 22 | BuildRequires: libstdc++-devel |
9292de23 | 23 | BuildRequires: libtool >= 2:2.2 |
b0f6dfc4 | 24 | BuildRequires: sed >= 4.0 |
a5ed4445 | 25 | BuildRequires: szip-devel >= 2.1-2 |
ecbe1b4e | 26 | BuildRequires: texinfo |
6f1b7ff5 | 27 | Requires: hdf5 >= 1.8.5 |
a720171d | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
765d5b43 JB |
29 | |
30 | %description | |
31 | NetCDF (network Common Data Form) is an interface for array-oriented | |
32 | data access and a library that provides an implementation of the | |
33 | interface. The netCDF library also defines a machine-independent | |
34 | format for representing scientific data. Together, the interface, | |
35 | library, and format support the creation, access, and sharing of | |
36 | scientific data. The netCDF software was developed at the Unidata | |
37 | Program Center in Boulder, Colorado. | |
38 | ||
59e9f566 | 39 | This package contains C library. |
9ef468fd | 40 | |
718e7962 JR |
41 | %description -l pl.UTF-8 |
42 | NetCDF (Network Common Data Form) jest interfejsem dostępu do danych | |
43 | zorganizowanych w tablice. Biblioteka netCDF definiuje niezależny od | |
765d5b43 | 44 | maszyny format reprezentowania danych naukowych. Interfejs oraz |
718e7962 JR |
45 | biblioteka pozwalają na tworzenie, dostęp i współdzielenie danych. |
46 | NetCDF powstał w Unidata Program Center w Boulder, Colorado. | |
765d5b43 | 47 | |
59e9f566 | 48 | Ten pakiet zawiera bibliotekę dla C. |
9ef468fd | 49 | |
765d5b43 JB |
50 | %package devel |
51 | Summary: Header files for netCDF | |
3cc44f67 | 52 | Summary(pl.UTF-8): Pliki nagłówkowe netCDF |
765d5b43 | 53 | Group: Development/Libraries |
f6eb0236 | 54 | Requires: %{name} = %{version}-%{release} |
6f1b7ff5 JB |
55 | Requires: curl-devel |
56 | Requires: hdf5-devel >= 1.8.5 | |
a5ed4445 | 57 | Requires: szip-devel |
765d5b43 JB |
58 | |
59 | %description devel | |
59e9f566 | 60 | Header files for netCDF - C interface. |
765d5b43 | 61 | |
718e7962 | 62 | %description devel -l pl.UTF-8 |
59e9f566 | 63 | Pliki nagłówkowe do biblioteki netCDF - interfejs dla C. |
765d5b43 JB |
64 | |
65 | %package static | |
9ef468fd | 66 | Summary: NetCDF - static library |
3cc44f67 | 67 | Summary(pl.UTF-8): Biblioteka statyczna netCDF |
765d5b43 | 68 | Group: Development/Libraries |
f6eb0236 | 69 | Requires: %{name}-devel = %{version}-%{release} |
765d5b43 JB |
70 | |
71 | %description static | |
59e9f566 | 72 | Static version of netCDF C library. |
765d5b43 | 73 | |
718e7962 | 74 | %description static -l pl.UTF-8 |
59e9f566 | 75 | Statyczna wersja biblioteki netCDF dla C. |
9ef468fd | 76 | |
765d5b43 JB |
77 | %prep |
78 | %setup -q | |
765d5b43 JB |
79 | |
80 | %build | |
e012fa8d JB |
81 | %{__libtoolize} |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
59e9f566 | 86 | %configure \ |
448fc012 | 87 | %{!?with_tests_net:--disable-dap-remote-tests} \ |
5c3de209 | 88 | --enable-dap \ |
85b72f95 | 89 | --enable-doxygen \ |
5c3de209 | 90 | --enable-netcdf-4 \ |
9292de23 JB |
91 | # --enable-cdmremote doesn't build atm. (tested on 4.2) |
92 | # --enable-rpc the same | |
a5ed4445 | 93 | # --enable-hdf4 would cause dependency loop (hdf4 requires netcdf) |
59e9f566 | 94 | |
b0f6dfc4 JB |
95 | # some substitutions are missing when using autotools |
96 | %{__sed} -i -e 's,@SHOW_DOXYGEN_TAG_LIST@,NO,' \ | |
97 | -e 's,@CMAKE_CURRENT_BINARY_DIR@,.,' \ | |
98 | man4/Doxyfile | |
99 | ||
10e9b540 | 100 | %{__make} |
59e9f566 JB |
101 | |
102 | %if %{with tests} | |
43a3ccda | 103 | %{__make} -j1 check |
59e9f566 | 104 | %endif |
765d5b43 JB |
105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
765d5b43 | 108 | |
59e9f566 JB |
109 | %{__make} install \ |
110 | DESTDIR=$RPM_BUILD_ROOT | |
765d5b43 | 111 | |
765d5b43 JB |
112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
b0f6dfc4 | 120 | %doc COPYRIGHT README.md RELEASE_NOTES.md |
5c3de209 | 121 | %attr(755,root,root) %{_bindir}/nccopy |
ca955c13 JB |
122 | %attr(755,root,root) %{_bindir}/ncdump |
123 | %attr(755,root,root) %{_bindir}/ncgen | |
5c3de209 | 124 | %attr(755,root,root) %{_bindir}/ncgen3 |
9ef468fd | 125 | %attr(755,root,root) %{_libdir}/libnetcdf.so.*.*.* |
e012fa8d | 126 | %attr(755,root,root) %ghost %{_libdir}/libnetcdf.so.7 |
5c3de209 | 127 | %{_mandir}/man1/nccopy.1* |
ca955c13 JB |
128 | %{_mandir}/man1/ncdump.1* |
129 | %{_mandir}/man1/ncgen.1* | |
5c3de209 | 130 | %{_mandir}/man1/ncgen3.1* |
765d5b43 JB |
131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
9292de23 | 134 | %doc man4/html/* |
10e9b540 | 135 | %attr(755,root,root) %{_bindir}/nc-config |
9ef468fd JB |
136 | %attr(755,root,root) %{_libdir}/libnetcdf.so |
137 | %{_libdir}/libnetcdf.la | |
138 | %{_includedir}/netcdf.h | |
10e9b540 | 139 | %{_pkgconfigdir}/netcdf.pc |
9ef468fd | 140 | %{_mandir}/man3/netcdf.3* |
765d5b43 JB |
141 | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
9ef468fd | 144 | %{_libdir}/libnetcdf.a |