Summary: CDF (Common Data Format) software
Summary(pl.UTF-8): Oprogramowanie obsługujące CDF (Common Data Format)
Name: cdflib
-Version: 3.6.1
+Version: 3.7.1
Release: 1
License: freely usable, non-commercially distributable
Group: Libraries
-# see http://cdf.gsfc.nasa.gov/html/sw_and_docs.html
-Source0: http://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf36_1/linux/cdf36_1-dist-all.tar.gz
-# Source0-md5: 9a2120adb512838742dbb344f96fdf3b
+# see https://cdf.gsfc.nasa.gov/html/sw_and_docs.html
+Source0: https://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf37_1/linux/cdf37_1-dist-all.tar.gz
+# Source0-md5: 0f434ffbb7f6ffe39b2bb20c5a940aee
Patch0: %{name}-opt.patch
-URL: http://cdf.gsfc.nasa.gov/cdf_home.html
+Patch1: %{name}-soname.patch
+Patch2: %{name}-no-common.patch
+URL: https://cdf.gsfc.nasa.gov/cdf_home.html
BuildRequires: gcc-fortran >= 6:4.4.2
BuildRequires: ncurses-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
API Javy do biblioteki CDF.
%prep
-%setup -q -n cdf36_1-dist
+%setup -q -n cdf37_1-dist
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
# note: included zlib (src/lib/zlib) is modified (at last public symbol names)
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc CDF_copyright.txt CHANGES.txt README_cdf_tools.txt Release.notes Welcome.txt
%attr(755,root,root) %{_bindir}/cdf*
%attr(755,root,root) %{_bindir}/skeletoncdf
%attr(755,root,root) %{_bindir}/skeletontable
-%attr(755,root,root) %{_libdir}/libcdf.so
+%attr(755,root,root) %{_libdir}/libcdf.so.%{version}
+%attr(755,root,root) %ghost %{_libdir}/libcdf.so.3
%{_libdir}/cdf
%{_datadir}/cdf
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcdf.so
%dir %{_includedir}/cdf
# C
%{_includedir}/cdf/cdf.h