1 | # This the rpm spec file for GMT programs |
---|
2 | %define name GMT |
---|
3 | %define version 4.5.8 |
---|
4 | |
---|
5 | Summary: Generic Mapping Tools |
---|
6 | Name: %{name} |
---|
7 | Version: %{version} |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | Source0: gmt-%{version}.tar.bz2 |
---|
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 |
---|
17 | Requires: GMT-coastlines |
---|
18 | BuildRequires: netcdf-devel >= 4.0 |
---|
19 | BuildRequires: libXaw-devel |
---|
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 | |
---|
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 | |
---|
43 | %prep |
---|
44 | %setup -q -n GMT%{version} |
---|
45 | |
---|
46 | %build |
---|
47 | CFLAGS="$RPM_OPT_FLAGS -I/usr/include/netcdf" \ |
---|
48 | %configure --enable-shared --disable-flock --datadir=%{_datadir}/%{name} |
---|
49 | make |
---|
50 | make suppl |
---|
51 | make examples |
---|
52 | |
---|
53 | %install |
---|
54 | rm -rf $RPM_BUILD_ROOT |
---|
55 | make install-all DESTDIR=$RPM_BUILD_ROOT |
---|
56 | |
---|
57 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
58 | |
---|
59 | %clean |
---|
60 | rm -rf $RPM_BUILD_ROOT |
---|
61 | |
---|
62 | %post -p /sbin/ldconfig |
---|
63 | |
---|
64 | %postun -p /sbin/ldconfig |
---|
65 | |
---|
66 | |
---|
67 | %files |
---|
68 | %defattr(-,root,root,-) |
---|
69 | %doc README |
---|
70 | %{_bindir} |
---|
71 | %{_includedir} |
---|
72 | %{_libdir}/*.so.* |
---|
73 | %{_datadir} |
---|
74 | |
---|
75 | %files devel |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %{_includedir} |
---|
78 | %{_libdir}/*.so |
---|
79 | |
---|
80 | %changelog |
---|
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 | |
---|
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 | |
---|