6dc1970
Name:           netcdf
4e474b3
Version:        4.0.1
ebc7b16
Release:        3%{?dist}
Ed Hill 02aa12d
Summary:        Libraries for the Unidata network Common Data Form
6dc1970
6dc1970
Group:          Applications/Engineering
6dc1970
License:        NetCDF
4e474b3
URL:            http://www.unidata.ucar.edu/software/netcdf/
4e474b3
Source0:        ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz
154b6e6
Patch0:         netcdf-4.0.0-gcc4.3-cstring.patch
6dc1970
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6dc1970
Ed Hill 026fcaa
BuildRequires:  gcc-gfortran, gawk
Ed Hill 02aa12d
BuildRequires:  hdf5-devel
4e474b3
BuildRequires:  valgrind
6dc1970
e678fea
%package devel
Ed Hill 02aa12d
Summary:        Development files for netcdf
e678fea
Group:          Development/Libraries
Ed Hill cb16c38
Requires:       %{name} = %{version}-%{release}
ebc7b16
#Requires:       gcc-gfortran%{_isa}
ebc7b16
Requires:       pkgconfig
de1674f
6dc1970
Ed Hill b312e36
%package static
Ed Hill 02aa12d
Summary:        Static libs for netcdf
Ed Hill b312e36
Group:          Development/Libraries
Ed Hill b312e36
Requires:       %{name} = %{version}-%{release}
Ed Hill b312e36
6dc1970
%description
Ed Hill 02aa12d
4e474b3
NetCDF (network Common Data Form) is an interface for array-oriented
4e474b3
data access and a freely-distributed collection of software libraries
4e474b3
for C, Fortran, C++, and perl that provides an implementation of the
4e474b3
interface.  The NetCDF library also defines a machine-independent
4e474b3
format for representing scientific data.  Together, the interface,
4e474b3
library, and format support the creation, access, and sharing of
4e474b3
scientific data. The NetCDF software was developed at the Unidata
Ed Hill 02aa12d
Program Center in Boulder, Colorado.
6dc1970
4e474b3
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
4e474b3
This package contains the netCDF header files, shared devel libs, and
Ed Hill b312e36
man pages.
e678fea
Ed Hill b312e36
%description static
Ed Hill 02aa12d
This package contains the netCDF static libs.
6dc1970
4e474b3
6dc1970
%prep
4e474b3
%setup -q
Ed Hill 02aa12d
%patch0 -p1
6dc1970
4e474b3
6dc1970
%build
de1674f
%configure --enable-shared \
4e474b3
           --enable-extra-example-tests \
de1674f
           --enable-valgrind-tests
7e453d4
# parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags}
4e474b3
make %{?_smp_mflags}
4e474b3
6dc1970
6dc1970
%install
7e453d4
make install DESTDIR=${RPM_BUILD_ROOT}
Ed Hill 02aa12d
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf
7e453d4
mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir}
Ed Hill 6283fa2
/bin/mv ${RPM_BUILD_ROOT}%{_includedir}/*.mod  \
7e453d4
  ${RPM_BUILD_ROOT}%{_fmoddir}
Ed Hill b312e36
/bin/mv ${RPM_BUILD_ROOT}%{_includedir}/*.* \
Ed Hill 02aa12d
  ${RPM_BUILD_ROOT}%{_includedir}/netcdf
Ed Hill b312e36
/bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
Ed Hill 02aa12d
/bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
Ed Hill 02aa12d
de1674f
#New with 4.0.1, and not multi-lib compatible
de1674f
/bin/rm -f ${RPM_BUILD_ROOT}%{_bindir}/nc-config
de1674f
4e474b3
93d8d48
%check
93d8d48
make check
93d8d48
93d8d48
6dc1970
%clean
Ed Hill cb16c38
rm -rf ${RPM_BUILD_ROOT}
6dc1970
4e474b3
Ed Hill 02aa12d
%post
Ed Hill 02aa12d
/sbin/ldconfig
7e453d4
/sbin/install-info %{_infodir}/netcdf.info \
Ed Hill 02aa12d
    %{_infodir}/dir 2>/dev/null || :
Ed Hill b312e36
Ed Hill 02aa12d
%postun
Ed Hill 02aa12d
/sbin/ldconfig
Ed Hill 02aa12d
if [ "$1" = 0 ]; then
7e453d4
  /sbin/install-info --delete %{_infodir}/netcdf.info \
Ed Hill 02aa12d
    %{_infodir}/dir 2>/dev/null || :
Ed Hill 02aa12d
fi
6dc1970
4e474b3
6dc1970
%files
6dc1970
%defattr(-,root,root,-)
Ed Hill b312e36
%doc COPYRIGHT README
de1674f
%{_bindir}/ncdump
de1674f
%{_bindir}/ncgen
Ed Hill b312e36
%{_libdir}/*.so.*
e678fea
%{_mandir}/man1/*
Ed Hill 02aa12d
%{_infodir}/*
e678fea
e678fea
%files devel
e678fea
%defattr(-,root,root,-)
Ed Hill 02aa12d
%{_includedir}/netcdf
7e453d4
%{_fmoddir}/*.mod
Ed Hill b312e36
%{_libdir}/*.so
4e474b3
%{_libdir}/pkgconfig/netcdf.pc
e678fea
%{_mandir}/man3/*
6dc1970
Ed Hill b312e36
%files static
Ed Hill b312e36
%defattr(-,root,root,-)
Ed Hill b312e36
%{_libdir}/*.a
Ed Hill b312e36
6dc1970
6dc1970
%changelog
ebc7b16
* Thu Nov 5 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-3
ebc7b16
- Drop Require: gcc-gfortran for now
ebc7b16
de1674f
* Tue Oct 27 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-2
de1674f
- Don't ship multi-lib incompatible nc-config
de1674f
- Require gcc-gfortran for -devel (bug #483469)
de1674f
4e474b3
* Mon Sep 28 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-1
4e474b3
- Update to 4.0.1
4e474b3
- Fix up URL and Source urls
4e474b3
- Re-enable parallel builds
4e474b3
- Add pkgconfig file
4e474b3
- Add more tests to make check
4e474b3
1765f5a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
1765f5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1765f5a
154b6e6
* Wed Sep  3 2008 Orion Poplawski <orion@cora.nwra.com> - 4.0.0-1
154b6e6
- Update to 4.0 final
e4c1384
- Drop netcdf-3 symlink (bug #447158)
154b6e6
- Update cstring patch, partially upstreamed
154b6e6
Balint Cristian 0444803
* Thu May 29 2008 Balint Cristian <rezso@rdsor.ro> - 4.0.0-0.6.beta2
Balint Cristian 0444803
- fix symlink to netcdf-3
Balint Cristian 0444803
7e453d4
* Sun May 18 2008 Patrice Dumas <pertusus@free.fr> - 4.0.0-0.5.beta2
7e453d4
- use %%{_fmoddir}
7e453d4
- don't use %%makeinstall
7e453d4
Balint Cristian b150e81
* Thu May 15 2008 Balint Cristian <rezso@rdsor.ro> - 4.0.0-0.4.beta2
Balint Cristian b150e81
- re-enable ppc64 since hdf5 is now present for ppc64
Balint Cristian b150e81
Ed Hill 6283fa2
* Thu May  8 2008 Ed Hill <ed@eh3.com> - 4.0.0-0.3.beta2
Ed Hill 6283fa2
- make package compliant with bz # 373861
Ed Hill 6283fa2
Ed Hill 6283fa2
* Thu May  8 2008 Ed Hill <ed@eh3.com> - 4.0.0-0.2.beta2
Ed Hill ee6845e
- ExcludeArch: ppc64 since it doesn't (for now) have hdf5
Ed Hill ee6845e
Ed Hill 02aa12d
* Wed May  7 2008 Ed Hill <ed@eh3.com> - 4.0.0-0.1.beta2
Ed Hill 02aa12d
- try out upstream 4.0.0-beta2
Ed Hill 02aa12d
72fa52a
* Wed Apr  2 2008 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-7
72fa52a
- Change patch to include <cstring>
3efeef0
- Remove %%{?_smp_mflags} - not parallel build safe (fortran modules)
72fa52a
Ed Hill 67e50c7
* Wed Feb 20 2008 Ed Hill <ed@eh3.com> - 3.6.2-6
Ed Hill 67e50c7
- add patch that (hopefully?) allows the GCC 4.3 build to proceed
Ed Hill 67e50c7
2aa714d
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.6.2-5
2aa714d
- Autorebuild for GCC 4.3
2aa714d
Ed Hill 026fcaa
* Sat Aug 25 2007 Ed Hill <ed@eh3.com> - 3.6.2-4
Ed Hill 026fcaa
- add BR: gawk
Ed Hill 026fcaa
Ed Hill c765810
* Sat Aug 25 2007 Ed Hill <ed@eh3.com> - 3.6.2-3
Ed Hill c765810
- rebuild for BuildID
Ed Hill c765810
93d8d48
* Mon May 21 2007 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-2
93d8d48
- Run checks
93d8d48
Ed Hill b312e36
* Sat Mar 17 2007 Ed Hill <ed@eh3.com> - 3.6.2-1
Ed Hill b312e36
- 3.6.2 has a new build system supporting shared libs
Ed Hill b312e36
Ed Hill ccc575d
* Sat Sep  2 2006 Ed Hill <ed@eh3.com> - 3.6.1-4
Ed Hill ccc575d
- switch to compat-gcc-34-g77 instead of compat-gcc-32-g77
Ed Hill ccc575d
Ed Hill 9d62b30
* Sat Sep  2 2006 Ed Hill <ed@eh3.com> - 3.6.1-3
Ed Hill 9d62b30
- rebuild for imminent FC-6 release
Ed Hill 9d62b30
Ed Hill 9fd562b
* Thu May 11 2006 Ed Hill <ed@eh3.com> - 3.6.1-2
Ed Hill 9fd562b
- add missing BuildRequires for the g77 interface
Ed Hill 9fd562b
Ed Hill 205af58
* Fri Apr 21 2006 Ed Hill <ed@eh3.com> - 3.6.1-1
Ed Hill 205af58
- update to upstream 3.6.1
Ed Hill 205af58
Ed Hill 20e1260
* Thu Feb 16 2006 Ed Hill <ed@eh3.com> - 3.6.0-10.p1
Ed Hill 20e1260
- rebuild for new GCC
Ed Hill 20e1260
df9acd5
* Thu Dec 22 2005 Orion Poplawski <orion@cora.nwra.com> - 3.6.0-9.p1
df9acd5
- rebuild for gcc4.1
df9acd5
Ed Hill 60004a2
* Sun Oct 16 2005 Ed Hill <ed@eh3.com> - 3.6.0-8.p1
4e474b3
- building the library twice (once each for g77 and gfortran)
Ed Hill 60004a2
  fixes an annoying problem for people who need both compilers
Ed Hill 60004a2
Ed Hill e28ddb8
* Fri Sep 29 2005 Ed Hill <ed@eh3.com> - 3.6.0-7.p1
Ed Hill e28ddb8
- add FFLAGS="-fPIC"
Ed Hill e28ddb8
Ed Hill 8f3ae26
* Fri Jun 13 2005 Ed Hill <ed@eh3.com> - 3.6.0-6.p1
Ed Hill 8f3ae26
- rebuild
Ed Hill 8f3ae26
Ed Hill cb2c3a4
* Fri Jun  3 2005 Ed Hill <ed@eh3.com> - 3.6.0-5.p1
Ed Hill cb2c3a4
- bump for the build system
Ed Hill cb2c3a4
Ed Hill 43a7896
* Mon May  9 2005 Ed Hill <ed@eh3.com> - 3.6.0-4.p1
Ed Hill 43a7896
- remove hard-coded dist/fedora macros
Ed Hill 43a7896
Ed Hill cb16c38
* Wed May  5 2005 Ed Hill <ed@eh3.com> - 3.6.0-3.p1
Ed Hill cb16c38
- make netcdf-devel require netcdf (bug #156748)
Ed Hill cb16c38
- cleanup environment and paths
Ed Hill cb16c38
Ed Hill fc0e992
* Tue Apr  5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-2.p1
Ed Hill fc0e992
- update for gcc-gfortran
Ed Hill fc0e992
- fix file permissions
Ed Hill fc0e992
Ed Hill fc0e992
* Sat Mar  5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-1.p1
Ed Hill fc0e992
- update for 3.6.0-p1 large-files-bug fix and remove the Epoch
Ed Hill fc0e992
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
4e474b3
- create separate devel package that does *not* depend upon
4e474b3
  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
7e453d4
- 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
4e474b3
- Put headers in their own directory but leave the libraries in the
7e453d4
  %%{_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
7e453d4
- 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.