|
@@ -1,15 +1,12 @@
|
|
# This the rpm spec file for GMT programs
|
|
# This the rpm spec file for GMT programs
|
|
%define name GMT
|
|
%define name GMT
|
|
-%define version 4.5.1
|
|
|
|
|
|
+%define version 4.5.8
|
|
|
|
|
|
Summary: Generic Mapping Tools
|
|
Summary: Generic Mapping Tools
|
|
Name: %{name}
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Version: %{version}
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-Source0: GMT%{version}_src.tar.bz2
|
|
|
|
-Source1: GMT%{version}_share.tar.bz2
|
|
|
|
-Source4: GMT%{version}_suppl.tar.bz2
|
|
|
|
-Source8: GMT%{version}_doc.tar.bz2
|
|
|
|
|
|
+Source0: gmt-%{version}.tar.bz2
|
|
|
|
|
|
License: GPL
|
|
License: GPL
|
|
Group: Applications/Engineering
|
|
Group: Applications/Engineering
|
|
@@ -17,7 +14,9 @@ URL: http://imina.soest.hawaii.edu/gmt/
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
Requires: netcdf >= 4.0
|
|
Requires: netcdf >= 4.0
|
|
|
|
+Requires: GMT-coastlines
|
|
BuildRequires: netcdf-devel >= 4.0
|
|
BuildRequires: netcdf-devel >= 4.0
|
|
|
|
+BuildRequires: libXaw-devel
|
|
|
|
|
|
%description
|
|
%description
|
|
GMT is a free, public-domain collection of ~60 UNIX tools
|
|
GMT is a free, public-domain collection of ~60 UNIX tools
|
|
@@ -31,23 +30,34 @@ views in black and white, gray tone, hachure patterns, and
|
|
linear, log, and power scaling, and comes with support data
|
|
linear, log, and power scaling, and comes with support data
|
|
such as coastlines, rivers, and political boundaries.
|
|
such as coastlines, rivers, and political boundaries.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%package devel
|
|
|
|
+Summary: Development files for GMT
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description devel
|
|
|
|
+This package contains the GMT header files and libs.
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
-%setup -D -b1 -b4 -b8 -n GMT%{version}
|
|
|
|
|
|
+%setup -q -n GMT%{version}
|
|
|
|
|
|
%build
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS -I/usr/include/netcdf" \
|
|
CFLAGS="$RPM_OPT_FLAGS -I/usr/include/netcdf" \
|
|
-%configure --enable-shared --disable-flock
|
|
|
|
-%__make
|
|
|
|
|
|
+%configure --enable-shared --disable-flock --datadir=%{_datadir}/%{name}
|
|
|
|
+make
|
|
|
|
+make suppl
|
|
|
|
+make examples
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf %{buildroot}
|
|
|
|
-%makeinstall
|
|
|
|
-%makeinstall-suppl
|
|
|
|
-%makeinstall-data
|
|
|
|
-%makeinstall-man
|
|
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+make install-all DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
+
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf %{buildroot}
|
|
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
@@ -55,14 +65,29 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
-%defattr(-,root,root)
|
|
|
|
|
|
+%defattr(-,root,root,-)
|
|
%doc README
|
|
%doc README
|
|
%{_bindir}
|
|
%{_bindir}
|
|
%{_includedir}
|
|
%{_includedir}
|
|
-%{_libdir}
|
|
|
|
|
|
+%{_libdir}/*.so.*
|
|
%{_datadir}
|
|
%{_datadir}
|
|
|
|
|
|
|
|
+%files devel
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%{_includedir}
|
|
|
|
+%{_libdir}/*.so
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.8-1
|
|
|
|
+- update to 4.5.8
|
|
|
|
+- use Source0: gmt-%{version}.tar.bz2 instead of GMT%{version}_src.tar.bz2
|
|
|
|
+- remove Source1: GMT%{version}_share.tar.bz2
|
|
|
|
+- remove Source4: GMT%{version}_suppl.tar.bz2
|
|
|
|
+- remove Source8: GMT%{version}_doc.tar.bz2
|
|
|
|
+- add BuildRequires: libXaw-devel
|
|
|
|
+- add Requires: GMT-coastlines
|
|
|
|
+- create %{name}-devel sub package
|
|
|
|
+
|
|
* Sat Jan 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.1-1
|
|
* Sat Jan 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.1-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- remove SOURCE2 (GMT%{version}_man.tar.bz2)
|
|
- remove SOURCE2 (GMT%{version}_man.tar.bz2)
|