Author: qboosh Date: Sun Feb 5 13:44:02 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - updated to 3.6.1, updated shared patch, removed outdated makefile patch - build f90 interface (where available) as separate library - separated c++ and f90 libraries
---- Files affected: SPECS: netcdf.spec (1.21 -> 1.22) ---- Diffs: ================================================================ Index: SPECS/netcdf.spec diff -u SPECS/netcdf.spec:1.21 SPECS/netcdf.spec:1.22 --- SPECS/netcdf.spec:1.21 Mon Mar 28 21:33:17 2005 +++ SPECS/netcdf.spec Sun Feb 5 14:43:57 2006 @@ -1,20 +1,27 @@ # $Revision$, $Date$ +# +# Conditional build: +%bcond_without f90 # don't build Fortran 90 interface (just builtin F77) +# Summary: NetCDF: Network Common Data Form Summary(pl): NetCDF: obsługa wspólnego sieciowego formatu danych Name: netcdf -Version: 3.6.0 -Release: 2 +Version: 3.6.1 +Release: 1 License: BSD-like Group: Libraries -Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.Z -# Source0-md5: 778cb368b890fe169542f2a4e2c5fd71 +Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz +# Source0-md5: 2fde233aefb5c226bdecd9c3265d664e Patch0: %{name}-shared.patch -Patch1: %{name}-makefile.patch URL: http://www.unidata.ucar.edu/packages/netcdf/ BuildRequires: automake +%if %{with f90} +BuildRequires: gcc-fortran >= 5:4.0 +%else BuildRequires: gcc-g77 +%endif BuildRequires: libstdc++-devel -BuildRequires: libtool >= 2:1.4d-3 +BuildRequires: libtool >= 2:1.5 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -26,6 +33,8 @@ scientific data. The netCDF software was developed at the Unidata Program Center in Boulder, Colorado. +This package contains C and Fortran 77 library. + %description -l pl NetCDF (Network Common Data Form) jest interfejsem dostępu do danych zorganizowanych w tablice. Biblioteka netCDF definiuje niezależny od @@ -33,6 +42,8 @@ biblioteka pozwalają na tworzenie, dostęp i współdzielenie danych. NetCDF powstał w Unidata Program Center w Boulder, Colorado. +Ten pakiet zawiera bibliotekę dla C i Fortranu 77. + %package devel Summary: Header files for netCDF Summary(pl): Pliki nagłówkowe netCDF @@ -40,32 +51,107 @@ Requires: %{name} = %{version}-%{release} %description devel -Header files for netCDF. +Header files for netCDF - C and Fortran 77 interfaces. %description devel -l pl -Pliki nagłówkowe do biblioteki netCDF. +Pliki nagłówkowe do biblioteki netCDF - interfejsy dla C i Fortranu +77. %package static -Summary: NetCDF - static libraries -Summary(pl): Biblioteki statyczne netCDF +Summary: NetCDF - static library +Summary(pl): Biblioteka statyczna netCDF Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static -Static version of netCDF libraries. +Static version of netCDF C and Fortran 77 library. %description static -l pl -Statyczne wersje bibliotek netCDF. +Statyczna wersja biblioteki netCDF dla C i Fortranu 77. + +%package c++ +Summary: NetCDF - C++ library +Summary(pl): Biblioteka C++ netCDF +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description c++ +NetCDF - C++ library. + +%description c++ -l pl +Biblioteka C++ netCDF. + +%package c++-devel +Summary: Header files for netCDF C++ interface +Summary(pl): Pliki nagłówkowe interfejsu C++ netCDF +Group: Development/Libraries +Requires: %{name}-c++ = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} +Requires: libstdc++-devel + +%description c++-devel +Header files for netCDF C++ interface. + +%description c++ -l pl +Pliki nagłówkowe interfejsu C++ netCDF. + +%package c++-static +Summary: NetCDF - C++ static library +Summary(pl): Statyczna biblioteka C++ netCDF +Group: Development/Libraries +Requires: %{name}-c++-devel = %{version}-%{release} + +%description c++-static +NetCDF - C++ static library. + +%description c++-static -l pl +Statyczna biblioteka C++ netCDF. + +%package f90 +Summary: NetCDF - Fortran 90 library +Summary(pl): Biblioteka Fortranu 90 netCDF +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description f90 +NetCDF - Fortran 90 library. + +%description f90 -l pl +Biblioteka Fortranu 90 netCDF. + +%package f90-devel +Summary: Header files for netCDF Fortran 90 interface +Summary(pl): Pliki nagłówkowe interfejsu Fortran 90 netCDF +Group: Development/Libraries +Requires: %{name}-f90 = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} +Requires: gcc-fortran >= 5:4.0 + +%description f90-devel +Header files for netCDF Fortran 90 interface. + +%description f90-devel -l pl +Pliki nagłówkowe interfejsu Fortran 90 netCDF. + +%package f90-static +Summary: NetCDF - Fortran 90 static library +Summary(pl): Statyczna biblioteka Fortranu 90 netCDF +Group: Development/Libraries +Requires: %{name}-f90-devel = %{version}-%{release} + +%description f90-static +NetCDF - Fortran 90 static library. + +%description f90-static -l pl +Statyczna biblioteka Fortranu 90 netCDF. %prep %setup -q %patch0 -p1 -%patch1 -p1 %build cd src -CFLAGS="%{rpmcflags} -Df2cFortran" # too many hacks to rebuild cp -f /usr/share/automake/config.* . %configure @@ -82,9 +168,13 @@ MANDIR=$RPM_BUILD_ROOT%{_mandir} \ LIBDIR=$RPM_BUILD_ROOT%{_libdir} -# resolve man names conflict +# resolve man names conflicts mv -f $RPM_BUILD_ROOT%{_mandir}/man3/netcdf.3f \ $RPM_BUILD_ROOT%{_mandir}/man3/netcdff.3 +%if %{with f90} +mv -f $RPM_BUILD_ROOT%{_mandir}/man3/netcdf.3f90 \ + $RPM_BUILD_ROOT%{_mandir}/man3/netcdf_f90.3 +%endif %clean rm -rf $RPM_BUILD_ROOT @@ -92,23 +182,66 @@ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post c++ -p /sbin/ldconfig +%postun c++ -p /sbin/ldconfig + +%post f90 -p /sbin/ldconfig +%postun f90 -p /sbin/ldconfig + %files %defattr(644,root,root,755) +%doc src/{COPYRIGHT,README,RELEASE_NOTES} %attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/*.so.*.* +%attr(755,root,root) %{_libdir}/libnetcdf.so.*.*.* %{_mandir}/man1/* %files devel %defattr(644,root,root,755) -%doc src/COPYRIGHT src/README src/RELEASE_NOTES src/fortran/cfortran.doc -%attr(755,root,root) %{_libdir}/*.so -%{_libdir}/*.la -%{_includedir}/* -%{_mandir}/man3/* +%doc src/fortran/cfortran.doc +%attr(755,root,root) %{_libdir}/libnetcdf.so +%{_libdir}/libnetcdf.la +%{_includedir}/netcdf.h +%{_includedir}/netcdf.inc +%{_mandir}/man3/netcdf.3* +%{_mandir}/man3/netcdff.3* %files static %defattr(644,root,root,755) -%{_libdir}/*.a +%{_libdir}/libnetcdf.a + +%files c++ +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnetcdf_c++.so.*.*.* + +%files c++-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnetcdf_c++.so +%{_libdir}/libnetcdf_c++.la +%{_includedir}/ncvalues.h +%{_includedir}/netcdf.hh +%{_includedir}/netcdfcpp.h + +%files c++-static +%defattr(644,root,root,755) +%{_libdir}/libnetcdf_c++.a + +%if %{with f90} +%files f90 +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnetcdf_f90.so.*.*.* + +%files f90-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnetcdf_f90.so +%{_libdir}/libnetcdf_f90.la +%{_includedir}/netcdf.mod +%{_includedir}/typesizes.mod +%{_mandir}/man3/netcdf_f90.3* + +%files f90-static +%defattr(644,root,root,755) +%{_libdir}/libnetcdf_f90.a +%endif %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -116,6 +249,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.22 2006/02/05 13:43:57 qboosh +- updated to 3.6.1, updated shared patch, removed outdated makefile patch +- build f90 interface (where available) as separate library +- separated c++ and f90 libraries + Revision 1.21 2005/03/28 19:33:17 qboosh - release 2 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/netcdf.spec?r1=1.21&r2=1.22&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
