-Source0: http://www.breakfastquay.com/rubberband/files/%{name}-%{version}p1.tar.bz2
-# Source0-md5: edf022f40d4d787313a9a102a3336126
-URL: http://www.breakfastquay.com/rubberband/
-BuildRequires: fftw3-devel
+Source0: https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: a203a53ef14f23bd4344f4b32514ed62
+Patch0: %{name}-pc.patch
+Patch1: %{name}-jni.patch
+URL: https://www.breakfastquay.com/rubberband/
+BuildRequires: fftw3-devel >= 3
+%{?with_jni:BuildRequires: jdk}