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