[packages/chromaprint] - updated to 1.3.1 (note: new soname) - added bconds to build without ffmpeg
qboosh
qboosh at pld-linux.org
Sun Feb 21 21:13:24 CET 2016
commit 3c0e70689118da622755ec7cd94c4366629a7cca
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 21 21:11:05 2016 +0100
- updated to 1.3.1 (note: new soname)
- added bconds to build without ffmpeg
chromaprint.spec | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/chromaprint.spec b/chromaprint.spec
index c27bd15..4b20c69 100644
--- a/chromaprint.spec
+++ b/chromaprint.spec
@@ -1,18 +1,28 @@
+#
+# Conditional build:
+%bcond_without ffmpeg # fpcalc build + libchromaprint using avfft
+%bcond_with fftw3 # libchromaprint using fftw3 instead of avfft
+#
+%if %{without ffmpeg}
+%define with_fftw3 1
+%endif
Summary: Library implementing the AcoustID fingerprinting
Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID
Name: chromaprint
-Version: 1.2
+Version: 1.3.1
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: https://bitbucket.org/acoustid/chromaprint/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: 748da044a8f0ee5f31edec8b67045b3e
+# Source0-md5: f3745ac10b4d4d992cabe743c4a3ed0f
URL: https://acoustid.org/chromaprint
BuildRequires: boost-devel
BuildRequires: cmake >= 2.6
-BuildRequires: ffmpeg-devel >= 0.6
+%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.6}
+%{?with_fftw3:BuildRequires: fftw3-devel >= 3}
BuildRequires: libstdc++-devel
BuildRequires: taglib-devel
+Requires: libchromaprint = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -75,8 +85,9 @@ tworzenia aplikacji wykorzystujących bibliotekę libchromaprint.
%build
%cmake . \
- -DBUILD_EXAMPLES=ON \
- -DWITH_AVFFT=ON
+ %{?with_ffmpeg:-DBUILD_EXAMPLES=ON} \
+ %{!?with_fftw3:-DWITH_AVFFT=ON} \
+ %{?with_fftw3:-DWITH_FFTW3=ON}
%{__make}
@@ -91,12 +102,17 @@ rm -rf $RPM_BUILD_ROOT
%post -n libchromaprint -p /sbin/ldconfig
%postun -n libchromaprint -p /sbin/ldconfig
+%if %{with ffmpeg}
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/fpcalc
+%endif
+
%files -n libchromaprint
%defattr(644,root,root,755)
%doc NEWS.txt README.md
-%attr(755,root,root) %{_bindir}/fpcalc
%attr(755,root,root) %{_libdir}/libchromaprint.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.0
+%attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.1
%files -n libchromaprint-devel
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chromaprint.git/commitdiff/3c0e70689118da622755ec7cd94c4366629a7cca
More information about the pld-cvs-commit
mailing list