]>
Commit | Line | Data |
---|---|---|
2508a369 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without java # JNI library | |
4 | ||
e291abb8 | 5 | Summary: An audio time-stretching and pitch-shifting library and utility program |
ff525031 | 6 | Summary(pl.UTF-8): Biblioteka i narzędzie do rozciągania i harmonizowania dźwięku |
e291abb8 | 7 | Name: rubberband |
880b04f2 | 8 | Version: 1.9.2 |
2508a369 | 9 | Release: 1 |
ff525031 | 10 | License: GPL v2+ |
e291abb8 | 11 | Group: Applications/Sound |
2508a369 | 12 | Source0: https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2 |
880b04f2 | 13 | # Source0-md5: fb433216aff9c5e396052ce0f116c11e |
ff525031 | 14 | Patch0: %{name}-pc.patch |
6a803cf6 | 15 | URL: https://www.breakfastquay.com/rubberband/ |
8ef19e9b | 16 | BuildRequires: fftw3-devel >= 3.0.0 |
2508a369 | 17 | %{?with_jni:BuildRequires: jdk} |
e291abb8 | 18 | BuildRequires: ladspa-devel |
8ef19e9b JB |
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 | |
ff525031 | 24 | BuildRequires: pkgconfig |
8ef19e9b JB |
25 | BuildRequires: rpmbuild(macros) >= 1.736 |
26 | BuildRequires: vamp-devel >= 2.9 | |
e291abb8 | 27 | Requires: %{name}-libs = %{version}-%{release} |
8ef19e9b | 28 | Requires: libsndfile >= 1.0.16 |
e291abb8 SS |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
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 | |
34 | another. | |
35 | ||
50242447 | 36 | %description -l pl.UTF-8 |
ff525031 JB |
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. | |
50242447 | 39 | |
e291abb8 | 40 | %package libs |
ff525031 JB |
41 | Summary: Shared rubberband library |
42 | Summary(pl.UTF-8): Biblioteka współdzielona rubberband | |
e291abb8 | 43 | Group: Libraries |
8ef19e9b | 44 | Requires: libsamplerate >= 0.1.8 |
e291abb8 SS |
45 | |
46 | %description libs | |
ff525031 | 47 | Shared rubberband library. |
e291abb8 SS |
48 | |
49 | %description libs -l pl.UTF-8 | |
ff525031 | 50 | Biblioteka współdzielona rubberband. |
e291abb8 SS |
51 | |
52 | %package devel | |
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} | |
8ef19e9b | 57 | Requires: libsamplerate-devel >= 0.1.8 |
e291abb8 SS |
58 | |
59 | %description devel | |
60 | Header files for rubberband library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki rubberband. | |
64 | ||
65 | %package static | |
66 | Summary: Static rubberband library | |
67 | Summary(pl.UTF-8): Statyczna biblioteka rubberband | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static rubberband library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczna biblioteka rubberband. | |
76 | ||
2508a369 JB |
77 | %package -n java-rubberband |
78 | Summary: Java JNI interface for rubberband | |
79 | Summary(pl.UTF-8): Interfejs Javy JNI do rubberband | |
80 | Group: Libraries/Java | |
81 | Requires: jre | |
8ef19e9b | 82 | Requires: libsamplerate >= 0.1.8 |
2508a369 JB |
83 | |
84 | %description -n java-rubberband | |
85 | Java JNI interface for rubberband. | |
86 | ||
87 | %description -n java-rubberband -l pl.UTF-8 | |
88 | Interfejs Javy JNI do rubberband. | |
89 | ||
e291abb8 | 90 | %package -n ladspa-rubberband-plugins |
ff525031 JB |
91 | Summary: rubberband LADSPA plugin |
92 | Summary(pl.UTF-8): Wtyczka LADSPA rubberband | |
e291abb8 | 93 | Group: Applications/Sound |
ff525031 | 94 | Requires: ladspa-common |
8ef19e9b | 95 | Requires: libsamplerate >= 0.1.8 |
e291abb8 SS |
96 | |
97 | %description -n ladspa-rubberband-plugins | |
ff525031 JB |
98 | rubberband LADSPA plugin. |
99 | ||
100 | %description -n ladspa-rubberband-plugins -l pl.UTF-8 | |
101 | Wtyczka LADSPA rubberband. | |
e291abb8 SS |
102 | |
103 | %package -n vamp-plugins-rubberband | |
ff525031 JB |
104 | Summary: rubberband Vamp plugin |
105 | Summary(pl.UTF-8): Wtyczka Vamp rubberband | |
e291abb8 | 106 | Group: Applications/Sound |
8ef19e9b JB |
107 | Requires: libsamplerate >= 0.1.8 |
108 | Requires: vamp >= 2.9 | |
e291abb8 SS |
109 | |
110 | %description -n vamp-plugins-rubberband | |
ff525031 JB |
111 | rubberband Vamp plugin. |
112 | ||
113 | %description -n vamp-plugins-rubberband -l pl.UTF-8 | |
114 | Wtyczka Vamp rubberband. | |
e291abb8 SS |
115 | |
116 | %prep | |
117 | %setup -q | |
ff525031 | 118 | %patch0 -p1 |
e291abb8 SS |
119 | |
120 | %build | |
8ef19e9b JB |
121 | %meson build \ |
122 | %{?with_java:-Dextra_include_dirs="%{_jvmdir}/java/include,%{_jvmdir}/java/include/linux"} | |
123 | ||
124 | %ninja_build -C build | |
e291abb8 SS |
125 | |
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
8ef19e9b | 129 | %ninja_install -C build |
e291abb8 | 130 | |
2508a369 JB |
131 | %if %{with java} |
132 | install -d $RPM_BUILD_ROOT%{_javadir} | |
8ef19e9b | 133 | cp -p build/rubberband.jar $RPM_BUILD_ROOT%{_javadir} |
2508a369 JB |
134 | %endif |
135 | ||
e291abb8 SS |
136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %post libs -p /sbin/ldconfig | |
140 | %postun libs -p /sbin/ldconfig | |
141 | ||
2508a369 JB |
142 | %post -n java-rubberband -p /sbin/ldconfig |
143 | %postun -n java-rubberband -p /sbin/ldconfig | |
144 | ||
e291abb8 SS |
145 | %files |
146 | %defattr(644,root,root,755) | |
6a803cf6 | 147 | %doc CHANGELOG README.md |
346f97e8 | 148 | %attr(755,root,root) %{_bindir}/rubberband |
e291abb8 SS |
149 | |
150 | %files libs | |
151 | %defattr(644,root,root,755) | |
152 | %attr(755,root,root) %{_libdir}/librubberband.so.*.*.* | |
5abf6277 | 153 | %attr(755,root,root) %ghost %{_libdir}/librubberband.so.2 |
e291abb8 SS |
154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
346f97e8 | 157 | %attr(755,root,root) %{_libdir}/librubberband.so |
8ef19e9b | 158 | %{_includedir}/rubberband |
e291abb8 SS |
159 | %{_pkgconfigdir}/rubberband.pc |
160 | ||
161 | %files static | |
162 | %defattr(644,root,root,755) | |
346f97e8 | 163 | %{_libdir}/librubberband.a |
e291abb8 | 164 | |
2508a369 JB |
165 | %if %{with java} |
166 | %files -n java-rubberband | |
167 | %defattr(644,root,root,755) | |
168 | %attr(755,root,root) %{_libdir}/librubberband-jni.so | |
169 | %{_javadir}/rubberband.jar | |
170 | %endif | |
171 | ||
e291abb8 SS |
172 | %files -n ladspa-rubberband-plugins |
173 | %defattr(644,root,root,755) | |
346f97e8 | 174 | %attr(755,root,root) %{_libdir}/ladspa/ladspa-rubberband.so |
e291abb8 | 175 | %{_libdir}/ladspa/ladspa-rubberband.cat |
e291abb8 SS |
176 | %{_datadir}/ladspa/rdf/ladspa-rubberband.rdf |
177 | ||
178 | %files -n vamp-plugins-rubberband | |
179 | %defattr(644,root,root,755) | |
346f97e8 | 180 | %attr(755,root,root) %{_libdir}/vamp/vamp-rubberband.so |
e291abb8 | 181 | %{_libdir}/vamp/vamp-rubberband.cat |