]> git.pld-linux.org Git - packages/rubberband.git/blame - rubberband.spec
- updated to 1.9.0
[packages/rubberband.git] / rubberband.spec
CommitLineData
2508a369
JB
1#
2# Conditional build:
3%bcond_without java # JNI library
4
e291abb8 5Summary: An audio time-stretching and pitch-shifting library and utility program
ff525031 6Summary(pl.UTF-8): Biblioteka i narzędzie do rozciągania i harmonizowania dźwięku
e291abb8 7Name: rubberband
6a803cf6 8Version: 1.9.0
2508a369 9Release: 1
ff525031 10License: GPL v2+
e291abb8 11Group: Applications/Sound
2508a369 12Source0: https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
6a803cf6 13# Source0-md5: a203a53ef14f23bd4344f4b32514ed62
ff525031 14Patch0: %{name}-pc.patch
2508a369 15Patch1: %{name}-jni.patch
6a803cf6 16URL: https://www.breakfastquay.com/rubberband/
ff525031 17BuildRequires: fftw3-devel >= 3
2508a369 18%{?with_jni:BuildRequires: jdk}
e291abb8 19BuildRequires: ladspa-devel
346f97e8 20BuildRequires: libsamplerate-devel
e291abb8 21BuildRequires: libsndfile-devel
346f97e8 22BuildRequires: libstdc++-devel
ff525031 23BuildRequires: pkgconfig
e291abb8
SS
24BuildRequires: vamp-devel
25Requires: %{name}-libs = %{version}-%{release}
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Rubber Band is a library and utility program that permits you to
30change the tempo and pitch of an audio recording independently of one
31another.
32
50242447 33%description -l pl.UTF-8
ff525031
JB
34Rubber Band to biblioteka i program narzędziowy, który pozwala na
35zmianę tempa i wysokości tonu nagrywanego dźwięku niezależnie.
50242447 36
e291abb8 37%package libs
ff525031
JB
38Summary: Shared rubberband library
39Summary(pl.UTF-8): Biblioteka współdzielona rubberband
e291abb8 40Group: Libraries
e291abb8
SS
41
42%description libs
ff525031 43Shared rubberband library.
e291abb8
SS
44
45%description libs -l pl.UTF-8
ff525031 46Biblioteka współdzielona rubberband.
e291abb8
SS
47
48%package devel
49Summary: Header files for rubberband library
50Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rubberband
51Group: Development/Libraries
52Requires: %{name}-libs = %{version}-%{release}
53
54%description devel
55Header files for rubberband library.
56
57%description devel -l pl.UTF-8
58Pliki nagłówkowe biblioteki rubberband.
59
60%package static
61Summary: Static rubberband library
62Summary(pl.UTF-8): Statyczna biblioteka rubberband
63Group: Development/Libraries
64Requires: %{name}-devel = %{version}-%{release}
65
66%description static
67Static rubberband library.
68
69%description static -l pl.UTF-8
70Statyczna biblioteka rubberband.
71
2508a369
JB
72%package -n java-rubberband
73Summary: Java JNI interface for rubberband
74Summary(pl.UTF-8): Interfejs Javy JNI do rubberband
75Group: Libraries/Java
76Requires: jre
77
78%description -n java-rubberband
79Java JNI interface for rubberband.
80
81%description -n java-rubberband -l pl.UTF-8
82Interfejs Javy JNI do rubberband.
83
e291abb8 84%package -n ladspa-rubberband-plugins
ff525031
JB
85Summary: rubberband LADSPA plugin
86Summary(pl.UTF-8): Wtyczka LADSPA rubberband
e291abb8 87Group: Applications/Sound
ff525031 88Requires: ladspa-common
e291abb8
SS
89
90%description -n ladspa-rubberband-plugins
ff525031
JB
91rubberband LADSPA plugin.
92
93%description -n ladspa-rubberband-plugins -l pl.UTF-8
94Wtyczka LADSPA rubberband.
e291abb8
SS
95
96%package -n vamp-plugins-rubberband
ff525031
JB
97Summary: rubberband Vamp plugin
98Summary(pl.UTF-8): Wtyczka Vamp rubberband
e291abb8 99Group: Applications/Sound
ff525031 100Requires: vamp
e291abb8
SS
101
102%description -n vamp-plugins-rubberband
ff525031
JB
103rubberband Vamp plugin.
104
105%description -n vamp-plugins-rubberband -l pl.UTF-8
106Wtyczka 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
121rm -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}
131install -d $RPM_BUILD_ROOT%{_javadir}
132cp -p lib/rubberband.jar $RPM_BUILD_ROOT%{_javadir}
133%endif
134
e291abb8
SS
135%clean
136rm -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
This page took 0.086963 seconds and 4 git commands to generate.