3 %bcond_without java # JNI library
5 Summary: An audio time-stretching and pitch-shifting library and utility program
6 Summary(pl.UTF-8): Biblioteka i narzędzie do rozciągania i harmonizowania dźwięku
11 Group: Applications/Sound
12 Source0: https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
13 # Source0-md5: fb433216aff9c5e396052ce0f116c11e
14 Patch0: %{name}-pc.patch
15 URL: https://www.breakfastquay.com/rubberband/
16 BuildRequires: fftw3-devel >= 3.0.0
17 %{?with_jni:BuildRequires: jdk}
18 BuildRequires: ladspa-devel
19 BuildRequires: libsamplerate-devel >= 0.1.8
20 BuildRequires: libsndfile-devel >= 1.0.16
21 BuildRequires: libstdc++-devel >= 6:5
22 BuildRequires: meson >= 0.53.0
23 BuildRequires: ninja >= 1.5
24 BuildRequires: pkgconfig
25 BuildRequires: rpmbuild(macros) >= 1.736
26 BuildRequires: vamp-devel >= 2.9
27 Requires: %{name}-libs = %{version}-%{release}
28 Requires: libsndfile >= 1.0.16
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Rubber Band is a library and utility program that permits you to
33 change the tempo and pitch of an audio recording independently of one
36 %description -l pl.UTF-8
37 Rubber Band to biblioteka i program narzędziowy, który pozwala na
38 zmianę tempa i wysokości tonu nagrywanego dźwięku niezależnie.
41 Summary: Shared rubberband library
42 Summary(pl.UTF-8): Biblioteka współdzielona rubberband
44 Requires: libsamplerate >= 0.1.8
47 Shared rubberband library.
49 %description libs -l pl.UTF-8
50 Biblioteka współdzielona rubberband.
53 Summary: Header files for rubberband library
54 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rubberband
55 Group: Development/Libraries
56 Requires: %{name}-libs = %{version}-%{release}
57 Requires: libsamplerate-devel >= 0.1.8
60 Header files for rubberband library.
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe biblioteki rubberband.
66 Summary: Static rubberband library
67 Summary(pl.UTF-8): Statyczna biblioteka rubberband
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
72 Static rubberband library.
74 %description static -l pl.UTF-8
75 Statyczna biblioteka rubberband.
77 %package -n java-rubberband
78 Summary: Java JNI interface for rubberband
79 Summary(pl.UTF-8): Interfejs Javy JNI do rubberband
82 Requires: libsamplerate >= 0.1.8
84 %description -n java-rubberband
85 Java JNI interface for rubberband.
87 %description -n java-rubberband -l pl.UTF-8
88 Interfejs Javy JNI do rubberband.
90 %package -n ladspa-rubberband-plugins
91 Summary: rubberband LADSPA plugin
92 Summary(pl.UTF-8): Wtyczka LADSPA rubberband
93 Group: Applications/Sound
94 Requires: ladspa-common
95 Requires: libsamplerate >= 0.1.8
97 %description -n ladspa-rubberband-plugins
98 rubberband LADSPA plugin.
100 %description -n ladspa-rubberband-plugins -l pl.UTF-8
101 Wtyczka LADSPA rubberband.
103 %package -n vamp-plugins-rubberband
104 Summary: rubberband Vamp plugin
105 Summary(pl.UTF-8): Wtyczka Vamp rubberband
106 Group: Applications/Sound
107 Requires: libsamplerate >= 0.1.8
108 Requires: vamp >= 2.9
110 %description -n vamp-plugins-rubberband
111 rubberband Vamp plugin.
113 %description -n vamp-plugins-rubberband -l pl.UTF-8
114 Wtyczka Vamp rubberband.
122 %{?with_java:-Dextra_include_dirs="%{_jvmdir}/java/include,%{_jvmdir}/java/include/linux"}
124 %ninja_build -C build
127 rm -rf $RPM_BUILD_ROOT
129 %ninja_install -C build
132 install -d $RPM_BUILD_ROOT%{_javadir}
133 cp -p build/rubberband.jar $RPM_BUILD_ROOT%{_javadir}
137 rm -rf $RPM_BUILD_ROOT
139 %post libs -p /sbin/ldconfig
140 %postun libs -p /sbin/ldconfig
142 %post -n java-rubberband -p /sbin/ldconfig
143 %postun -n java-rubberband -p /sbin/ldconfig
146 %defattr(644,root,root,755)
147 %doc CHANGELOG README.md
148 %attr(755,root,root) %{_bindir}/rubberband
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/librubberband.so.*.*.*
153 %attr(755,root,root) %ghost %{_libdir}/librubberband.so.2
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_libdir}/librubberband.so
158 %{_includedir}/rubberband
159 %{_pkgconfigdir}/rubberband.pc
162 %defattr(644,root,root,755)
163 %{_libdir}/librubberband.a
166 %files -n java-rubberband
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/librubberband-jni.so
169 %{_javadir}/rubberband.jar
172 %files -n ladspa-rubberband-plugins
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/ladspa/ladspa-rubberband.so
175 %{_libdir}/ladspa/ladspa-rubberband.cat
176 %{_datadir}/ladspa/rdf/ladspa-rubberband.rdf
178 %files -n vamp-plugins-rubberband
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_libdir}/vamp/vamp-rubberband.so
181 %{_libdir}/vamp/vamp-rubberband.cat