netcdf-cxx-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. Name: netcdf-cxx
  2. Version: 4.2
  3. Release: 12%{?_dist_release}
  4. Summary: Legacy netCDF C++ library
  5. Summary(ja): レガシーな netCDF C++ ライブラリ
  6. Group: System Environment/Libraries
  7. License: NetCDF
  8. URL: http://www.unidata.ucar.edu/software/netcdf/
  9. Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: netcdf-devel
  12. %description
  13. Legacy netCDF C++ library. This library is provided for backward
  14. compatibility only. New C++ development should be done with the netCDF
  15. CXX4 C++ library.
  16. %package devel
  17. Summary: Development files legacy netCDF C++ library
  18. Summary(ja): レガシーな netCDF C++ ライブラリの開発用ファイル
  19. Group: Development/Libraries
  20. Requires: %{name} = %{version}-%{release}
  21. Requires: netcdf-devel
  22. Requires(post): install-info
  23. Requires(preun): install-info
  24. %description devel
  25. This package contains the legacy netCDF C++ library header files and shared
  26. devel library.
  27. %package static
  28. Summary: Static libraries for legacy netCDF C++ library
  29. Summary(ja): レガシーな netCDF C++ 静的ライブラリ
  30. Group: Development/Libraries
  31. Requires: %{name}-devel = %{version}-%{release}
  32. %description static
  33. This package contains the netCDF static libraries.
  34. %prep
  35. %setup -q
  36. %build
  37. %configure
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make install DESTDIR=$RPM_BUILD_ROOT
  42. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  43. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  44. %check
  45. make check
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %post -p /sbin/ldconfig
  49. %postun -p /sbin/ldconfig
  50. %post devel
  51. /sbin/install-info %{_infodir}/%{name}.info \
  52. %{_infodir}/dir 2>/dev/null || :
  53. %preun devel
  54. if [ "$1" = 0 ]; then
  55. /sbin/install-info --delete %{_infodir}/%{name}.info \
  56. %{_infodir}/dir 2>/dev/null || :
  57. fi
  58. %files
  59. %doc COPYRIGHT cxx/README
  60. %{_libdir}/libnetcdf_c++.so.*
  61. %files devel
  62. %doc examples man4/%{name}.pdf
  63. %{_includedir}/ncvalues.h
  64. %{_includedir}/netcdf.hh
  65. %{_includedir}/netcdfcpp.h
  66. %{_libdir}/libnetcdf_c++.so
  67. %{_infodir}/%{name}.info*
  68. %files static
  69. %{_libdir}/libnetcdf_c++.a
  70. %changelog
  71. * Tue Jan 27 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 4.2-12
  72. - Initial build for Vine Linux
  73. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-11
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  75. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-10
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  77. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-9
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  79. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-8
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  81. * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-7
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  83. * Wed Mar 21 2012 Orion Poplawski <orion@cora.nwra.com> - 4.2-6
  84. - Add Requires netcdf-devel
  85. * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-5
  86. - Rebuilt for c++ ABI breakage
  87. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-4
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  89. * Mon Dec 5 2011 Orion Poplawski <orion@cora.nwra.com> - 4.2-3
  90. - Move info file to -devel
  91. - Add examples and pdf to -devel documentation
  92. - Drop %%defattr, %%clean, BuildRoot
  93. * Mon Oct 3 2011 Orion Poplawski <orion@cora.nwra.com> - 4.2-2
  94. - Use %%{?_isa} in Requires
  95. - Change -static to require the -devel package
  96. * Fri Sep 30 2011 Orion Poplawski <orion@cora.nwra.com> - 4.2-1
  97. - Initial package