This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
forked from bemoody/wfdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wfdb.spec
265 lines (224 loc) · 7.11 KB
/
wfdb.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# Note that this is NOT a relocatable package
Summary: Waveform Database Software Package
Name: wfdb
Version: VERSION
Release: RPMRELEASE
License: GPL
Group: Libraries
Source: http://www.physionet.org/physiotools/archives/wfdb-VERSION.tar.gz
URL: http://www.physionet.org/physiotools/wfdb.shtml
Vendor: PhysioNet
Packager: George Moody <[email protected]>
Requires: curl >= 7.10
Requires: curl-devel >= 7.10
Requires: expat-devel
BuildRoot: /var/tmp/%{name}-root
%changelog
* Sat Mar 12 2011 George B Moody <[email protected]>
- install to /usr/local, added expat-devel dependency
* Wed Oct 6 2010 George B Moody <[email protected]>
- added annxml, heaxml, xmlann, xmlhea
* Sun May 3 2009 George B Moody <[email protected]>
- moved wfdb-config from devel to apps
* Thu Feb 29 2009 George B Moody <[email protected]>
- added wfdb2mat
* Wed Feb 18 2009 George B Moody <[email protected]>
- added wfdbtime
* Wed Apr 9 2008 George B Moody <[email protected]>
- added rdedfann, signame, signum
* Wed May 11 2006 George B Moody <[email protected]>
- better solution for problems with compiled-in paths
* Wed May 10 2006 George B Moody <[email protected]>
- rewrote install section to solve problems with compiled-in paths
* Wed Aug 3 2005 George B Moody <[email protected]>
- added --dynamic to 'configure' argument list
* Wed Jun 8 2005 George B Moody <[email protected]>
- replaced libwww dependencies with libcurl
* Mon Mar 8 2004 George B Moody <[email protected]>
- added time2sec
* Wed Mar 19 2003 George B Moody <[email protected]>
- added --mandir to build, fixed linking in post
* Wed Dec 18 2002 George B Moody <[email protected]>
- split into wfdb, wfdb-devel, wfdb-app, wfdb-wave, wfdb-doc subpackages
* Sun Dec 8 2002 George B Moody <[email protected]>
- paths now use rpm's variables where possible
# ---- common prep/build/install/clean/post/postun ----------------------------
%prep
%setup
%build
# The 'make' commands below create HTML, PDF, and PostScript versions of the
# WFDB Programmer's Guide, WFDB Applications Guide, and WAVE User's Guide.
make clean
PATH=$PATH:/usr/openwin/bin ./configure --prefix=/usr/local --dynamic --mandir=%{_mandir}
cd doc/wpg-src; make
cd ../wag-src; make
cd ../wug-src; make
%install
rm -rf $RPM_BUILD_ROOT
make install
make collect
cd /tmp/wfdb; cp -pr . $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
make clean
%post
%postun
# ---- wfdb [shared library] package ------------------------------------------
%description
The WFDB (Waveform Database) library supports creating, reading, and annotating
digitized signals in a wide variety of formats. Input can be from local files
or directly from web or FTP servers (via the W3C's libwww). WFDB applications
need not be aware of the source or format of their input, since input files are
located by searching a path that may include local and remote components, and
all data are transparently converted on-the-fly into a common format. Although
created for use with physiologic signals such as those in PhysioBank
(http://www.physionet.org/physiobank/), the WFDB library supports a broad
range of general-purpose signal processing applications.
%files
%defattr(-,root,root)
%{_libdir}/libwfdb.so*
# ---- wfdb-devel package -----------------------------------------------------
%package devel
Summary: WFDB developer's toolkit
Group: Development/Libraries
URL: http://www.physionet.org/physiotools/wpg/
Requires: wfdb = VERSION
%description devel
This package includes files needed to develop new WFDB applications in C, C++,
and Fortran, examples in C and in Fortran, and miscellaneous documentation.
%files devel
%defattr(-,root,root)
%{_prefix}/database
%{_prefix}/include/wfdb
%doc checkpkg examples fortran lib/COPYING.LIB COPYING INSTALL MANIFEST NEWS README README.NETFILES
# ---- wfdb-app package -------------------------------------------------------
%package app
Summary: WFDB applications
Group: Applications/Scientific
URL: http://www.physionet.org/physiotools/wag/
Requires: wfdb >= VERSION
%description app
About 60 applications for creating, reading, transforming, analyzing,
annotating, and viewing digitized signals, especially physiologic signals.
Applications include digital filtering, event detection, signal averaging,
power spectrum estimation, and many others.
%files app
%defattr(-,root,root)
%{_bindir}/a2m
%{_bindir}/ad2m
%{_bindir}/ahaconvert
%{_bindir}/ahaecg2mit
%{_bindir}/ann2rr
%{_bindir}/annxml
%{_bindir}/bxb
%{_bindir}/calsig
%{_bindir}/coherence
%{_bindir}/cshsetwfdb
%{_bindir}/ecgeval
%{_bindir}/edf2mit
%{_bindir}/epicmp
%{_bindir}/fft
%{_bindir}/fir
%{_bindir}/heaxml
%{_bindir}/hrfft
%{_bindir}/hrlomb
%{_bindir}/hrmem
%{_bindir}/hrplot
%{_bindir}/ihr
%{_bindir}/log10
%{_bindir}/lomb
%{_bindir}/m2a
%{_bindir}/makeid
%{_bindir}/md2a
%{_bindir}/memse
%{_bindir}/mfilt
%{_bindir}/mit2edf
%{_bindir}/mit2wav
%{_bindir}/mrgann
%{_bindir}/mxm
%{_bindir}/nguess
%{_bindir}/nst
%{_bindir}/plot2d
%{_bindir}/plot3d
%{_bindir}/plotstm
%{_bindir}/pscgen
%{_bindir}/pschart
%{_bindir}/psfd
%{_bindir}/rdann
%{_bindir}/rdedfann
%{_bindir}/rdsamp
%{_bindir}/readid
%{_bindir}/revise
%{_bindir}/rr2ann
%{_bindir}/rxr
%{_bindir}/sampfreq
%{_bindir}/setwfdb
%{_bindir}/sigamp
%{_bindir}/sigavg
%{_bindir}/signame
%{_bindir}/signum
%{_bindir}/skewedit
%{_bindir}/snip
%{_bindir}/sortann
%{_bindir}/sqrs
%{_bindir}/sqrs125
%{_bindir}/sumann
%{_bindir}/sumstats
%{_bindir}/tach
%{_bindir}/time2sec
%{_bindir}/url_view
%{_bindir}/wabp
%{_bindir}/wav2mit
%{_bindir}/wfdb-config
%{_bindir}/wfdb2mat
%{_bindir}/wfdbcat
%{_bindir}/wfdbcollate
%{_bindir}/wfdbdesc
%{_bindir}/wfdbtime
%{_bindir}/wfdbwhich
%{_bindir}/wqrs
%{_bindir}/wrann
%{_bindir}/wrsamp
%{_bindir}/xform
%{_bindir}/xmlann
%{_bindir}/xmlhea
%{_libdir}/ps
%{_mandir}
# ---- wfdb-wave package ------------------------------------------------------
%package wave
Summary: Waveform Analyzer, Viewer, and Editor.
Group: X11/Applications/Science
URL: http://www.physionet.org/physiotools/wug/
Requires: wfdb >= VERSION
Requires: wfdb-app
Requires: xview >= 3.2
Requires: xview-devel >= 3.2
%description wave
WAVE provides an environment for exploring digitized signals and time series.
It provides fast, high-quality views of data stored locally or on remote
web or FTP servers, flexible control of standard and user-provided analysis
modules, efficient interactive annotation editing, and support for multiple
views on the same or different displays to support collaborative analysis and
annotation projects. WAVE has been used to develop annotations for most of
the PhysioBank databases (http://www.physionet.org/physiobank/).
WAVE uses the XView graphical user interface.
%files wave
%defattr(-,root,root)
%{_bindir}/wave
%{_bindir}/wave-remote
%{_bindir}/wavescript
%{_prefix}/help/
%config %{_prefix}/lib/wavemenu.def
%config %{_prefix}/lib/X11/app-defaults/Wave
%doc wave/anntab
# ---- wfdb-doc package -------------------------------------------------------
%package doc
Summary: WFDB documentation.
Group: Documentation
URL: http://www.physionet.org/physiotools/manuals.shtml
%description doc
This package includes HTML, PostScript, and PDF versions of the WFDB
Programmer's Guide, the WFDB Applications Guide, and the WAVE User's Guide.
%files doc
%defattr(-,root,root)
%doc doc/wag doc/wpg doc/wug