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