rpms/wgrib2/F-8 wgrib2-1.7.2-flags.patch, NONE, 1.1 wgrib2.spec, NONE, 1.1

Orion Poplawski (orion) fedora-extras-commits at redhat.com
Tue May 20 15:48:49 UTC 2008


Author: orion

Update of /cvs/pkgs/rpms/wgrib2/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15200/F-8

Added Files:
	wgrib2-1.7.2-flags.patch wgrib2.spec 
Log Message:
Initial import

wgrib2-1.7.2-flags.patch:

--- NEW FILE wgrib2-1.7.2-flags.patch ---
--- grib2/wgrib2/makefile.fedora	2008-03-19 14:46:03.000000000 -0600
+++ grib2/wgrib2/makefile	2008-05-19 10:02:59.000000000 -0600
@@ -33,8 +33,8 @@
 
 # CFLAGS=-I ${g2} -O2 -Wall
 # CFLAGS=-I ${g2} -I ${netcdf} -O2 -Wall -ffast-math -funroll-loops ${DEFS}
-CFLAGS=-I${g2} ${netcdf_inc} -O2 -Wall -ffast-math -funroll-loops ${DEFS}
-LDFLAGS=-L${g2} -lgrib2c ${jasper_lib} -ljasper ${netcdf_lib} -lnetcdf -L/usr/lib -lpng -lz -lm 
+CFLAGS+=${netcdf_inc} ${DEFS}
+LDFLAGS=-lgrib2c -ljasper -lnetcdf -lpng -lz -lm 
 #CC=gcc
 
 wgrib2: $h ${all}


--- NEW FILE wgrib2.spec ---
Name:           wgrib2
Version:        1.7.2b
Release:        1%{?dist}
Summary:        Manipulate, inventory and decode GRIB2 files

Group:          Applications/Engineering
# most files are public domain, geo.c and Netcdf.c are GPL+, gribtab.c is GPLv2+
License:        GPLv2+
URL:            http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/
Source0:        ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz.v%{version}
#Upstream makefile doesn't allow you to add flags, points to local library
#versions.  This patch fixes that.
Patch0:         wgrib2-1.7.2-flags.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  g2clib-devel, zlib-devel, netcdf-devel

%description
Wgrib2 is a swiss army knife for grib2 files. You can use it inventory or
extract data. You can do basic database operations and other nifty things.


%prep
%setup -q -n grib2
rm -r g2clib-* jasper-*.tar.gz libpng-*.tar.gz \
  zlib-*.tar.gz netcdf.tar.gz
%patch -p1 -b .flags


%build
cd wgrib2
export CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags} netcdf_inc="-I%{_includedir}/netcdf"


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install wgrib2/wgrib2 $RPM_BUILD_ROOT%{_bindir}/wgrib2


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README wgrib2/LICENSE-wgrib
%{_bindir}/wgrib2


%changelog
* Mon May 19 2008 Orion Poplawski <orion at cora.nwra.com> - 1.7.2b-1
- Update to 1.7.2b
- Update makefile patch

* Wed Mar 19 2008 Orion Poplawski <orion at cora.nwra.com> - 1.7.2-1
- Initial Fedora package




More information about the scm-commits mailing list