]>
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 |
6a803cf6 | 8 | Version: 1.9.0 |
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 |
6a803cf6 | 13 | # Source0-md5: a203a53ef14f23bd4344f4b32514ed62 |
ff525031 | 14 | Patch0: %{name}-pc.patch |
2508a369 | 15 | Patch1: %{name}-jni.patch |
6a803cf6 | 16 | URL: https://www.breakfastquay.com/rubberband/ |
ff525031 | 17 | BuildRequires: fftw3-devel >= 3 |
2508a369 | 18 | %{?with_jni:BuildRequires: jdk} |
e291abb8 | 19 | BuildRequires: ladspa-devel |
346f97e8 | 20 | BuildRequires: libsamplerate-devel |
e291abb8 | 21 | BuildRequires: libsndfile-devel |
346f97e8 | 22 | BuildRequires: libstdc++-devel |
ff525031 | 23 | BuildRequires: pkgconfig |
e291abb8 SS |
24 | BuildRequires: vamp-devel |
25 | Requires: %{name}-libs = %{version}-%{release} | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Rubber Band is a library and utility program that permits you to | |
30 | change the tempo and pitch of an audio recording independently of one | |
31 | another. | |
32 | ||
50242447 | 33 | %description -l pl.UTF-8 |
ff525031 JB |
34 | Rubber Band to biblioteka i program narzędziowy, który pozwala na |
35 | zmianę tempa i wysokości tonu nagrywanego dźwięku niezależnie. | |
50242447 | 36 | |
e291abb8 | 37 | %package libs |
ff525031 JB |
38 | Summary: Shared rubberband library |
39 | Summary(pl.UTF-8): Biblioteka współdzielona rubberband | |
e291abb8 | 40 | Group: Libraries |
e291abb8 SS |
41 | |
42 | %description libs | |
ff525031 | 43 | Shared rubberband library. |
e291abb8 SS |
44 | |
45 | %description libs -l pl.UTF-8 | |
ff525031 | 46 | Biblioteka współdzielona rubberband. |
e291abb8 SS |
47 | |
48 | %package devel | |
49 | Summary: Header files for rubberband library | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rubberband | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-libs = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Header files for rubberband library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki rubberband. | |
59 | ||
60 | %package static | |
61 | Summary: Static rubberband library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka rubberband | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static rubberband library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka rubberband. | |
71 | ||
2508a369 JB |
72 | %package -n java-rubberband |
73 | Summary: Java JNI interface for rubberband | |
74 | Summary(pl.UTF-8): Interfejs Javy JNI do rubberband | |
75 | Group: Libraries/Java | |
76 | Requires: jre | |
77 | ||
78 | %description -n java-rubberband | |
79 | Java JNI interface for rubberband. | |
80 | ||
81 | %description -n java-rubberband -l pl.UTF-8 | |
82 | Interfejs Javy JNI do rubberband. | |
83 | ||
e291abb8 | 84 | %package -n ladspa-rubberband-plugins |
ff525031 JB |
85 | Summary: rubberband LADSPA plugin |
86 | Summary(pl.UTF-8): Wtyczka LADSPA rubberband | |
e291abb8 | 87 | Group: Applications/Sound |
ff525031 | 88 | Requires: ladspa-common |
e291abb8 SS |
89 | |
90 | %description -n ladspa-rubberband-plugins | |
ff525031 JB |
91 | rubberband LADSPA plugin. |
92 | ||
93 | %description -n ladspa-rubberband-plugins -l pl.UTF-8 | |
94 | Wtyczka LADSPA rubberband. | |
e291abb8 SS |
95 | |
96 | %package -n vamp-plugins-rubberband | |
ff525031 JB |
97 | Summary: rubberband Vamp plugin |
98 | Summary(pl.UTF-8): Wtyczka Vamp rubberband | |
e291abb8 | 99 | Group: Applications/Sound |
ff525031 | 100 | Requires: vamp |
e291abb8 SS |
101 | |
102 | %description -n vamp-plugins-rubberband | |
ff525031 JB |
103 | rubberband Vamp plugin. |
104 | ||
105 | %description -n vamp-plugins-rubberband -l pl.UTF-8 | |
106 | Wtyczka Vamp rubberband. | |
e291abb8 SS |
107 | |
108 | %prep | |
109 | %setup -q | |
ff525031 | 110 | %patch0 -p1 |
2508a369 | 111 | %patch1 -p1 |
e291abb8 SS |
112 | |
113 | %build | |
114 | %configure | |
2508a369 | 115 | %{__make} all %{?with_java:jni} \ |
346f97e8 | 116 | INSTALL_LIBDIR="%{_libdir}" \ |
117 | INSTALL_VAMPDIR="%{_libdir}/vamp" \ | |
118 | INSTALL_LADSPADIR="%{_libdir}/ladspa" | |
e291abb8 SS |
119 | |
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %{__make} install \ | |
346f97e8 | 124 | DESTDIR=$RPM_BUILD_ROOT \ |
125 | INSTALL_LIBDIR="%{_libdir}" \ | |
126 | INSTALL_VAMPDIR="%{_libdir}/vamp" \ | |
127 | INSTALL_LADSPADIR="%{_libdir}/ladspa" \ | |
128 | INSTALL_PKGDIR="%{_pkgconfigdir}" | |
e291abb8 | 129 | |
2508a369 JB |
130 | %if %{with java} |
131 | install -d $RPM_BUILD_ROOT%{_javadir} | |
132 | cp -p lib/rubberband.jar $RPM_BUILD_ROOT%{_javadir} | |
133 | %endif | |
134 | ||
e291abb8 SS |
135 | %clean |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %post libs -p /sbin/ldconfig | |
139 | %postun libs -p /sbin/ldconfig | |
140 | ||
2508a369 JB |
141 | %post -n java-rubberband -p /sbin/ldconfig |
142 | %postun -n java-rubberband -p /sbin/ldconfig | |
143 | ||
e291abb8 SS |
144 | %files |
145 | %defattr(644,root,root,755) | |
6a803cf6 | 146 | %doc CHANGELOG README.md |
346f97e8 | 147 | %attr(755,root,root) %{_bindir}/rubberband |
e291abb8 SS |
148 | |
149 | %files libs | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/librubberband.so.*.*.* | |
5abf6277 | 152 | %attr(755,root,root) %ghost %{_libdir}/librubberband.so.2 |
e291abb8 SS |
153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
346f97e8 | 156 | %attr(755,root,root) %{_libdir}/librubberband.so |
e291abb8 SS |
157 | %{_includedir}/%{name} |
158 | %{_pkgconfigdir}/rubberband.pc | |
159 | ||
160 | %files static | |
161 | %defattr(644,root,root,755) | |
346f97e8 | 162 | %{_libdir}/librubberband.a |
e291abb8 | 163 | |
2508a369 JB |
164 | %if %{with java} |
165 | %files -n java-rubberband | |
166 | %defattr(644,root,root,755) | |
167 | %attr(755,root,root) %{_libdir}/librubberband-jni.so | |
168 | %{_javadir}/rubberband.jar | |
169 | %endif | |
170 | ||
e291abb8 SS |
171 | %files -n ladspa-rubberband-plugins |
172 | %defattr(644,root,root,755) | |
346f97e8 | 173 | %attr(755,root,root) %{_libdir}/ladspa/ladspa-rubberband.so |
e291abb8 | 174 | %{_libdir}/ladspa/ladspa-rubberband.cat |
e291abb8 SS |
175 | %{_datadir}/ladspa/rdf/ladspa-rubberband.rdf |
176 | ||
177 | %files -n vamp-plugins-rubberband | |
178 | %defattr(644,root,root,755) | |
346f97e8 | 179 | %attr(755,root,root) %{_libdir}/vamp/vamp-rubberband.so |
e291abb8 | 180 | %{_libdir}/vamp/vamp-rubberband.cat |