File picogrib.spec of Package picogrib
#
# spec file for package picogrib
#
# 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/
#
Name: picogrib
Version: 2.6
Release: 0
Summary: GRIB decoding software
License: GPL-2.0
Group: Productivity/Scientific/Physics
Url: http://sourceforge.net/projects/picogrib
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc-fortran
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This software package was developed to supply a portable decoding
package (written in C and callable by Fortran) compatible to some
extent with ECMWF GRIBEX routine.
%package devel
Summary: Develoment files for %{name}
Group: Development/Libraries/C and C++
Requires: libpicogrib0 = %{version}
%description devel
This package contains the development and headers files for %{name}.
%package -n libpicogrib0
Summary: Develoment files for %{name}
Group: System/Libraries
%description -n libpicogrib0
This software package was developed to supply a portable decoding
package (written in C and callable by Fortran) compatible to some
extent with ECMWF GRIBEX routine.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/doc/%{name}
%post -n libpicogrib0 -p /sbin/ldconfig
%postun -n libpicogrib0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README.txt picogrib-*.txt licen*.txt
%{_bindir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%files -n libpicogrib0
%defattr(-,root,root)
%doc licen*.txt
%{_libdir}/*.so.*
%changelog