Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Application:Geo
GMT5
GMT5.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GMT5.spec of Package GMT5
# # spec file for package GMT # # Copyright (c) 2020 SUSE LLC # Copyright (c) 2004-2008 Dirk Stoecker <gmt@dstoecker.de>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define coastlineversion gshhg-gmt-2.3.7 %define dcwversion dcw-gmt-1.1.4 %define datadir %{_datadir}/gmt # docdir later copied away! %define docdir %{datadir} Name: GMT5 Version: 5.4.5 Release: 0 Summary: Generic Mapping Tools License: GPL-2.0-or-later Group: Productivity/Graphics/Visualization/Other Summary(de): Generic Mapping Tools - Karten- und Grafikerzeugung URL: http://gmt.soest.hawaii.edu/ Source0: ftp://ftp.soest.hawaii.edu/gmt/gmt-%{version}-src.tar.xz Source1: ftp://ftp.soest.hawaii.edu/gmt/%{coastlineversion}.tar.gz Source2: %{dcwversion}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: GraphicsMagick BuildRequires: c++_compiler BuildRequires: cmake BuildRequires: fdupes BuildRequires: fftw3-devel BuildRequires: gcc BuildRequires: ghostscript BuildRequires: libgdal-devel BuildRequires: netcdf-devel BuildRequires: pcre-devel BuildRequires: python3-Sphinx BuildRequires: texlive-latex BuildRequires: texlive-latex-bin BuildRequires: libpsl5 BuildRequires: python3-Sphinx-latex BuildRequires: texlive-amscls BuildRequires: texlive-amsfonts BuildRequires: texlive-babel-english BuildRequires: texlive-capt-of BuildRequires: texlive-caption BuildRequires: texlive-courier BuildRequires: texlive-dvips BuildRequires: texlive-eqparbox BuildRequires: texlive-fancybox BuildRequires: texlive-fancyhdr BuildRequires: texlive-fancyvrb BuildRequires: texlive-framed BuildRequires: texlive-helvetic BuildRequires: texlive-hyperref BuildRequires: texlive-makeindex-bin BuildRequires: texlive-mdwtools BuildRequires: texlive-multirow BuildRequires: texlive-needspace BuildRequires: texlive-parskip BuildRequires: texlive-psnfss BuildRequires: texlive-threeparttable BuildRequires: texlive-times BuildRequires: texlive-titlesec BuildRequires: texlive-ucs BuildRequires: texlive-wrapfig BuildRequires: tex(anyfontsize.sty) BuildRequires: tex(cmap.sty) BuildRequires: tex(upquote.sty) Provides: GMT = %{version} %if 0%{?sles_version} == 0 Conflicts: GMT %endif %description GMT is a free, public-domain collection of about 60 UNIX tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce [Encapsulated] PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. GMT supports 25 common map projections plus linear, log, and power scaling, and comes with support data such as coastlines, rivers, and political boundaries. %description -l de GMT ist eine frei verfügbare Sammlung von etwa 60 UNIX-Programmen, welche es erlauben 2- und 3-dimensionale Datensätze zu manipulieren (inklusive Filterung, Trendanpassung, Erzeugung von Rasterfeldern, Projektion, ...) und [Encapsulated] PostScript-Dateien (EPS) zu erzeugen. Die erzeugbaren Ausgaben gehen von einfachen X-Y-Grafiken über Konturkarten bis zu künstlich beleuchteten Oberflächen und 3D-Perspektiven in Schwarz-Weiss Graustufen, Schraffuren und 24Bit-Farben. GMT unterstützt 25 bekannte Kartenprojektionen und zusätzlich lineare, logarithmische und exponentielle Skalierungen. Datensätze für Küstenlinien, Flüsse und politsche Grenzen werden unterstützt. %package devel Summary: Generic Mapping Tools (Include Files and Libraries mandatory for Development) Group: Development/Libraries/C and C++ Summary(de): Generic Mapping Tools (Include-Dateien für Entwickler) Requires: %{name} = %{version} Conflicts: GMT-devel %description devel All the include files and link libraries needed for development based on the GMT system. %description devel -l de Alle Include-Dateien und Link-Bibliotheken für GMT-Entwickler. %package doc Summary: Generic Mapping Tools (Documentation) Group: Productivity/Graphics/Visualization/Other Summary(de): Generic Mapping Tools (Dokumentation) Requires: %{name} %if 0%{?sles_version} == 0 BuildArch: noarch %endif Conflicts: GMT-doc %description doc Documentation of the Generic Mapping Tools including documentation and tutorial in HTML format. The documentation is additionally available in PDF (see ftp://ftp.soest.hawaii.edu/gmt/4/ or http://gmt.soest.hawaii.edu/). %description doc -l de Die englische HTML-Dokumentation der Generic Mapping Tools inklusive Tutorial. Die Dateien sind auch im PDF-Format erhältlich (siehe dazu ftp://ftp.soest.hawaii.edu/gmt/4/ oder http://gmt.soest.hawaii.edu/). %package examples Summary: Generic Mapping Tools (Examples) Group: Productivity/Graphics/Visualization/Other Summary(de): Generic Mapping Tools (Beispiele) Requires: %{name} %if 0%{?sles_version} == 0 BuildArch: noarch %endif %description examples Example scripts for the Generic Mapping Tools. %description examples -l de Beispiel-Skripte für die Generic Mapping Tools. %package coastlines Summary: Generic Mapping Tools (coastlines, rivers, politcal boundaries) Group: Productivity/Graphics/Visualization/Other Summary(de): Generic Mapping Tools (Küstenlinien, Flüsse, politsche Grenzen) Requires: %{name} %if 0%{?sles_version} == 0 BuildArch: noarch %endif Conflicts: GMT-coastlines Provides: GMT-coastlines = %{version} %description coastlines GMT uses a 5-resolution database for coastlines, rivers, and political borders. The crude, low, intermediate, full and high resolutions are supplied with this package. %description coastlines -l de GMT nutzt eine Datenbank für Küstenlinien, Flüsse und politische Grenzen, welche in 5 Auflösungen vorliegt. Die Auflösungen "crude", "low", "intermediate", "full" and "high" sind in diesem Paket enthalten. %prep %setup -q -b0 -b1 -b2 -n gmt-%{version} %build # strip the prefix, as dirs are used relative to prefix in cmake script %define gmt_mandir `echo %{_mandir}|sed s:^%{_prefix}/::` %define gmt_bindir `echo %{_bindir}|sed s:^%{_prefix}/::` %define gmt_datadir `echo %{datadir}|sed s:^%{_prefix}/::` %define gmt_docdir `echo %{docdir}|sed s:^%{_prefix}/::` %cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DFLOCK=ON \ -DGMT_BINDIR=%{gmt_bindir} \ -DGMT_DATADIR=%{gmt_datadir} \ -DGMT_MANDIR=%{gmt_mandir} \ -DGMT_DOCDIR=%{gmt_docdir} \ -DGSHHG_ROOT=../../%{coastlineversion} \ -DDCW_ROOT=../../%{dcwversion} \ -DCMAKE_SKIP_RPATH=ON \ .. make V=1 %{?_smp_mflags} export LD_LIBRARY_PATH=`pwd`/src make V=1 %{?_smp_mflags} docs_man docs_html # desactivated building pdf fail with too much badness # in tex file, need upstream patches docs_pdf %install cd build make %{?_smp_mflags} DESTDIR=%{buildroot} install mkdir -p %{buildroot}/%{datadir}/coast cp -pr ../../gsh*/*.nc %{buildroot}/%{datadir}/coast/ # Remove all exec bit on all files in examples find %{buildroot}/%{docdir}/examples -type f -exec chmod 0644 {} \; # Give back exec bit on runable script chmod 755 %{buildroot}/%{docdir}/examples/*/*.*sh chmod 755 %{buildroot}/%{docdir}/examples/*.*sh ls -laR %{buildroot}/%{docdir} # this is possibly dangerous # make sure that no changeable files are linked fdupes -r %{buildroot}%{docdir} | perl -ne \ 'chomp;if(!$_){my $f=shift @a;while($_=shift @a){system "ln -f $f $_";}}else{push @a,$_;}' ls -laR %{buildroot}/%{docdir} %fdupes %{buildroot}%{_includedir}/gmt %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_bindir}/* %exclude %{_bindir}/gmt-config %dir %{datadir} %{datadir}/cpt %{datadir}/custom %{datadir}/dbase %{datadir}/localization %{datadir}/mgd77 %{datadir}/mgg %{datadir}/postscriptlight %{datadir}/spotter %{datadir}/supplements %{datadir}/tools %{datadir}/tutorial %{datadir}/x2sys %{datadir}/VERSION %{_mandir}/man*/* %{_libdir}/*.so.* %{_libdir}/gmt %doc README %license LICENSE.TXT COPYING.LESSERv3 COPYINGv3 %exclude %{datadir}/supplements/spotter/*.bat %files devel %{_bindir}/gmt-config %{_includedir}/gmt* %{_libdir}/*.so %files doc %doc %{docdir}/html %doc %{docdir}/pdf %exclude %{docdir}/html/.buildinfo %exclude %{docdir}/copying %files examples %{datadir}/examples %files coastlines %dir %{datadir}/coast %{datadir}/coast/*_*.nc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor