Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:gbvalor
cnvgrib
cnvgrib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cnvgrib.spec of Package cnvgrib
# Spec file for package cnv # # It also includes w3lin and g2lib # # norootforbuild Name: cnvgrib %define vname cnvgrib_w3lib_g2lib %define w3libver 2.0.2 Version: 1.4.0 Release: 1 Summary: Utility to convert gribs v1 to v2 and viceversa Source: %{vname}-%{version}.tar.bz2 URL: http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/ Group: Productivity/Scientific/Physics License: LGPLv2.1 or later BuildRoot: %{_tmppath}/build-%{name}-%{version} %if 0%{?suse_version} || 0%{?sles_version} BuildRequires: gcc-fortran libjasper-devel %else BuildRequires: gcc-gfortran jasper-devel %endif BuildRequires: libpng-devel gcc %description This command line utility program converts every GRIB message in the input file from one GRIB edition to another. It currently converts GRIB1 to GRIB2, and GRIB2 to GRIB1 using WMO master tables as well as various NCEP local tables. The cnvgrib utility requires both the w3lib and g2lib libraries. Both are builded and linked statically to cnvgrib %package -n w3lib URL: http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/ Summary: Fortran library for GRIB files version 1 Group: System/Libraries License: LGPLv2.1 or later %description -n w3lib This library contains Fortran 90 decoder/encoder routines for GRIB edition 1, general date manipulation routines, and a Fortran 90 interface to "C" language I/O routines. The user API for the GRIB1 routines is described in file "grib1.doc". %package -n g2lib URL: http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/ Summary: Fortran library for GRIB files version 2 Group: System/Libraries License: LGPLv2.1 or later %description -n g2lib This library contains Fortran 90 decoder/encoder routines for GRIB edition 2, as well as indexing/searching utility routines. The user API for the GRIB2 routines is described in file "grib2.doc". %define debug_package %{nil} %prep %setup -n %{vname}-%{version} %build %ifarch x86_64 CFLAGS="${RPM_OPT_FLAGS} -DLINUX -D__64BIT__" ./configure \ --prefix=/usr \ --libdir=%{_libdir} %else CFLAGS="${RPM_OPT_FLAGS} -DLINUX" ./configure \ --prefix=/usr \ --libdir=%{_libdir} %endif make %install mkdir -p ${RPM_BUILD_ROOT}/%{_libdir} mkdir -p ${RPM_BUILD_ROOT}/%{_includedir}/w3lib mkdir -p ${RPM_BUILD_ROOT}/%{_includedir}/g2lib chmod 644 g2lib/grib2.doc w3lib/grib1.doc for mo in g2lib/*.mod ; do install -m644 ${mo} ${RPM_BUILD_ROOT}/%{_includedir}/g2lib done for mo in w3lib/*.mod w3lib/*.h ; do install -m644 ${mo} ${RPM_BUILD_ROOT}/%{_includedir}/w3lib done make DESTDIR=${RPM_BUILD_ROOT} install-strip %post %{run_ldconfig} %postun %{run_ldconfig} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/cnvgrib %files -n w3lib %defattr(-,root,root,-) %doc w3lib/grib1.doc %dir %{_includedir}/w3lib %{_includedir}/w3lib/*mod %{_includedir}/w3lib/*h %{_libdir}/libw3.a %files -n g2lib %defattr(-,root,root,-) %doc g2lib/grib2.doc %{_includedir}/g2lib %{_includedir}/g2lib/*mod %{_libdir}/libg2.a %changelog * Mon Jul 01 2013 Guillermo Ballester <gbv@oxixares.com> 1.4.0 - Update packages: -w3lib v 2.0.2 . Fortran library for Grib v.1 -g2lib v 1.4.0 - Fortran library for Griv v.2 -cnvgrib v 1.4.0 * Wed Apr 20 2011 Guillermo Ballester <gbv@oxixares.com> 1.2.2 - Initial version 1.2.2. It includes actually three packages: -w3lib v 2.0 . Fortran library for Grib v.1 -g2lib v 1.2.1 - Fortran library for Griv v.2 -cnvgrib v 1.2.2 - Joined and GNUlized with autotools the three packages in one.
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