update for gcc-gfortran & fix file permissions
This commit is contained in:
parent
377ce112ca
commit
fc0e9920c3
@ -1 +1 @@
|
||||
netcdf-3_6_0-beta6.tar.gz
|
||||
netcdf-3.6.0-p1.tar.gz
|
||||
|
28
netcdf.spec
28
netcdf.spec
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user