update for gcc-gfortran & fix file permissions

epel9
Ed Hill 20 years ago
parent 377ce112ca
commit fc0e9920c3

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

@ -1,15 +1,15 @@
Name: netcdf Name: netcdf
Version: 3.6.0 Version: 3.6.0
Release: 0.2.beta6 Release: 2.p1
Summary: Libraries for the Unidata network Common Data Form (NetCDF v3) Summary: Libraries for the Unidata network Common Data Form (NetCDF v3)
Group: Applications/Engineering Group: Applications/Engineering
License: NetCDF License: NetCDF
URL: http://my.unidata.ucar.edu/content/software/netcdf/index.html 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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-g77 BuildRequires: gcc-gfortran
%package devel %package devel
Summary: Development files for netcdf-3 Summary: Development files for netcdf-3
@ -26,7 +26,7 @@ the interface, library, and format support the creation, access, and
sharing of scientific data. The NetCDF software was developed at the sharing of scientific data. The NetCDF software was developed at the
Unidata Program Center in Boulder, Colorado. Unidata 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.
@ -53,12 +53,12 @@ pages.
%prep %prep
%setup -q -n netcdf-3_6_0-beta6 %setup -q -n netcdf-3.6.0-p1
%build %build
cd $RPM_BUILD_DIR/netcdf-3_6_0-beta6/src cd src
export FC="g77" export FC="gfortran"
export CPPFLAGS="-fPIC" export CPPFLAGS="-fPIC"
%configure %configure
# WARNING! # 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/%{_libdir}/netcdf-3
mkdir -p $RPM_BUILD_ROOT/%{_datadir} mkdir -p $RPM_BUILD_ROOT/%{_datadir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir} 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 \ %makeinstall INCDIR=${RPM_BUILD_ROOT}%{_includedir}/netcdf-3 \
LIBDIR=${RPM_BUILD_ROOT}%{_libdir}/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* 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 %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -85,7 +88,7 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %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}/* %{_bindir}/*
%{_mandir}/man1/* %{_mandir}/man1/*
@ -97,6 +100,13 @@ rm -rf $RPM_BUILD_ROOT
%changelog %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 * 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) - fix naming scheme for pre-releases (per Michael Schwendt)
@ -108,8 +118,8 @@ rm -rf $RPM_BUILD_ROOT
* 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
@ -119,7 +129,7 @@ rm -rf $RPM_BUILD_ROOT
- 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

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

Loading…
Cancel
Save