Ed Hill 904083d
%define dist .fc3
Ed Hill 904083d
%define fedora 3
Ed Hill 904083d
6dc1970
Name:           netcdf
e678fea
Version:        3.6.0
Ed Hill 904083d
Release:        2.p1%{?dist}
e678fea
Summary:        Libraries for the Unidata network Common Data Form (NetCDF v3)
6dc1970
6dc1970
Group:          Applications/Engineering
6dc1970
License:        NetCDF
6dc1970
URL:            http://my.unidata.ucar.edu/content/software/netcdf/index.html
Ed Hill d3aecb3
Source0:        ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.0-p1.tar.gz
6dc1970
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6dc1970
6dc1970
BuildRequires:  gcc-g77
6dc1970
e678fea
%package devel
e678fea
Summary:        Development files for netcdf-3
e678fea
Group:          Development/Libraries
Ed Hill 904083d
Requires:       %{name} = %{version}-%{release}
6dc1970
6dc1970
%description
e678fea
NetCDF-3 (network Common Data Form ver3) is an interface for
e678fea
array-oriented data access and a freely-distributed collection of
e678fea
software libraries for C, Fortran, C++, and perl that provides an
e678fea
implementation of the interface.  The NetCDF library also defines a
e678fea
machine-independent format for representing scientific data. Together,
e678fea
the interface, library, and format support the creation, access, and
e678fea
sharing of scientific data. The NetCDF software was developed at the
e678fea
Unidata Program Center in Boulder, Colorado.
6dc1970
6dc1970
NetCDF data is: 
6dc1970
6dc1970
   o Self-Describing: A NetCDF file includes information about the
6dc1970
     data it contains.
6dc1970
6dc1970
   o Network-transparent:  A NetCDF file is represented in a form that
6dc1970
     can be accessed by computers with different ways of storing
6dc1970
     integers, characters, and floating-point numbers.
6dc1970
6dc1970
   o Direct-access:  A small subset of a large dataset may be accessed
6dc1970
     efficiently, without first reading through all the preceding
6dc1970
     data.
6dc1970
6dc1970
   o Appendable:  Data can be appended to a NetCDF dataset along one
6dc1970
     dimension without copying the dataset or redefining its
6dc1970
     structure. The structure of a NetCDF dataset can be changed,
6dc1970
     though this sometimes causes the dataset to be copied.
6dc1970
6dc1970
   o Sharable:  One writer and multiple readers may simultaneously
6dc1970
     access the same NetCDF file.
6dc1970
e678fea
%description devel
e678fea
This package contains the netCDF-3 header files, static libs, and man
e678fea
pages.
e678fea
6dc1970
6dc1970
%prep
Ed Hill d3aecb3
%setup -q -n netcdf-3.6.0-p1
6dc1970
6dc1970
6dc1970
%build
Ed Hill a574b44
cd src
e678fea
export FC="g77"
e678fea
export CPPFLAGS="-fPIC"
6dc1970
%configure
6dc1970
#  WARNING!
6dc1970
#  The parallel build was tested and it does NOT work.
6dc1970
#  make %{?_smp_mflags}
6dc1970
make
Ed Hill 904083d
unset FC
Ed Hill 904083d
unset CPPFLAGS
6dc1970
6dc1970
%install
Ed Hill 904083d
rm -rf ${RPM_BUILD_ROOT}
Ed Hill 904083d
mkdir ${RPM_BUILD_ROOT}
Ed Hill 904083d
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf-3
Ed Hill 904083d
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/netcdf-3
Ed Hill 904083d
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}
Ed Hill 904083d
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}
Ed Hill a574b44
cd src
e678fea
%makeinstall INCDIR=${RPM_BUILD_ROOT}%{_includedir}/netcdf-3 \
e678fea
  LIBDIR=${RPM_BUILD_ROOT}%{_libdir}/netcdf-3 \
Ed Hill 904083d
  MANDIR=${RPM_BUILD_ROOT}%{_mandir}
Ed Hill 904083d
rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man3f*
Ed Hill 904083d
find ${RPM_BUILD_ROOT}%{_includedir}/netcdf-3 -type f | xargs chmod 644
Ed Hill 904083d
find ${RPM_BUILD_ROOT}%{_libdir}/netcdf-3 -type f | xargs chmod 644
Ed Hill 904083d
find ${RPM_BUILD_ROOT}%{_mandir} -type f | xargs chmod 644
6dc1970
6dc1970
%clean
Ed Hill 904083d
rm -rf ${RPM_BUILD_ROOT}
6dc1970
6dc1970
6dc1970
%files
6dc1970
%defattr(-,root,root,-)
Ed Hill a574b44
%doc src/COPYRIGHT src/README
6dc1970
%{_bindir}/*
e678fea
%{_mandir}/man1/*
e678fea
e678fea
%files devel
e678fea
%defattr(-,root,root,-)
e678fea
%{_includedir}/netcdf-3
e678fea
%{_libdir}/netcdf-3
e678fea
%{_mandir}/man3/*
6dc1970
6dc1970
6dc1970
%changelog
Ed Hill 904083d
* Wed May  5 2005 Ed Hill <ed@eh3.com> - 3.6.0-2.p1
Ed Hill 904083d
- make netcdf-devel require netcdf (bug #156748)
Ed Hill 904083d
- cleanup environment and paths
Ed Hill 904083d
- fix file permissions
Ed Hill 904083d
Ed Hill d3aecb3
* Sat Mar  5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-1.p1
Ed Hill d3aecb3
- update for 3.6.0-p1 large-files-bug fix and remove the Epoch
Ed Hill d3aecb3
e678fea
* Sun Dec 12 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0-0.2.beta6
e678fea
- fix naming scheme for pre-releases (per Michael Schwendt)
e678fea
e678fea
* Sat Dec 11 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.2
e678fea
- For Fortran, use only g77 (ignore gfortran, even if its installed)
e678fea
e678fea
* Tue Dec  7 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.1
e678fea
- remove "BuildRequires: gcc4-gfortran"
e678fea
e678fea
* Sat Dec  4 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.0
e678fea
- upgrade to 3.6.0beta6
e678fea
- create separate devel package that does *not* depend upon 
e678fea
  the non-devel package and put the headers/libs in "netcdf-3" 
e678fea
  subdirs for easy co-existance with upcoming netcdf-4
e678fea
e678fea
* Thu Dec  2 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.12
e678fea
- remove unneeded %configure flags
e678fea
e678fea
* Wed Dec  1 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.11
e678fea
- headers in /usr/include/netcdf, libs in /usr/lib/netcdf
e678fea
e678fea
* Mon Oct  4 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.10
e678fea
- Put headers in their own directory but leave the libraries in the 
e678fea
  %{_libdir} -- there are only two libs and the majority of other
e678fea
  "*-devel" packages follow this pattern
e678fea
e678fea
* Sun Oct  3 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:3.5.1-0.fdr.9
e678fea
- add patch to install lib and headers into own tree
e678fea
6dc1970
* Sun Aug  1 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.8
6dc1970
- added -fPIC so x86_64 build works with nco package
6dc1970
6dc1970
* Fri Jul 30 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.7
6dc1970
- fix typo in the x86_64 build and now works on x86_64
6dc1970
6dc1970
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.6
6dc1970
- fix license
6dc1970
6dc1970
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.5
6dc1970
- fix (hopefully?) x86_64 /usr/lib64 handling
6dc1970
6dc1970
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.4
6dc1970
- replace paths with macros
6dc1970
6dc1970
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.3
6dc1970
- fix spelling
6dc1970
6dc1970
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.2
6dc1970
- removed "--prefix=/usr" from %configure
6dc1970
6dc1970
* Wed Jul 14 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.1
6dc1970
- Remove unnecessary parts and cleanup for submission
6dc1970
6dc1970
* Wed Jul 14 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.0
6dc1970
- Initial RPM release.