]> git.pld-linux.org Git - packages/netcdf.git/blame - netcdf.spec
- rebuild with gfortran 4.9
[packages/netcdf.git] / netcdf.spec
CommitLineData
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 7Summary: NetCDF: Network Common Data Form
3cc44f67 8Summary(pl.UTF-8): NetCDF: obsługa wspólnego sieciowego formatu danych
765d5b43 9Name: netcdf
b0f6dfc4 10Version: 4.3.2
d0e4bd3e 11Release: 5
a720171d 12License: BSD-like
765d5b43 13Group: Libraries
ecbe1b4e 14Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz
b0f6dfc4 15# Source0-md5: 2fd2365e1fe9685368cd6ab0ada532a0
12c24a38 16URL: http://www.unidata.ucar.edu/packages/netcdf/
e012fa8d 17BuildRequires: autoconf >= 2.59
a4487e06 18BuildRequires: automake
5c3de209 19BuildRequires: curl-devel
9292de23 20BuildRequires: doxygen
6f1b7ff5 21BuildRequires: hdf5-devel >= 1.8.5
75b6cea1 22BuildRequires: libstdc++-devel
9292de23 23BuildRequires: libtool >= 2:2.2
b0f6dfc4 24BuildRequires: sed >= 4.0
a5ed4445 25BuildRequires: szip-devel >= 2.1-2
ecbe1b4e 26BuildRequires: texinfo
6f1b7ff5 27Requires: hdf5 >= 1.8.5
a720171d 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
765d5b43
JB
29
30%description
31NetCDF (network Common Data Form) is an interface for array-oriented
32data access and a library that provides an implementation of the
33interface. The netCDF library also defines a machine-independent
34format for representing scientific data. Together, the interface,
35library, and format support the creation, access, and sharing of
36scientific data. The netCDF software was developed at the Unidata
37Program Center in Boulder, Colorado.
38
59e9f566 39This package contains C library.
9ef468fd 40
718e7962
JR
41%description -l pl.UTF-8
42NetCDF (Network Common Data Form) jest interfejsem dostępu do danych
43zorganizowanych w tablice. Biblioteka netCDF definiuje niezależny od
765d5b43 44maszyny format reprezentowania danych naukowych. Interfejs oraz
718e7962
JR
45biblioteka pozwalają na tworzenie, dostęp i współdzielenie danych.
46NetCDF powstał w Unidata Program Center w Boulder, Colorado.
765d5b43 47
59e9f566 48Ten pakiet zawiera bibliotekę dla C.
9ef468fd 49
765d5b43
JB
50%package devel
51Summary: Header files for netCDF
3cc44f67 52Summary(pl.UTF-8): Pliki nagłówkowe netCDF
765d5b43 53Group: Development/Libraries
f6eb0236 54Requires: %{name} = %{version}-%{release}
6f1b7ff5
JB
55Requires: curl-devel
56Requires: hdf5-devel >= 1.8.5
a5ed4445 57Requires: szip-devel
765d5b43
JB
58
59%description devel
59e9f566 60Header files for netCDF - C interface.
765d5b43 61
718e7962 62%description devel -l pl.UTF-8
59e9f566 63Pliki nagłówkowe do biblioteki netCDF - interfejs dla C.
765d5b43
JB
64
65%package static
9ef468fd 66Summary: NetCDF - static library
3cc44f67 67Summary(pl.UTF-8): Biblioteka statyczna netCDF
765d5b43 68Group: Development/Libraries
f6eb0236 69Requires: %{name}-devel = %{version}-%{release}
765d5b43
JB
70
71%description static
59e9f566 72Static version of netCDF C library.
765d5b43 73
718e7962 74%description static -l pl.UTF-8
59e9f566 75Statyczna 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
107rm -rf $RPM_BUILD_ROOT
765d5b43 108
59e9f566
JB
109%{__make} install \
110 DESTDIR=$RPM_BUILD_ROOT
765d5b43 111
765d5b43
JB
112%clean
113rm -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
This page took 0.105849 seconds and 4 git commands to generate.