]>
Commit | Line | Data |
---|---|---|
79fb52b2 | 1 | # TODO: |
34861e54 | 2 | # - package doc and create audacity-plugin |
79fb52b2 | 3 | # |
8eebf965 | 4 | # Conditional build: |
21b138b4 | 5 | %bcond_without python # python bindings |
8eebf965 | 6 | # |
691d98ed JB |
7 | Summary: aubio - library for audio labelling |
8 | Summary(pl.UTF-8): aubio - biblioteka do oznaczania dźwięku | |
79fb52b2 SS |
9 | Name: aubio |
10 | Version: 0.3.2 | |
5a326cd9 | 11 | Release: 1 |
79fb52b2 SS |
12 | License: GPL v2+ |
13 | Group: Libraries | |
14 | Source0: http://aubio.piem.org/pub/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: ffc3e5e4880fec67064f043252263a44 | |
21b138b4 | 16 | Patch0: %{name}-python.patch |
79fb52b2 | 17 | URL: http://aubio.piem.org/ |
21b138b4 JB |
18 | BuildRequires: alsa-lib-devel >= 0.9.0 |
19 | BuildRequires: autoconf >= 2.50 | |
20 | BuildRequires: automake | |
5a326cd9 | 21 | BuildRequires: docbook-to-man |
21b138b4 JB |
22 | BuildRequires: fftw3-single-devel >= 3.0.0 |
23 | BuildRequires: jack-audio-connection-kit-devel >= 0.15.0 | |
5a326cd9 | 24 | BuildRequires: lash-devel >= 0.5.0 |
21b138b4 JB |
25 | BuildRequires: libsamplerate-devel >= 0.0.15 |
26 | BuildRequires: libsndfile-devel >= 1.0.4 | |
27 | BuildRequires: libtool | |
28 | BuildRequires: pkgconfig | |
29 | #BuildRequires: puredata-devel (m_pd.h) | |
8eebf965 SS |
30 | %if %{with python} |
31 | BuildRequires: python-devel | |
21b138b4 JB |
32 | BuildRequires: rpm-pythonprov |
33 | BuildRequires: rpmbuild(macros) >= 1.219 | |
8eebf965 SS |
34 | BuildRequires: swig-python |
35 | %endif | |
79fb52b2 SS |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
691d98ed JB |
39 | aubio is a library for audio labelling. |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | aubio to biblioteka do oznaczania dźwięku. | |
79fb52b2 SS |
43 | |
44 | %package devel | |
9d374366 SS |
45 | Summary: Header files for aubio library |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki aubio | |
79fb52b2 SS |
47 | Group: Development/Libraries |
48 | Requires: %{name} = %{version}-%{release} | |
21b138b4 JB |
49 | Requires: fftw3-single-devel >= 3.0.0 |
50 | Requires: libsamplerate-devel >= 0.0.15 | |
51 | # for libaubioext: | |
52 | # alsa-lib-devel >= 0.9.0 | |
53 | # jack-audio-connection-kit-devel >= 0.15.0 | |
54 | # libsndfile-devel >= 1.0.4 | |
79fb52b2 SS |
55 | |
56 | %description devel | |
57 | Header files for aubio library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki aubio. | |
61 | ||
62 | %package static | |
63 | Summary: Static aubio library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka aubio | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static aubio library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczna biblioteka aubio. | |
73 | ||
b9d3858a SS |
74 | %package progs |
75 | Summary: Example applications using aubio library | |
691d98ed JB |
76 | Summary(pl.UTF-8): Przykładowe programy korzystajace z biblioteki aubio |
77 | Group: Applications/Sound | |
b9d3858a SS |
78 | Requires: %{name} = %{version}-%{release} |
79 | ||
80 | %description progs | |
81 | A few examples of applications using aubio library: | |
691d98ed | 82 | - aubioonset: outputs the onset detected. |
b9d3858a SS |
83 | - aubionotes: uses both onset and pitch to extract symbolic music data |
84 | from an audio source and emit MIDI like data. | |
691d98ed | 85 | - aubiocut: a Python script that takes an input sound and creates one |
b9d3858a SS |
86 | new sample at each detected onset or beat. The slices produced by |
87 | aubiocut are useful for use with a sequencer such as Hydrogen. | |
691d98ed JB |
88 | - aubiopitch: a Python script to extract pitch tracks from sound |
89 | files. | |
90 | ||
91 | %description progs -l pl.UTF-8 | |
92 | Kilka przykładowych aplikacji korzystających z biblioteki dubio: | |
93 | - aubioonset - wypisuje wykryty początek. | |
94 | - aubionotes - wykorzystuje początek i wysokość do wyciągnięcia | |
95 | symbolicznych danych muzycznych ze źródła dźwięku i stworzenia | |
96 | danych typu MIDI. | |
97 | - aubiocut - skrypt Pythona pobierający dźwięk wejściowy i tworzący | |
98 | nową próbkę dla każdego wykrytego początku lub taktu. Fragmenty | |
99 | tworzone przez aubiocut są przydatne do wykorzystania przez | |
100 | sekwencer, jak np. Hydrogen. | |
101 | - aubiopitch - skrypt Pythona do wyciągania ścieżek wysokości z | |
102 | plików dźwiękowych. | |
b9d3858a | 103 | |
8eebf965 | 104 | %package -n python-aubio |
691d98ed JB |
105 | Summary: aubio Python bindings |
106 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki aubio | |
8eebf965 SS |
107 | Group: Libraries/Python |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description -n python-aubio | |
691d98ed JB |
111 | aubio Python bindings. |
112 | ||
113 | %description -n python-aubio -l pl.UTF-8 | |
114 | Wiązania Pythona do biblioteki aubio. | |
8eebf965 | 115 | |
79fb52b2 SS |
116 | %prep |
117 | %setup -q | |
21b138b4 | 118 | %patch0 -p1 |
79fb52b2 SS |
119 | |
120 | %build | |
21b138b4 JB |
121 | %{__libtoolize} |
122 | %{__aclocal} | |
123 | %{__autoconf} | |
124 | %{__autoheader} | |
125 | %{__automake} | |
79fb52b2 SS |
126 | %configure \ |
127 | --enable-alsa \ | |
5a326cd9 | 128 | --enable-lash \ |
1597cc87 | 129 | --enable-jack |
79fb52b2 SS |
130 | |
131 | %{__make} | |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
21b138b4 JB |
139 | %py_postclean |
140 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/aubio/_aubiowrapper.{la,a} | |
141 | ||
79fb52b2 SS |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post -p /sbin/ldconfig | |
146 | %postun -p /sbin/ldconfig | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
150 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
21b138b4 JB |
151 | %attr(755,root,root) %{_libdir}/libaubio.so.*.*.* |
152 | %attr(755,root,root) %{_libdir}/libaubioext.so.*.*.* | |
5a326cd9 SS |
153 | %attr(755,root,root) %ghost %{_libdir}/libaubio.so.2 |
154 | %attr(755,root,root) %ghost %{_libdir}/libaubioext.so.2 | |
79fb52b2 SS |
155 | |
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
21b138b4 JB |
158 | %attr(755,root,root) %{_libdir}/libaubio.so |
159 | %attr(755,root,root) %{_libdir}/libaubioext.so | |
160 | %{_libdir}/libaubio.la | |
161 | %{_libdir}/libaubioext.la | |
79fb52b2 | 162 | %{_includedir}/%{name} |
21b138b4 | 163 | %{_pkgconfigdir}/aubio.pc |
79fb52b2 SS |
164 | |
165 | %files static | |
166 | %defattr(644,root,root,755) | |
21b138b4 JB |
167 | %{_libdir}/libaubio.a |
168 | %{_libdir}/libaubioext.a | |
b9d3858a SS |
169 | |
170 | %files progs | |
171 | %defattr(644,root,root,755) | |
8eebf965 SS |
172 | %attr(755,root,root) %{_bindir}/aubionotes |
173 | %attr(755,root,root) %{_bindir}/aubioonset | |
174 | %attr(755,root,root) %{_bindir}/aubiotrack | |
21b138b4 JB |
175 | %{_mandir}/man1/aubionotes.1* |
176 | %{_mandir}/man1/aubioonset.1* | |
177 | %{_mandir}/man1/aubiotrack.1* | |
178 | %{_datadir}/sounds/aubio | |
8eebf965 | 179 | |
21b138b4 | 180 | %if %{with python} |
8eebf965 SS |
181 | %files -n python-aubio |
182 | %defattr(644,root,root,755) | |
21b138b4 JB |
183 | %dir %{py_sitedir}/aubio |
184 | %attr(755,root,root) %{py_sitedir}/aubio/_aubiowrapper.so | |
8eebf965 | 185 | %{py_sitescriptdir}/aubio |
21b138b4 JB |
186 | # examples |
187 | %attr(755,root,root) %{_bindir}/aubiocut | |
188 | %attr(755,root,root) %{_bindir}/aubiopitch | |
189 | %{_mandir}/man1/aubiocut.1* | |
190 | %{_mandir}/man1/aubiopitch.1* | |
191 | %endif |