]> git.pld-linux.org Git - packages/chromaprint.git/blobdiff - chromaprint.spec
- upstream fixes for ffmpeg 5+, rel 2
[packages/chromaprint.git] / chromaprint.spec
index 514e1bdb938ebccd54965a4f1b8885e016e0e42b..5015e31692ff9f3273541996351cea537d617993 100644 (file)
@@ -9,18 +9,20 @@
 Summary:       Library implementing the AcoustID fingerprinting
 Summary(pl.UTF-8):     Biblioteka implementująca odciski AcoustID
 Name:          chromaprint
-Version:       1.3.1
+Version:       1.5.1
 Release:       2
 License:       LGPL v2.1+
 Group:         Libraries
-Source0:       https://bitbucket.org/acoustid/chromaprint/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: f3745ac10b4d4d992cabe743c4a3ed0f
+#Source0Download: https://github.com/acoustid/chromaprint/releases
+Source0:       https://github.com/acoustid/chromaprint/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 54e71f86bcf1d34989db639044ba9628
+Patch0:                ffmpeg5.patch
+Patch1:                ffmpeg5-decode-retry.patch
 URL:           https://acoustid.org/chromaprint
-BuildRequires: boost-devel
-BuildRequires: cmake >= 2.6
+BuildRequires: cmake >= 3.3
 %{?with_ffmpeg:BuildRequires:  ffmpeg-devel >= 0.6}
 %{?with_fftw3:BuildRequires:   fftw3-devel >= 3}
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 6:4.7
 BuildRequires: taglib-devel
 Requires:      libchromaprint = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -82,10 +84,14 @@ tworzenia aplikacji wykorzystujących bibliotekę libchromaprint.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-%cmake . \
-       %{?with_ffmpeg:-DBUILD_EXAMPLES=ON} \
+install -d build
+cd build
+%cmake .. \
+       %{?with_ffmpeg:-DBUILD_TOOLS=ON} \
        %{!?with_fftw3:-DWITH_AVFFT=ON} \
        %{?with_fftw3:-DWITH_FFTW3=ON}
 
@@ -93,7 +99,8 @@ tworzenia aplikacji wykorzystujących bibliotekę libchromaprint.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
This page took 0.038663 seconds and 4 git commands to generate.