netcdf-vl.spec 3.4 KB

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