-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathyorick-hdf5.spec
120 lines (97 loc) · 3.93 KB
/
yorick-hdf5.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%define name yorick-hdf5
%define version 0.7.0
%define release gemini2008nov21
Summary: yorick HDF5 plugin
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
License: BSD
Group: Development/Languages
Packager: Francois Rigaut <frigaut@gemini.edu>
Url: http://www.maumae.net/yorick/doc/plugins.php
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: yorick >= 2.1 hdf5 >= 1.5
%description
HDF5 is the yorick interface plugin to the NCSA Hierarchical Data Format
version 5. It includes function for reading, writing, updating, getting
information on HDF5 files.
man page:
DATA I/O:
h5read(fname,target) return data
h5write,fname,fullpath,data,zip= write data
h5open(filename,mode) return file handle
h5close(filename) close file
INFO, GROUP LINKING:
h5info,fname,target,att= print out file info/structure
h5link(fname,group,group2link2,linktype) link datasets
h5delete,fname,object delete data
ATTRIBUTE I/O:
h5awrite(fname,object,aname,attdata) write an object attribute
h5aread(fname,object,aname) read an object attribute
h5adelete,fname,object,aname delete an object attribute
MISC:
h5list_open list open files
h5version return linhdf5 version
ERROR RECOVERY
h5off close all reference to the h5 library.
+ Many of the atomic HDF5 functions are available (e.g. H5Fopen, H5Dopen)
with mostly the same APIs. Many simple tasks can be done with the
provided high level wrappers. Beware that programming an HDF5 custom
wrapper is not trivial. Make sure you close every objects opened!
This implementation supports reading of most of the HDF5 supported
datatype. Only yorick datatype can be used for writes. Compression, soft
and hard links, as well as support for attribute read/writes is provided.
There is no support for hyperslabs, compound, enum or opaque datatype.
Generally, there is very little support for datatype related
functionalities.
%prep
%setup -q
%build
yorick -batch make.i
make
if [ -f check.i ] ; then
mv check.i %{name}_check.i
fi;
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/lib
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/i0
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/i
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/i-start
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/yorick-hdf5
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/packages/installed
mkdir -p $RPM_BUILD_ROOT/usr/bin
install -m 755 hdf5.so $RPM_BUILD_ROOT/usr/lib/yorick/lib
install -m 644 hdf5.i $RPM_BUILD_ROOT/usr/lib/yorick/i0
install -m 644 h5scan_fromshell.i $RPM_BUILD_ROOT/usr/lib/yorick/i0
install -m 644 h5convert_fromshell.i $RPM_BUILD_ROOT/usr/lib/yorick/i0
install -m 644 yorick-hdf5_check.i $RPM_BUILD_ROOT/usr/lib/yorick/i
install -m 644 *_start.i $RPM_BUILD_ROOT/usr/lib/yorick/i-start
install -m 644 hdf5doc.txt $RPM_BUILD_ROOT/usr/share/doc/yorick-hdf5
install -m 644 LICENSE $RPM_BUILD_ROOT/usr/share/doc/yorick-hdf5
install -m 644 hdf5.info $RPM_BUILD_ROOT/usr/lib/yorick/packages/installed
install -m 755 h5info $RPM_BUILD_ROOT/usr/bin
install -m 755 h5convert $RPM_BUILD_ROOT/usr/bin
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/lib/yorick/lib/hdf5.so
/usr/lib/yorick/i0/*.i
/usr/lib/yorick/i/*.i
/usr/lib/yorick/i-start/*_start.i
/usr/share/doc/yorick-hdf5/
/usr/lib/yorick/packages/installed/*
/usr/bin/h5info
/usr/bin/h5convert
%changelog
* Fri Nov 21 2008 <frigaut@users.sourceforge.net>
- v0.7.0: added h5old2new, and h5info and h5convert shell utilities
* Thu Nov 13 2008 <frigaut@users.sourceforge.net>
- fixed swapped dimensions and array shape w.r.t h5dump
* Tue Jan 09 2008 <frigaut@users.sourceforge.net>
- included the info file for compat with pkg_mngr
* Mon Dec 31 2007 <frigaut@users.sourceforge.net>
- new distro directory structure
- updated cvs