netcdf-vl.spec 4.2 KB

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