GMT-vl.spec 3.0 KB

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