]>
Commit | Line | Data |
---|---|---|
79fb52b2 SS |
1 | # TODO: |
2 | # - unpackaged /usr/share/sounds/aubio/woodblock.aiff | |
3 | # - package python stuff | |
1597cc87 SS |
4 | # - create lash.spec (http://www.nongnu.org/lash) and |
5 | # --enable-lash | |
79fb52b2 SS |
6 | # |
7 | Summary: aubio is a library for audio labelling | |
8 | Name: aubio | |
9 | Version: 0.3.2 | |
10 | Release: 0.1 | |
11 | License: GPL v2+ | |
12 | Group: Libraries | |
13 | Source0: http://aubio.piem.org/pub/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: ffc3e5e4880fec67064f043252263a44 | |
15 | URL: http://aubio.piem.org/ | |
16 | BuildRequires: alsa-lib-devel | |
17 | BuildRequires: fftw3-single-devel | |
18 | BuildRequires: jack-audio-connection-kit-devel | |
19 | BuildRequires: libsamplerate-devel | |
20 | BuildRequires: libsndfile-devel | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | aubio is a library for audio labelling | |
25 | ||
26 | %package devel | |
9d374366 SS |
27 | Summary: Header files for aubio library |
28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki aubio | |
79fb52b2 SS |
29 | Group: Development/Libraries |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Header files for aubio library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki aubio. | |
37 | ||
38 | %package static | |
39 | Summary: Static aubio library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka aubio | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static aubio library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka aubio. | |
49 | ||
b9d3858a SS |
50 | %package progs |
51 | Summary: Example applications using aubio library | |
52 | Group: Applications | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
55 | %description progs | |
56 | A few examples of applications using aubio library: | |
57 | - aubioonset: outputs the onset detected | |
58 | - aubionotes: uses both onset and pitch to extract symbolic music data | |
59 | from an audio source and emit MIDI like data. | |
60 | - aubiocut: a python script that takes an input sound and creates one | |
61 | new sample at each detected onset or beat. The slices produced by | |
62 | aubiocut are useful for use with a sequencer such as Hydrogen. | |
63 | - aubiopitch: a python script to extract pitch tracks from sound files | |
64 | ||
79fb52b2 SS |
65 | %prep |
66 | %setup -q | |
67 | ||
68 | %build | |
69 | %configure \ | |
70 | --enable-alsa \ | |
1597cc87 | 71 | --enable-jack |
79fb52b2 SS |
72 | |
73 | %{__make} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | rm -rf $RPM_BUILD_ROOT/%{py_sitedir} | |
82 | rm -rf $RPM_BUILD_ROOT/%{py_libdir} | |
83 | rm -rf $RPM_BUILD_ROOT/%{py_scriptdir} | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
79fb52b2 SS |
94 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/lib*.so | |
99 | %{_libdir}/lib*.la | |
100 | %{_includedir}/%{name} | |
101 | %{_pkgconfigdir}/*.pc | |
102 | ||
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/lib*.a | |
b9d3858a SS |
106 | |
107 | %files progs | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_bindir}/* |