[netcdf-cxx] Initial import

Orion Poplawski orion at fedoraproject.org
Tue Dec 6 00:03:56 UTC 2011


commit 54285f560aefbecb19ce0ec2a0179f8c1d9d7708
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Mon Dec 5 17:03:53 2011 -0700

    Initial import

 .gitignore      |    1 +
 netcdf-cxx.spec |   97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0deb0fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/netcdf-cxx-4.2.tar.gz
diff --git a/netcdf-cxx.spec b/netcdf-cxx.spec
new file mode 100644
index 0000000..913c647
--- /dev/null
+++ b/netcdf-cxx.spec
@@ -0,0 +1,97 @@
+Name:           netcdf-cxx
+Version:        4.2
+Release:        3%{?dist}
+Summary:        Legacy netCDF C++ library
+
+Group:          Applications/Engineering
+License:        NetCDF
+URL:            http://www.unidata.ucar.edu/software/netcdf/
+Source0:        ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-%{version}.tar.gz
+
+BuildRequires:  netcdf-devel
+
+%description
+Legacy netCDF C++ library.  This library is provided for backward
+compatibility only. New C++ development should be done with the netCDF
+CXX4 C++ library.
+
+
+%package devel
+Summary:        Development files legacy netCDF C++ library
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package contains the legacy netCDF C++ library header files and shared
+devel library.
+
+
+%package static
+Summary:        Static libraries for legacy netCDF C++ library
+Group:          Development/Libraries
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description static
+This package contains the netCDF static libraries.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=${RPM_BUILD_ROOT}
+/bin/rm ${RPM_BUILD_ROOT}%{_libdir}/*.la
+/bin/rm ${RPM_BUILD_ROOT}%{_infodir}/dir
+
+
+%check
+make check
+
+
+%post
+/sbin/ldconfig
+/sbin/install-info %{_infodir}/%{name}.info \
+    %{_infodir}/dir 2>/dev/null || :
+
+%postun
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+  /sbin/install-info --delete %{_infodir}/%{name}.info \
+    %{_infodir}/dir 2>/dev/null || :
+fi
+
+
+%files
+%doc COPYRIGHT cxx/README
+%{_libdir}/libnetcdf_c++.so.*
+
+%files devel
+%doc examples man4/%{name}.pdf
+%{_includedir}/ncvalues.h
+%{_includedir}/netcdf.hh
+%{_includedir}/netcdfcpp.h
+%{_libdir}/libnetcdf_c++.so
+%{_infodir}/%{name}.info*
+
+%files static
+%{_libdir}/libnetcdf_c++.a
+
+
+%changelog
+* Mon Dec 5 2011 Orion Poplawski <orion at cora.nwra.com> - 4.2-3
+- Move info file to -devel
+- Add examples and pdf to -devel documentation
+- Drop %%defattr, %%clean, BuildRoot
+
+* Mon Oct 3 2011 Orion Poplawski <orion at cora.nwra.com> - 4.2-2
+- Use %%{?_isa} in Requires
+- Change -static to require the -devel package
+
+* Fri Sep 30 2011 Orion Poplawski <orion at cora.nwra.com> - 4.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b379d08 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d32b20c00f144ae6565d9e98d9f6204c  netcdf-cxx-4.2.tar.gz


More information about the scm-commits mailing list