netcdf-vl.spec 3.5 KB

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