Browse Source

hdf5: update to 1.8.20

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11731 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 4 years ago
parent
commit
1a594fb7fc
1 changed files with 33 additions and 22 deletions
  1. 33 22
      h/hdf5/hdf5-vl.spec

+ 33 - 22
h/hdf5/hdf5-vl.spec

@@ -1,22 +1,30 @@
-Name: hdf5
-Version: 1.8.14
-Release: 2%{?_dist_release}
+%define pkg_name    hdf5
+%define pkg_version 1.8.20
+%define pkg_release 1%{?_dist_release}
+
 Summary: A general purpose library and file format for storing scientific data
+Name:    %{pkg_name}
+Version: %{pkg_version}
+Release: %{pkg_release}
+
 License: BSD
-Group: System Environment/Libraries
-URL: http://www.hdfgroup.org/HDF5/
+Group:   System Environment/Libraries
+URL:     http://www.hdfgroup.org/HDF5/
+
 Source0: ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}.tar.bz2
 # Source1: ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}_docs.tar
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: zlib-devel, gcc-gfortran, time
 
+
 %description
 HDF5 is a general purpose library and file format for storing scientific data.
-HDF5 can store two primary objects: datasets and groups. A dataset is 
-essentially a multidimensional array of data elements, and a group is a 
-structure for organizing objects in an HDF5 file. Using these two basic 
-objects, one can create and store almost any kind of scientific data 
-structure, such as images, arrays of vectors, and structured and unstructured 
+HDF5 can store two primary objects: datasets and groups. A dataset is
+essentially a multidimensional array of data elements, and a group is a
+structure for organizing objects in an HDF5 file. Using these two basic
+objects, one can create and store almost any kind of scientific data
+structure, such as images, arrays of vectors, and structured and unstructured
 grids. You can also mix and match them in HDF5 files according to your needs.
 
 %package devel
@@ -35,34 +43,33 @@ Requires: %{name}-devel = %{version}-%{release}
 %description static
 HDF5 static libraries.
 
+
 %prep
 %setup -q
 
-
 %build
 export CC=gcc
 export CXX=g++
 export F9X=gfortran
-%configure --with-ssl --enable-cxx --enable-fortran \
-           --disable-dependency-tracking \
-           --enable-hl --enable-shared
+%{configure} --with-ssl --enable-cxx --enable-fortran \
+             --disable-dependency-tracking \
+             --enable-hl --enable-shared
 %{__make} %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%makeinstall docdir=${RPM_BUILD_ROOT}%{_docdir}
-rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la $RPM_BUILD_ROOT/%{_libdir}/*.settings
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{makeinstall} docdir=${RPM_BUILD_ROOT}%{_docdir}
+%{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/*.la ${RPM_BUILD_ROOT}/%{_libdir}/*.settings
 
 %check
-make check
+%{__make} check
 
 %clean
-rm -rf $RPM_BUILD_ROOT
-
+%{__rm} -rf ${RPM_BUILD_ROOT}
 
-%post -p /sbin/ldconfig
+%post -p %{_syssbindir}/ldconfig
 
-%postun -p /sbin/ldconfig
+%postun -p %{_syssbindir}/ldconfig
 
 
 %files
@@ -101,7 +108,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %{_libdir}/*.a
 
+
 %changelog
+* Sat Jun 30 2018 Toshiaki Ara <ara_t@384.jp> 1.8.20-1
+- update to 1.8.20
+
 * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.14-2
 - rebuild with gcc-5.4.0