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