diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..812a8c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +w3lib-1.6.tar diff --git a/Makefile b/Makefile deleted file mode 100644 index 555dece..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: w3lib -# $Id$ -NAME := w3lib -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/g2clib-msg.txt b/g2clib-msg.txt new file mode 100644 index 0000000..e9aa569 --- /dev/null +++ b/g2clib-msg.txt @@ -0,0 +1,60 @@ +Date: Fri, 24 Aug 2007 08:03:05 -0400 +From: "Justin Cooke" +To: pertusus@free.fr +Subject: Re: [pmb.dataflow #1013] grib2 related programs license +Reply-To: ncep.pmb.dataflow@noaa.gov +X-Loop: WREQ 2 +Status: RO +Content-Length: 1358 +Lines: 49 + +Your request #1013 was updated by justin.cooke: + +Hi Pat, + +Yes all code available on the NCEP website, including cnvgrib, is +public domain. + +I will pass along the request to add the public domain message to +the documentation of cnvgrib. + +Justin Cooke +NCEP Central Operations + +>>>>>>>>>>>>>>>>>> Original Message >>>>>>>>>>>>>>>>>> +>From: Patrice Dumas +>Subject: grib2 related programs license +>To: NCEP.List.PMB-PCSP@noaa.gov + +Hello, + +It is possible that I am not adressing this mail to the right people, +but this seems to me to be the simplest way to reach the right people. + +On +http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/ +there are some codes, but the license isn't stated anywhere. It could +mean Public Domain if there was no author mention, but there is some +mention of the authors, like + PRGMMR: Gilbert +(I only checked g2clib and g2lib, I don't know for the other softwares). + +On the disclaimer page: +http://www.weather.gov/disclaimer.php +there is no reference to the programming codes found on the site, only +to data and text. + +My feeling is that these codes are public domain, but I prefer to ask to +be sure. Also if it is true, maybe you could mention it in the README? + +Cordially, + +-- +Pat + + +>>>>>>>>>>>>>>>>>> Action Log >>>>>>>>>>>>>>>>>> +====================== Updated/Mailed by justin.cooke Aug 24 8:3:4 2007 (1187956984) + + + diff --git a/sources b/sources index e69de29..dbb251c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4f0f3b5fb8d917fa89bd12d2649475f9 w3lib-1.6.tar diff --git a/w3lib.spec b/w3lib.spec new file mode 100644 index 0000000..f792b86 --- /dev/null +++ b/w3lib.spec @@ -0,0 +1,88 @@ +Name: w3lib +Version: 1.6 +Release: 3%{?dist} +Summary: GRIB1 (GRIdded Binary) encoder/decoder and search/indexing routines + +Group: System Environment/Libraries +License: Public Domain +URL: http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/ +Source0: http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/w3lib-%{version}.tar +Source1: g2clib-msg.txt +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gcc-gfortran +#Requires: + +# static libs only so unuseful debuginfo +%define debug_package %{nil} + +%description +This library contains Fortran 90 decoder/encoder routines for +the GRIB (GRIdded Binary) data format 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 devel +Summary: GRIB1 (GRIdded Binary) encoder/decoder and search/indexing routines +Group: Development/Libraries +#Requires: %{name} = %{version}-%{release} +Provides: %{name}-static = %{version}-%{release} + +%description devel +This library contains Fortran 90 decoder/encoder routines for +the GRIB (GRIdded Binary) data format 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". + +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q +chmod a-x *.f *.h *.c README CHANGES grib1.doc Makefile +cp -p %{SOURCE1} . + + +%build +export FLAGS="$RPM_OPT_FLAGS -DLINUX" +make %{?_smp_mflags} CFLAGS="$FLAGS" FFLAGS="$FLAGS" \ + CC=%{__cc} F77=gfortran + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_fmoddir} +install -m0644 libw3.a $RPM_BUILD_ROOT%{_libdir} +install -p -m0644 *.mod $RPM_BUILD_ROOT%{_fmoddir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +#%post -p /sbin/ldconfig + +#%postun -p /sbin/ldconfig + + +%files devel +%defattr(-,root,root,-) +%doc README CHANGES grib1.doc g2clib-msg.txt +%{_libdir}/libw3.a +%{_fmoddir}/*.mod + + +%changelog +* Wed Jun 4 2008 Patrice Dumas 1.6-3 +- don't generate empty debuginfo package + +* Wed Jun 4 2008 Patrice Dumas 1.6-2 +- add g2clib message covering also w3lib precising the license + +* Sun May 18 2008 Patrice Dumas 1.6-1 +- update to 1.6 + +* Fri Aug 24 2007 Patrice Dumas 1.4-1 +- initial packaging