GMT-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # This the rpm spec file for GMT programs
  2. %define name GMT
  3. %define version 4.5.1
  4. Summary: Generic Mapping Tools
  5. Name: %{name}
  6. Version: %{version}
  7. Release: 1%{?_dist_release}
  8. Source0: GMT%{version}_src.tar.bz2
  9. Source1: GMT%{version}_share.tar.bz2
  10. Source4: GMT%{version}_suppl.tar.bz2
  11. Source8: GMT%{version}_doc.tar.bz2
  12. License: GPL
  13. Group: Applications/Engineering
  14. URL: http://imina.soest.hawaii.edu/gmt/
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Requires: netcdf >= 4.0
  17. BuildRequires: netcdf-devel >= 4.0
  18. %description
  19. GMT is a free, public-domain collection of ~60 UNIX tools
  20. that allow users to manipulate (x,y) and (x,y,z) data sets
  21. (including filtering, trend fitting, gridding, projecting,
  22. etc.) and produce Encapsulated PostScript File (EPS)
  23. illustrations ranging from simple x-y plots through contour
  24. maps to artificially illuminated surfaces and 3-D perspective
  25. views in black and white, gray tone, hachure patterns, and
  26. 24-bit color. GMT supports 25 common map projections plus
  27. linear, log, and power scaling, and comes with support data
  28. such as coastlines, rivers, and political boundaries.
  29. %prep
  30. %setup -D -b1 -b4 -b8 -n GMT%{version}
  31. %build
  32. CFLAGS="$RPM_OPT_FLAGS -I/usr/include/netcdf" \
  33. %configure --enable-shared --disable-flock
  34. %__make
  35. %install
  36. rm -rf %{buildroot}
  37. %makeinstall
  38. %makeinstall-suppl
  39. %makeinstall-data
  40. %makeinstall-man
  41. %clean
  42. rm -rf %{buildroot}
  43. %post -p /sbin/ldconfig
  44. %postun -p /sbin/ldconfig
  45. %files
  46. %defattr(-,root,root)
  47. %doc README
  48. %{_bindir}
  49. %{_includedir}
  50. %{_libdir}
  51. %{_datadir}
  52. %changelog
  53. * Sat Jan 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.1-1
  54. - new upstream release
  55. - remove SOURCE2 (GMT%{version}_man.tar.bz2)
  56. - remove SOURCE3 (GMT%{version}_web.tar.bz2)
  57. - remove SOURCE5 (GMT%{version}_pdf.tar.bz2)
  58. - remove SOURCE6 (GMT%{version}_scripts.tar.bz2)
  59. - remove SOURCE7 (GMT%{version}_tut.tar.bz2)
  60. - remove Patch0 (GMT-conf.patch)
  61. - add SOURCE8 (GMT%{version}_doc.tar.bz2)
  62. * Sat Apr 14 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.4-0vl1
  63. - new upstream major version
  64. * Sat Apr 14 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4.6-0vl1
  65. - new upstream release
  66. - fix <BTS:435>
  67. * Sat Oct 22 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.4.2-0vl2
  68. - added BuildRequires: netcdf-devel > 3.6
  69. - BTW the changelog of 3.4.2-0vl1 was empty!
  70. * Fri Oct 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4.2-0vl1
  71. - initial build