update for gcc-gfortran & fix file permissions

This commit is contained in:
Ed Hill 2005-04-06 03:33:33 +00:00
parent 377ce112ca
commit fc0e9920c3
3 changed files with 25 additions and 15 deletions

View File

@ -1 +1 @@
netcdf-3_6_0-beta6.tar.gz
netcdf-3.6.0-p1.tar.gz

View File

@ -1,15 +1,15 @@
Name: netcdf
Version: 3.6.0
Release: 0.2.beta6
Release: 2.p1
Summary: Libraries for the Unidata network Common Data Form (NetCDF v3)
Group: Applications/Engineering
License: NetCDF
URL: http://my.unidata.ucar.edu/content/software/netcdf/index.html
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3_6_0-beta6.tar.gz
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.0-p1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-g77
BuildRequires: gcc-gfortran
%package devel
Summary: Development files for netcdf-3
@ -53,12 +53,12 @@ pages.
%prep
%setup -q -n netcdf-3_6_0-beta6
%setup -q -n netcdf-3.6.0-p1
%build
cd $RPM_BUILD_DIR/netcdf-3_6_0-beta6/src
export FC="g77"
cd src
export FC="gfortran"
export CPPFLAGS="-fPIC"
%configure
# WARNING!
@ -73,11 +73,14 @@ mkdir -p $RPM_BUILD_ROOT/%{_includedir}/netcdf-3
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/netcdf-3
mkdir -p $RPM_BUILD_ROOT/%{_datadir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
cd $RPM_BUILD_DIR/netcdf-3_6_0-beta6/src
cd src
%makeinstall INCDIR=${RPM_BUILD_ROOT}%{_includedir}/netcdf-3 \
LIBDIR=${RPM_BUILD_ROOT}%{_libdir}/netcdf-3 \
MANDIR=$RPM_BUILD_ROOT/%{_mandir}
MANDIR=${RPM_BUILD_ROOT}/%{_mandir}
rm -rf $RPM_BUILD_ROOT/%{_mandir}/man3f*
find ${RPM_BUILD_ROOT}%{_includedir}/netcdf-3 -type f | xargs chmod 644
find ${RPM_BUILD_ROOT}%{_libdir}/netcdf-3 -type f | xargs chmod 644
find ${RPM_BUILD_ROOT}/%{_mandir} -type f | xargs chmod 644
%clean
rm -rf $RPM_BUILD_ROOT
@ -85,7 +88,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc $RPM_BUILD_DIR/netcdf-3_6_0-beta6/src/COPYRIGHT $RPM_BUILD_DIR/netcdf-3_6_0-beta6/src/README $RPM_BUILD_DIR/netcdf-3_6_0-beta6/src/COMPATIBILITY
%doc src/COPYRIGHT src/README
%{_bindir}/*
%{_mandir}/man1/*
@ -97,6 +100,13 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Apr 5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-2.p1
- update for gcc-gfortran
- fix file permissions
* Sat Mar 5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-1.p1
- update for 3.6.0-p1 large-files-bug fix and remove the Epoch
* Sun Dec 12 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0-0.2.beta6
- fix naming scheme for pre-releases (per Michael Schwendt)

View File

@ -1 +1 @@
6c914f05c3327dd91d05322b143f7e9b netcdf-3_6_0-beta6.tar.gz
27c193e0462d9979406d167a01a5ee95 netcdf-3.6.0-p1.tar.gz