[7034] | 1 | Summary: Libraries for the Unidata network Common Data Form |
---|
| 2 | Name: netcdf |
---|
| 3 | Version: 4.2.1.1 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | Source0: http://www.unidata.ucar.edu/downloads/%{name}/ftp/%{name}-%{version}.tar.gz |
---|
| 6 | Group: Applications/Engineering |
---|
| 7 | License: NetCDF |
---|
| 8 | URL: http://www.unidata.ucar.edu/downloads/netcdf/index.jsp |
---|
[521] | 9 | |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | #BuildRequires: gcc-g77 |
---|
| 12 | BuildRequires: gcc-gfortran |
---|
[7034] | 13 | BuildRequires: zlib-devel |
---|
| 14 | BuildRequires: hdf5-devel |
---|
[521] | 15 | |
---|
| 16 | %description |
---|
| 17 | NetCDF (network Common Data Form) is an interface for |
---|
| 18 | array-oriented data access and a freely-distributed collection of |
---|
| 19 | software libraries for C, Fortran, C++, and perl that provides an |
---|
| 20 | implementation of the interface. The NetCDF library also defines a |
---|
| 21 | machine-independent format for representing scientific data. Together, |
---|
| 22 | the interface, library, and format support the creation, access, and |
---|
| 23 | sharing of scientific data. The NetCDF software was developed at the |
---|
| 24 | Unidata Program Center in Boulder, Colorado. |
---|
| 25 | |
---|
| 26 | NetCDF data is: |
---|
| 27 | |
---|
| 28 | o Self-Describing: A NetCDF file includes information about the |
---|
| 29 | data it contains. |
---|
| 30 | |
---|
| 31 | o Network-transparent: A NetCDF file is represented in a form that |
---|
| 32 | can be accessed by computers with different ways of storing |
---|
| 33 | integers, characters, and floating-point numbers. |
---|
| 34 | |
---|
| 35 | o Direct-access: A small subset of a large dataset may be accessed |
---|
| 36 | efficiently, without first reading through all the preceding |
---|
| 37 | data. |
---|
| 38 | |
---|
| 39 | o Appendable: Data can be appended to a NetCDF dataset along one |
---|
| 40 | dimension without copying the dataset or redefining its |
---|
| 41 | structure. The structure of a NetCDF dataset can be changed, |
---|
| 42 | though this sometimes causes the dataset to be copied. |
---|
| 43 | |
---|
| 44 | o Sharable: One writer and multiple readers may simultaneously |
---|
| 45 | access the same NetCDF file. |
---|
| 46 | |
---|
| 47 | %package devel |
---|
| 48 | Summary: Development files for netcdf |
---|
| 49 | Group: Development/Libraries |
---|
| 50 | Requires: %{name} = %{version}-%{release} |
---|
| 51 | |
---|
| 52 | %description devel |
---|
| 53 | This package contains the netCDF header files, libs, and man |
---|
| 54 | pages. |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %prep |
---|
| 58 | %setup -q -n %{name}-%{version} |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %build |
---|
| 62 | #cd src |
---|
[7034] | 63 | %configure --enable-shared --disable-static |
---|
[521] | 64 | %__make |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %install |
---|
| 68 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 69 | mkdir ${RPM_BUILD_ROOT} |
---|
| 70 | mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf |
---|
| 71 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir} |
---|
| 72 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir} |
---|
| 73 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir} |
---|
| 74 | #cd src |
---|
| 75 | %makeinstall INCDIR=${RPM_BUILD_ROOT}%{_includedir}/netcdf \ |
---|
| 76 | LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \ |
---|
| 77 | MANDIR=${RPM_BUILD_ROOT}%{_mandir} |
---|
| 78 | |
---|
[7034] | 79 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
[521] | 80 | |
---|
| 81 | %clean |
---|
| 82 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 83 | |
---|
[7034] | 84 | %post -p /sbin/ldconfig |
---|
[521] | 85 | |
---|
[7034] | 86 | %preun -p /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | |
---|
[521] | 89 | %files |
---|
| 90 | %defattr(-,root,root,-) |
---|
| 91 | %doc COPYRIGHT README |
---|
| 92 | %{_bindir}/* |
---|
| 93 | %{_libdir}/*.so.* |
---|
| 94 | %{_mandir}/man1/* |
---|
| 95 | |
---|
| 96 | %files devel |
---|
| 97 | %defattr(-,root,root,-) |
---|
| 98 | %{_includedir}/* |
---|
| 99 | %{_libdir}/*.so |
---|
| 100 | %{_libdir}/pkgconfig/* |
---|
| 101 | %{_mandir}/man3/* |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %changelog |
---|
[7034] | 105 | * Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.1.1-1 |
---|
| 106 | - update to 4.2.1.1 |
---|
| 107 | - add BuildRequires: zlib-devel, hdf5-devel |
---|
| 108 | |
---|
[521] | 109 | * Mon Jan 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0.1-1 |
---|
| 110 | - new upstream release |
---|
| 111 | |
---|
| 112 | * Sun Oct 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.6.0.p1-1 |
---|
| 113 | - new versioning policy |
---|
| 114 | |
---|
| 115 | * Sat Aug 25 2007 Shu KONNO <owa@bg.wakwak.com> 3.6.0.p1-0vl2 |
---|
| 116 | - changed BuildRequires gcc-g77 to gcc-gfortran |
---|
| 117 | |
---|
| 118 | * Fri Oct 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.0.p1-0vl1 |
---|
| 119 | - initial build for Vine Linux |
---|