netcdf-vl.spec 3.3 KB

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