ALT repositories
Last updated at Fri, 24 Jul 2020 16:33:50 +0000 | SRPMs: 18242
en ru
SRPMs in branches
hide window
  • 5.4.5-alt1_1
  • 5.2.1-alt1_3
  • 5.2.1-alt1_3
  • 4.5.9-alt1_4
  • 5.1.1-alt2_0.M70T.1
Group :: Engineering
Source RPM: GMT
Raw spec file

Group: Engineering
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/gm /usr/bin/gmake /usr/bin/gs /usr/bin/svn /usr/bin/xz libpcre-devel zlib-devel
# END SourceDeps(oneline)

%add_findreq_skiplist /usr/share/gmt/tools/gmt5syntax
BuildRequires: gcc-c++
BuildRequires: chrpath
# fedora bcond_with macro

%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without

%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%global gmthome %{_datadir}/gmt
%global gmtconf %{_sysconfdir}/gmt
%global gmtdoc %{_docdir}/gmt

%bcond_with octave
%if %with octave
%{!?octave_api: %global octave_api %(octave-config -p API_VERSION 2>/dev/null || echo 0)}
%global octave_mdir %(octave-config -p LOCALAPIFCNFILEDIR || echo)
%global octave_octdir %(octave-config -p LOCALAPIOCTFILEDIR || echo)

%global completion_dir %(pkg-config --variable=completionsdir bash-completion)
%if "%{completion_dir}" == ""
%global completion_dir "/etc/bash_completion.d"

Name: GMT
Version: 5.2.1
Release: alt1_3
Summary: Generic Mapping Tools

License: LGPLv3+
# Upstream patch to fix GCC 5.2 error


Patch0: changeset_r15261.diff

BuildRequires: ctest cmake
BuildRequires: bash-completion
BuildRequires: libfftw3-devel
BuildRequires: libgdal-devel
BuildRequires: glib2-devel
BuildRequires: libXt-devel libXaw-devel libXmu-devel libXext-devel
BuildRequires: libnetcdf-devel
BuildRequires: pcre-devel
BuildRequires: dcw-gmt
BuildRequires: gshhg-gmt-nc4
%if %with octave
BuildRequires: octave-devel
# less is detected by configure, and substituted in

BuildRequires: less
Requires: less
Requires: %{name}-common = %{version}
Requires: dcw-gmt
Requires: gshhg-gmt-nc4
Provides: gmt = %{version}-%{release}
%if %without octave
Obsoletes: GMT-octave <= 4.5.11

# Do not generate provides for plugins

%global __provides_exclude_from ^%{_libdir}/gmt/.*\\.so$

GMT is an open source collection of ~60 tools for manipulating geographic and
Cartesian data sets (including filtering, trend fitting, gridding, projecting,
etc.) and producing Encapsulated PostScript File (EPS) illustrations ranging
from simple x-y plots via contour maps to artificially illuminated surfaces
and 3-D perspective views. GMT supports ~30 map projections and transforma-
tions and comes with support data such as coastlines, rivers, and political

GMT is developed and maintained by Paul Wessel and Walter H. F. Smith with
help from a global set of volunteers, and is supported by the National
Science Foundation.

NOTE: Specific executables that conflict with other Fedora packages have been
removed. These functions can still be accessed via the GMT wrapper script
with: GMT <function> [args]

%package common
Group: Engineering
Summary: Common files for %{name}
Provides: gmt-common = %{version}-%{release}
BuildArch: noarch

%description common
The %{name}-common package contains common files for GMT (Generic
Mapping Tools) package.

%package devel
Group: Development/C
Summary: Development files for %{name}
Requires: %{name} = %{version}
Provides: gmt-devel = %{version}-%{release}
Obsoletes: GMT-static <= 4.5.11

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package doc
Group: Documentation
Summary: Documentation for %{name}
Requires: %{name} = %{version}
Provides: gmt-doc = %{version}-%{release}
Provides: %{name}-examples = %{version}-%{release}
Obsoletes: %{name}-examples < %{version}-%{release}
BuildArch: noarch

%description doc
The %{name}-doc package provides the documentation for the GMT (Generic
Mapping Tools) package.

%if %with octave
%package octave
Group: Development/C
Summary: Octave libraries for %{name}
Requires: %{name} = %{version}
Provides: gmt-octave = %{version}-%{release}

%description octave
The %{name}-octave package contains and Octave interface for developing
applications that use %{name}.

%setup -q -n gmt-%{version}
%patch0 -p1

mkdir build
pushd build
%{fedora_cmake} \
-DGSHHG_ROOT=%{_prefix} \
-DGMT_MANDIR=%{_mandir} \
%if %with octave
-DBASH_COMPLETION_DIR=%{completion_dir} \
make %{?_smp_mflags}

make -C build DESTDIR=$RPM_BUILD_ROOT install
#Setup configuration files

mkdir -p $RPM_BUILD_ROOT%{gmtconf}/{mgg,dbase,mgd77,conf}
pushd $RPM_BUILD_ROOT%{gmthome}/
# put conf files in %{gmtconf} and do links in %{gmthome}

for file in conf/*.conf mgg/gmtfile_paths dbase/ \
mgd77/mgd77_paths.txt; do
mv $file $RPM_BUILD_ROOT%{gmtconf}/$file
ln -s ../../../..%{gmtconf}/$file $RPM_BUILD_ROOT%{gmthome}/$file

# Don't ship .bat files

find $RPM_BUILD_ROOT -name \*.bat -delete
# kill rpath

for i in `find %buildroot{%_bindir,%_libdir,/usr/libexec,/usr/lib,/usr/sbin} -type f -perm -111`; do
chrpath -d $i ||:


%files common
%dir %{gmtconf}
%dir %{gmtconf}/mgg
%dir %{gmtconf}/dbase
%dir %{gmtconf}/mgd77
%dir %{gmtconf}/conf
%config(noreplace) %{gmtconf}/conf/*
%config(noreplace) %{gmtconf}/mgg/gmtfile_paths
%config(noreplace) %{gmtconf}/dbase/
%config(noreplace) %{gmtconf}/mgd77/mgd77_paths.txt

%files devel

%files doc

%if %with octave
%files octave

* Wed Mar 02 2016 Igor Vlasenko <viy at> 5.2.1-alt1_3
- rebuild with libgdal

* Mon Apr 07 2014 Igor Vlasenko <viy at> 5.1.1-alt2_1

* Sat Apr 05 2014 Igor Vlasenko <viy at> 5.1.1-alt1_1
- import

* Sat Jan 04 2014 Igor Vlasenko <viy at> 4.5.11-alt1_2
- update to new release by fcimport

* Thu Sep 19 2013 Igor Vlasenko <viy at> 4.5.9-alt1_6
- update to new release by fcimport

* Thu Aug 22 2013 Igor Vlasenko <viy at> 4.5.9-alt1_5
- update to new release by fcimport

* Fri Apr 12 2013 Igor Vlasenko <viy at> 4.5.9-alt1_4
- update from fc import

* Tue Jan 29 2013 Cronbuild Service <cronbuild at> 4.5.8-alt2_1
- rebuild to get rid of unmets

* Thu Jan 03 2013 Igor Vlasenko <viy at> 4.5.8-alt1_1
- initial fc import

The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.