File grib2v5d.spec of Package grib2v5d

#
# spec file for package grib2v5d
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Summary:        Converter from grib to Vis5d file format
License:        GPL-2.0
Group:          Productivity/Scientific/Physics
Name:           grib2v5d
Version:        2.6
Release:        0
Url:            http://grib2v5d.sf.net/
Source:         %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE grib2v5d-2.6-disable-sound.patch: needs -lhibu but can't find it
Patch0:         grib2v5d-2.6-disable-sound.patch
# PATCH-FIX-UPSTREAM grib2v5d-2.6-implicit-fortify-decl.patch
Patch1:         grib2v5d-2.6-implicit-fortify-decl.patch
BuildRequires:  gcc-fortran
BuildRequires:  libtool
BuildRequires:  picogrib-devel
BuildRequires:  vis5d+-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The program grib2v5d converts the content of a grib file (a format
used for exchanging meteorological model fields) into a file that can
be viewed with Vis5d, a popular program for 3-D visualisation of
meteorological fields.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure
make 

%install
make install DESTDIR=%{buildroot}

rm -rf %{buildroot}%{_datadir}/doc/%{name}
rm -rf examples/Makefile*

%files
%defattr(-, root, root)
%doc COPYING NEWS README doc/grib2v5d.pdf examples
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by