File netcdf.spec of Package netcdf
#
# spec file for package netcdf (Version 4.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: netcdf
Summary: Library for Array Oriented Data Access
Version: 4.0
Release: 9
Group: System/Libraries
License: X11/MIT
Url: http://www.unidata.ucar.edu/software/netcdf/
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-strict-aliasing.patch
Patch1: %{name}-%{version}-dependencies.patch
Patch2: %{name}-%{version}-delete.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ gcc-fortran
PreReq: %install_info_prereq
%description
This library provides array-oriented data access for the languages C
and C++.
Authors:
--------
Glenn Davis
Russ Rew
Steve Emmerson
Harvey Davies <support@unidata.ucar.edu>
%package -n libnetcdf4
License: X11/MIT
Summary: Library for Array Oriented Data Access
Group: Development/Libraries/C and C++
Requires: netcdf = %{version}
Provides: libnetcdf-4 = %{version}
Obsoletes: libnetcdf-4 < %{version}
%description -n libnetcdf4
This library provides array-oriented data access for the languages C
and C++.
Authors:
--------
Glenn Davis
Russ Rew
Steve Emmerson
Harvey Davies <support@unidata.ucar.edu>
%package -n libnetcdf-devel
License: X11/MIT
Summary: Library for Array Oriented Data Access
Group: Development/Libraries/C and C++
Requires: libnetcdf4 = %{version}
%description -n libnetcdf-devel
This library provides array-oriented data access for the languages C
and C++.
Authors:
--------
Glenn Davis
Russ Rew
Steve Emmerson
Harvey Davies <support@unidata.ucar.edu>
%prep
%setup -q
%patch0
%patch1
%patch2
%build
%configure \
--enable-shared \
--disable-static \
--with-pic \
CC=gcc CXX=g++ FC=gfortran \
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" FCFLAGS="$RPM_OPT_FLAGS"
make %{?jobs:-j %jobs}
%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post
for i in netcdf-c netcdf-tutorial netcdf-f90 netcdf-f77 netcdf-install netcdf netcdf-cxx; do
%install_info --info-dir=%{_infodir} %{_infodir}/$i.info.gz
done
%postun
for i in netcdf-c netcdf-tutorial netcdf-f90 netcdf-f77 netcdf-install netcdf netcdf-cxx; do
%install_info --info-dir=%{_infodir} %{_infodir}/$i.info.gz
done
%post -n libnetcdf4 -p /sbin/ldconfig
%postun -n libnetcdf4 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README
%{_bindir}/*
%{_mandir}/man1/*
%files -n libnetcdf-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/*
%{_infodir}/*
%files -n libnetcdf4
%defattr(-,root,root)
%{_libdir}/libnetcdf.so.*
%{_libdir}/libnetcdf_c++.so.*
%{_libdir}/libnetcdff.so.*
%changelog
* Fri Nov 14 2008 prusnak@suse.cz
- fix wrong delete usage (delete.patch)
* Mon Sep 08 2008 prusnak@suse.cz
- move devel manpages and infopages to -devel subpackage
* Mon Sep 01 2008 prusnak@suse.cz
- disable static libraries
* Fri Aug 22 2008 schwab@suse.de
- Fix makefile dependencies.
* Wed Aug 13 2008 prusnak@suse.cz
- updated to 4.0
* Introduced the use of HDF5 as a storage layer, which allows use
of groups, user-defined types, multiple unlimited dimensions,
compression, data chunking, parallel I/O, and other features
* In ncdump and ncgen, added CDL support for UTF-8 encoding
of characters in names and for escaped special chars in names.
Made sure UTF-8 names are normalized using NFC rules before
storing or comparing
* Handle IEEE NaNs and infinities in a platform-independent way
in ncdump output
* Added support for ARM representation of doubles
* Fixed bug in C++ API creating 64-bit offset files
* Fixed bug for variables larger than 4 GB
* Changed the configure.ac to build either 3.6.x or 4.x build
from the same configure.ac
* Build now checks gfortran version and handles it cleanly,
also Portland Group in Intel fortran, with various configurations
* A Fortran netcdf.inc file is now created at build time, based
on the setting of --disable-v2
* Documentation has been fixed in several places
* Upgraded to automake 1.10, autoconf 2.62, and libtool 2.2.2
* Includes missing Windows Visual Studio build files
* Fixed missing include of config.h in a C++ test program
* Fixed maintainer-clean in man directory
* Fixed --enable-c-only and make check
* Fixed behavior when opening a zero-length file
* Many portability enhancements to build cleanly
on various platforms
* Turned on some old test programs which were not being used
in the build
- dropped obsoleted patches:
* missing-includes.patch (included in update)
* Thu Jan 10 2008 lrupp@suse.de
- use more macros in specfile
- added netcdf-3.6.2-missing_includes.patch
* Mon Aug 06 2007 zpetrova@suse.cz
- split to libnetcdf-4, libnetcdf-devel and netcdf package
according to Shared library guidelines.
* Mon Jul 30 2007 zpetrova@suse.cz
-update to version 3.6.2
- Added support for shared libraries (with configure option --enable-shared).
- Improved performance of byte-swapping loops on little-endian platforms.
- Added a "-k" option to ncdump and ncgen, for identifying or specifying the kind
of netCDF file if other than "classic".
- Made long-threatened change of type of ncbyte in C++ interface from unsigned char
to signed char, for consistency with C interface.
- Implemented the C++ API on the netCDF-3 C API instead of the older netCDF-2 API,
providing automatic numeric type conversion as in the netCDF-3 C interface.
- Modified to build correctly for gfortran.
- Added more tests!
- Fixed minor bugs relating to creation of very small netCDF files.
- Added support for additional configure options
(run configure --help for more information).
* Mon May 21 2007 ro@suse.de
- removed cfortran.doc from tarball due to "non-commercial" status
- check in specfile to make sure the file does not reappear
* Thu Oct 19 2006 zpetrova@suse.cz
- update to version 3.6.1
- updated installation manual
- netcdf padded small files with zero to 4096 bytes, when they
were opened and changed. Fixed.
- small fixes in test suite (return values, names of output files).
- Doubled arbitrary limits on number of dimensions, variables,
attributes, and length of names.
- added new functions, including doc and tests.
- correctly configure for Intel ifort Fortran compiler on Linux.
* Wed Apr 19 2006 dmueller@suse.de
- build PIC code
* Mon Jan 30 2006 zpetrova@suse.cz
- fixed permissions of libraries, man pages and header files (#131552)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 zpetrova@suse.cz
- update to netcdf-3.6.0-p1
* Thu Sep 29 2005 zpetrova@suse.cz
- add -fno-strict-aliasing
* Tue Jan 11 2005 didge@suse.de
- Updated to new version
- changed URL to the new one
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Fri Apr 23 2004 didge@suse.de
- Updated to new version 3.5.1
- Fixed strict aliasing problem
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Tue May 13 2003 nashif@suse.de
- added defattr to file list
* Mon Mar 10 2003 nashif@suse.de
- fixed #24975: Build c++ library
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue May 21 2002 ro@suse.de
- complete libdir usage
* Fri Mar 01 2002 nashif@suse.de
- use macro _libdir, fix for s390x build
* Fri Apr 20 2001 nashif@suse.de
- Update to version 3.5.0
- fixed %%files
* Sat Mar 24 2001 nashif@suse.de
- Spec cleanups
- Removed autospec from neededforbuild
* Wed Oct 11 2000 nashif@suse.de
- Use BuildRoot
- Change maintainership to nashif@suse.de
* Tue Jun 06 2000 marquardt@suse.de
- added fortran interface
* Mon May 08 2000 freitag@suse.de
- initial build of version 3.4