hdf-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Name: hdf
  2. Version: 4.2r2
  3. Release: 1%{?_dist_release}
  4. Summary: A general purpose library and file format for storing scientific data
  5. Source0: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF%{version}.tar.gz
  6. #Source1: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/patches/4.2r1-hrepack-patch.tar
  7. Patch0: hdf-4.2r1p4-maxavailfiles.patch
  8. Patch1: hdf-4.2r2-ppc.patch
  9. License: BSD-ish
  10. Group: System Environment/Libraries
  11. URL: http://hdf.ncsa.uiuc.edu/hdf4.html
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: autoconf flex byacc libjpeg-devel zlib-devel
  14. BuildRequires: gcc-gfortran
  15. %description
  16. HDF is a general purpose library and file format for storing scientific data.
  17. HDF can store two primary objects: datasets and groups. A dataset is
  18. essentially a multidimensional array of data elements, and a group is a
  19. structure for organizing objects in an HDF file. Using these two basic
  20. objects, one can create and store almost any kind of scientific data
  21. structure, such as images, arrays of vectors, and structured and unstructured
  22. grids. You can also mix and match them in HDF files according to your needs.
  23. %package devel
  24. Summary: HDF development files
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: libjpeg-devel zlib-devel
  28. %description devel
  29. HDF development headers and libraries.
  30. %prep
  31. %setup -q -n HDF%{version}
  32. #tar xf %{SOURCE1} --directory mfhdf/hrepack
  33. #mv mfhdf/hrepack/4.2r1-hrepack-patch/*.[ch] mfhdf/hrepack
  34. #rm -r mfhdf/hrepack/4.2r1-hrepack-patch
  35. %patch -p1 -b .maxavailfiles
  36. %patch1 -p1 -b .ppc
  37. chmod a-x *hdf/*/*.c hdf/*/*.h
  38. %build
  39. rm config/*linux-gnu
  40. export CFLAGS="$RPM_OPT_FLAGS -fPIC"
  41. export FFLAGS="$RPM_OPT_FLAGS -ffixed-line-length-none"
  42. %configure F77=gfortran --disable-production \
  43. --includedir=%{_includedir}/%{name} --libdir=%{_libdir}/%{name}
  44. make
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. %makeinstall includedir=${RPM_BUILD_ROOT}%{_includedir}/%{name} \
  48. libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}
  49. #Don't conflict with netcdf
  50. rm $RPM_BUILD_ROOT%{_bindir}/nc* $RPM_BUILD_ROOT%{_mandir}/man1/nc*
  51. %check
  52. make check
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %files
  56. %defattr(-,root,root,0755)
  57. %doc COPYING MANIFEST README release_notes/*.txt
  58. %{_bindir}/*
  59. %{_mandir}/man1/*.gz
  60. %files devel
  61. %defattr(-,root,root,0755)
  62. %{_includedir}/%{name}/
  63. %{_libdir}/%{name}/
  64. %changelog
  65. * Sat Oct 25 2008 Shu KONNO <owa@bg.wakwak.com> 4.2r2-1vl5
  66. - applied new versioning policy
  67. * Fri Feb 01 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.2r2-0vl1
  68. - updated to 4.2r2 (imported patches from 4.2r2-2.fc8)
  69. * Thu Dec 20 2007 Shu KONNO <owa@bg.wakwak.com> 4.2r1-0vl2
  70. - s/gcc-g77/gcc-gfortran/
  71. * Sat Oct 22 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2r1-0vl1
  72. - initial build for Vine Linux
  73. * Wed Oct 05 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-5
  74. - Add Requires: libjpeg-devel zlib-devel to -devel package
  75. * Tue Aug 23 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-4
  76. - Use -fPIC
  77. - Fix project URL
  78. * Fri Jul 29 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-3
  79. - Exclude ppc/ppc64 - HDF does not recognize it
  80. * Wed Jul 20 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-2
  81. - Fix BuildRequires to have autoconf
  82. * Fri Jul 15 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-1
  83. - inital package for Fedora Extras