]> git.pld-linux.org Git - packages/netcdf.git/commitdiff
- updated to 3.6.1, updated shared patch, removed outdated makefile patch auto/th/netcdf-3_6_1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Feb 2006 13:43:57 +0000 (13:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- build f90 interface (where available) as separate library
- separated c++ and f90 libraries

Changed files:
    netcdf.spec -> 1.22

netcdf.spec

index 65476e9b534d9393750c27bfb7696b67ac0ed522..caf522f76ae29b17f16ce3c552d5d0686fbe2ace 100644 (file)
@@ -1,19 +1,26 @@
+#
+# 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
@@ -25,6 +32,8 @@ library, and format support the creation, access, and sharing of
 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
@@ -32,6 +41,8 @@ maszyny format reprezentowania danych naukowych. Interfejs oraz
 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
@@ -39,32 +50,107 @@ Group:             Development/Libraries
 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
@@ -81,9 +167,13 @@ install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_mandir}}
        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
@@ -91,20 +181,63 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.097204 seconds and 4 git commands to generate.