File libxtract.spec of Package libxtract

102
 
1
# Copyright (c) 2007-2010 oc2pus
2
# This file and all modifications and additions to the pristine
3
# package are under the same license as the package itself.
4
#
5
# Please submit bugfixes or comments to toni@links2linux.de
6
7
# norootforbuild
8
9
%define _prefix /usr
10
11
Name:           libxtract0
12
Summary:        A simple, portable, lightweight library of audio feature extraction functions
13
Version:        0.6.2
14
Release:        1
15
License: GPL-2.0
16
Group:          System/Libraries
17
Source:         libxtract-%{version}.tar.gz
18
URL:            http://libxtract.sourceforge.net/
19
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
20
BuildRequires:  doxygen
21
BuildRequires:  fftw3-devel
22
23
%description
24
LibXtract is a simple, portable, lightweight library of audio feature
25
extraction functions. The purpose of the library is to provide a
26
relatively exhaustive set of feature extraction primatives that are
27
designed to be 'cascaded' to create a extraction hierarchies.
28
29
For example, 'variance', 'average deviation', 'skewness' and
30
'kurtosis', all require the 'mean' of the input vector to be
31
precomputed. However, rather than compute the 'mean' 'inside' each
32
function, it is expected that the 'mean' will be passed in as an
33
argument. This means that if the user wishes to use all of these
34
features, the mean is calculated only once, and then passed to any
35
functions that require it.
36
37
This philosophy of 'cascading' features is followed throughout the
38
library, for example with features that operate on the magnitude
39
spectrum of a signal vector (e.g. 'irregularity'), the magnitude
40
spectrum is not calculated 'inside' the respective function, instead,
41
a pointer to the first element in an array containing the magnitude
42
spectrum is passed in as an argument.
43
44
Hopefully this not only makes the library more efficient when
45
computing large numbers of features, but also makes it more flexible
46
because extraction functions can be combined arbitrarily (one can
47
take the irregularility of the Mel Frequency Cepstral Coefficients
48
for example).
49
50
Author: Jamie Bullock <jamie@postlude.co.uk>
51
52
%package -n libxtract-devel
53
Summary:    Libraries, includes etc to develop with libxtract library
54
Group:      Development/Libraries/C and C++
55
Requires:   libxtract0 = %{version}
56
57
%description -n libxtract-devel
58
Libraries, includes etc to develop with the libxtract library.
59
60
Author: Jamie Bullock <jamie@postlude.co.uk>
61
62
63
64
%prep
65
%setup -q -n libxtract-%{version}
66
67
%build
68
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
69
%configure \
70
    --disable-static \
71
    --enable-simpletest=no \
72
    --enable-fft
73
%__make %{?jobs:-j%{jobs}}
74
75
%install
76
%makeinstall
77
78
%__rm -f %{buildroot}%{_libdir}/*.la
79
80
%clean
81
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
82
83
%post -p /sbin/ldconfig
84
85
%postun -p /sbin/ldconfig
86
87
%files
88
%defattr(-, root, root)
89
%doc AUTHORS ChangeLog README TODO
90
%{_libdir}/lib*.so.*
91
92
%files -n libxtract-devel
93
%defattr(-, root, root)
94
%doc doc/html/*
95
%dir %{_includedir}/xtract
96
%{_includedir}/xtract/*.h
97
%{_libdir}/lib*.so
98
%{_libdir}/pkgconfig/libxtract.pc
99
100
%changelog
101
# vim: set sw=4 ts=4 et:
102