- Update to 4.0.1
- Fix up URL and Source urls - Re-enable parallel builds - Add pkgconfig file - Add more tests to make check
This commit is contained in:
parent
0f26d07c82
commit
4e474b3990
63
netcdf.spec
63
netcdf.spec
|
@ -1,17 +1,18 @@
|
||||||
Name: netcdf
|
Name: netcdf
|
||||||
Version: 4.0.0
|
Version: 4.0.1
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Libraries for the Unidata network Common Data Form
|
Summary: Libraries for the Unidata network Common Data Form
|
||||||
|
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
License: NetCDF
|
License: NetCDF
|
||||||
URL: http://my.unidata.ucar.edu/content/software/netcdf/index.html
|
URL: http://www.unidata.ucar.edu/software/netcdf/
|
||||||
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.0.tar.gz
|
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz
|
||||||
Patch0: netcdf-4.0.0-gcc4.3-cstring.patch
|
Patch0: netcdf-4.0.0-gcc4.3-cstring.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: gcc-gfortran, gawk
|
BuildRequires: gcc-gfortran, gawk
|
||||||
BuildRequires: hdf5-devel
|
BuildRequires: hdf5-devel
|
||||||
|
BuildRequires: valgrind
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for netcdf
|
Summary: Development files for netcdf
|
||||||
|
@ -25,16 +26,16 @@ Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
NetCDF (network Common Data Form) is an interface for array-oriented
|
NetCDF (network Common Data Form) is an interface for array-oriented
|
||||||
data access and a freely-distributed collection of software libraries
|
data access and a freely-distributed collection of software libraries
|
||||||
for C, Fortran, C++, and perl that provides an implementation of the
|
for C, Fortran, C++, and perl that provides an implementation of the
|
||||||
interface. The NetCDF library also defines a machine-independent
|
interface. The NetCDF library also defines a machine-independent
|
||||||
format for representing scientific data. Together, the interface,
|
format for representing scientific data. Together, the interface,
|
||||||
library, and format support the creation, access, and sharing of
|
library, and format support the creation, access, and sharing of
|
||||||
scientific data. The NetCDF software was developed at the Unidata
|
scientific data. The NetCDF software was developed at the Unidata
|
||||||
Program Center in Boulder, Colorado.
|
Program Center in Boulder, Colorado.
|
||||||
|
|
||||||
NetCDF data is:
|
NetCDF data is:
|
||||||
|
|
||||||
o Self-Describing: A NetCDF file includes information about the
|
o Self-Describing: A NetCDF file includes information about the
|
||||||
data it contains.
|
data it contains.
|
||||||
|
@ -56,26 +57,29 @@ NetCDF data is:
|
||||||
access the same NetCDF file.
|
access the same NetCDF file.
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the netCDF header files, shared devel libs, and
|
This package contains the netCDF header files, shared devel libs, and
|
||||||
man pages.
|
man pages.
|
||||||
|
|
||||||
%description static
|
%description static
|
||||||
This package contains the netCDF static libs.
|
This package contains the netCDF static libs.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n netcdf-4.0
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export FC="gfortran"
|
|
||||||
export F90="gfortran"
|
|
||||||
export CPPFLAGS="-fPIC"
|
|
||||||
export FFLAGS="-fPIC ${RPM_OPT_FLAGS}"
|
export FFLAGS="-fPIC ${RPM_OPT_FLAGS}"
|
||||||
export F90FLAGS="$FFLAGS"
|
|
||||||
export FCFLAGS="$FFLAGS"
|
export FCFLAGS="$FFLAGS"
|
||||||
%configure --enable-shared
|
%configure CPPFLAGS=-I%{_includedir}/hdf \
|
||||||
|
LDFLAGS=-L%{_libdir}/hdf \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-extra-example-tests \
|
||||||
|
--enable-valgrind-tests \
|
||||||
# parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags}
|
# parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags}
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=${RPM_BUILD_ROOT}
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
|
@ -88,6 +92,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir}
|
||||||
/bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
/bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
||||||
/bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
/bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
@ -95,6 +100,7 @@ make check
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/sbin/install-info %{_infodir}/netcdf.info \
|
/sbin/install-info %{_infodir}/netcdf.info \
|
||||||
|
@ -107,6 +113,7 @@ if [ "$1" = 0 ]; then
|
||||||
%{_infodir}/dir 2>/dev/null || :
|
%{_infodir}/dir 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYRIGHT README
|
%doc COPYRIGHT README
|
||||||
|
@ -120,6 +127,7 @@ fi
|
||||||
%{_includedir}/netcdf
|
%{_includedir}/netcdf
|
||||||
%{_fmoddir}/*.mod
|
%{_fmoddir}/*.mod
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/pkgconfig/netcdf.pc
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
|
@ -128,6 +136,13 @@ fi
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 28 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-1
|
||||||
|
- Update to 4.0.1
|
||||||
|
- Fix up URL and Source urls
|
||||||
|
- Re-enable parallel builds
|
||||||
|
- Add pkgconfig file
|
||||||
|
- Add more tests to make check
|
||||||
|
|
||||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -196,7 +211,7 @@ fi
|
||||||
- rebuild for gcc4.1
|
- rebuild for gcc4.1
|
||||||
|
|
||||||
* Sun Oct 16 2005 Ed Hill <ed@eh3.com> - 3.6.0-8.p1
|
* Sun Oct 16 2005 Ed Hill <ed@eh3.com> - 3.6.0-8.p1
|
||||||
- building the library twice (once each for g77 and gfortran)
|
- building the library twice (once each for g77 and gfortran)
|
||||||
fixes an annoying problem for people who need both compilers
|
fixes an annoying problem for people who need both compilers
|
||||||
|
|
||||||
* Fri Sep 29 2005 Ed Hill <ed@eh3.com> - 3.6.0-7.p1
|
* Fri Sep 29 2005 Ed Hill <ed@eh3.com> - 3.6.0-7.p1
|
||||||
|
@ -233,8 +248,8 @@ fi
|
||||||
|
|
||||||
* Sat Dec 4 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.0
|
* Sat Dec 4 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.0
|
||||||
- upgrade to 3.6.0beta6
|
- upgrade to 3.6.0beta6
|
||||||
- create separate devel package that does *not* depend upon
|
- create separate devel package that does *not* depend upon
|
||||||
the non-devel package and put the headers/libs in "netcdf-3"
|
the non-devel package and put the headers/libs in "netcdf-3"
|
||||||
subdirs for easy co-existance with upcoming netcdf-4
|
subdirs for easy co-existance with upcoming netcdf-4
|
||||||
|
|
||||||
* Thu Dec 2 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.12
|
* Thu Dec 2 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.12
|
||||||
|
@ -244,7 +259,7 @@ fi
|
||||||
- headers in /usr/include/netcdf, libs in /usr/lib/netcdf
|
- headers in /usr/include/netcdf, libs in /usr/lib/netcdf
|
||||||
|
|
||||||
* Mon Oct 4 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.10
|
* Mon Oct 4 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.10
|
||||||
- Put headers in their own directory but leave the libraries in the
|
- Put headers in their own directory but leave the libraries in the
|
||||||
%%{_libdir} -- there are only two libs and the majority of other
|
%%{_libdir} -- there are only two libs and the majority of other
|
||||||
"*-devel" packages follow this pattern
|
"*-devel" packages follow this pattern
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue