- version update to 1.6.0 * Added support for FFmpeg 8.0 * Added chromaprint_decode_fingerprint_header function * Added missing chromaprint_get_algorithm function implementation * Optimized simhash calculation and fingerprint decoding * Improved fingerprint compression performance by pre-allocating vector storage * CMake improvements: updated minimum version to 3.10, use GNUInstallDirs, install config targets * Build Linux ARM64 binaries * Allow build to exclude internal avresample OBS-URL: https://build.opensuse.org/request/show/1302331 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/chromaprint?expand=0&rev=60
111 lines
3.4 KiB
RPMSpec
111 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package chromaprint
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define rev aa67c95b9e486884a6d3ee8b0c91207d8c2b0551
|
|
%define sover 1
|
|
Name: chromaprint
|
|
Version: 1.6.0
|
|
Release: 0
|
|
Summary: Audio Fingerprinting Library
|
|
License: LGPL-2.1-only AND MIT
|
|
URL: https://acoustid.org/chromaprint
|
|
Source0: https://github.com/acoustid/chromaprint/releases/download/v%{version}/chromaprint-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(libavcodec) >= 61
|
|
BuildRequires: pkgconfig(libavformat) >= 61
|
|
BuildRequires: pkgconfig(libavutil) >= 59
|
|
BuildRequires: pkgconfig(libswresample) >= 5
|
|
|
|
%description
|
|
Chromaprint is the core component of the Acoustid project. It's a client-side
|
|
library that implements a custom algorithm for extracting fingerprints from any
|
|
audio source.
|
|
|
|
%package -n libchromaprint%{sover}
|
|
Summary: Audio Fingerprinting Library
|
|
License: LGPL-2.1-or-later
|
|
|
|
%description -n libchromaprint%{sover}
|
|
Chromaprint is the core component of the Acoustid project. It's a client-side
|
|
library that implements a custom algorithm for extracting fingerprints from any
|
|
audio source.
|
|
|
|
%package devel
|
|
Summary: Audio Fingerprinting Library
|
|
License: LGPL-2.1-or-later
|
|
Requires: libchromaprint%{sover} = %{version}
|
|
Obsoletes: libchromaprint-devel < %{version}-%{release}
|
|
Provides: libchromaprint-devel = %{version}-%{release}
|
|
|
|
%description devel
|
|
Chromaprint is the core component of the Acoustid project. It's a client-side
|
|
library that implements a custom algorithm for extracting fingerprints from any
|
|
audio source.
|
|
|
|
%package fpcalc
|
|
Summary: Chromaprint Audio Fingerprinting Command Line Tool
|
|
License: GPL-2.0-or-later
|
|
Requires: libchromaprint%{sover} = %{version}
|
|
Provides: fpcalc = %{version}
|
|
|
|
%description fpcalc
|
|
Chromaprint is the core component of the Acoustid project. It's a client-side
|
|
library that implements a custom algorithm for extracting fingerprints from any
|
|
audio source.
|
|
This package contains fpcalc, a command-line tool to perform Chromaprint
|
|
fingerprinting.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_SKIP_RPATH=TRUE \
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
|
|
-DUSE_AVFFT=ON -DFFT_LIB=kissfft \
|
|
-DBUILD_TESTS=OFF -DBUILD_TOOLS=ON
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%ldconfig_scriptlets -n libchromaprint%{sover}
|
|
|
|
%files -n libchromaprint%{sover}
|
|
%license LICENSE.md
|
|
%doc NEWS.txt README.md
|
|
%{_libdir}/libchromaprint.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/chromaprint.h
|
|
%{_libdir}/libchromaprint.so
|
|
%{_libdir}/pkgconfig/libchromaprint.pc
|
|
%dir %{_libdir}/cmake/Chromaprint
|
|
%{_libdir}/cmake/Chromaprint/*.cmake
|
|
|
|
%files fpcalc
|
|
%{_bindir}/fpcalc
|
|
|
|
%changelog
|