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