Compare commits

...

6 Commits
master ... f12

Author SHA1 Message Date
Fedora Release Engineering
d8a1074df4 dist-git conversion 2010-07-29 04:15:52 +00:00
Bill Nottingham
1246c97e63 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:21:51 +00:00
Orion Poplawski
cde724f193 - Drop Require: gcc-gfortran for now 2009-11-05 18:57:50 +00:00
Orion Poplawski
e922b6d98f Require gcc-gfortran for -devel (bug #483469) 2009-10-26 19:15:17 +00:00
Orion Poplawski
7b7d25bfaa - Don't ship multi-lib incompatible nc-config 2009-10-26 19:12:06 +00:00
Jesse Keating
dd5c40e973 Initialize branch F-12 for netcdf 2009-09-29 05:36:55 +00:00
3 changed files with 37 additions and 44 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: netcdf
# $Id$
NAME := netcdf
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)

View File

@ -1,6 +1,6 @@
Name: netcdf Name: netcdf
Version: 4.0.1 Version: 4.0.1
Release: 2%{?dist} Release: 4%{?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
@ -12,11 +12,13 @@ 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
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
#Requires: gcc-gfortran%{_isa}
Requires: pkgconfig Requires: pkgconfig
%package static %package static
@ -24,8 +26,8 @@ Summary: Static libs for netcdf
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} 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
@ -63,21 +65,20 @@ man pages.
%description static %description static
This package contains the netCDF static libs. This package contains the netCDF static libs.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%build %build
export FC="gfortran" %configure --enable-shared \
export F90="gfortran" --enable-extra-example-tests \
export CPPFLAGS="-fPIC" --enable-valgrind-tests
export FFLAGS="-fPIC ${RPM_OPT_FLAGS}"
export F90FLAGS="$FFLAGS"
export FCFLAGS="$FFLAGS"
%configure --enable-shared
# 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
%install %install
make install DESTDIR=${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf
@ -88,6 +89,9 @@ mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir}
${RPM_BUILD_ROOT}%{_includedir}/netcdf ${RPM_BUILD_ROOT}%{_includedir}/netcdf
/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
#New with 4.0.1, and not multi-lib compatible
/bin/rm -f ${RPM_BUILD_ROOT}%{_bindir}/nc-config
%check %check
make check make check
@ -96,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 \
@ -108,10 +113,12 @@ 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
%{_bindir}/* %{_bindir}/ncdump
%{_bindir}/ncgen
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_mandir}/man1/* %{_mandir}/man1/*
%{_infodir}/* %{_infodir}/*
@ -130,6 +137,13 @@ fi
%changelog %changelog
* Thu Nov 5 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-4
- Drop Require: gcc-gfortran for now
* Fri Oct 23 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-3
- Don't ship multi-lib incompatible nc-config
- Require gcc-gfortran for -devel (bug #483469)
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild