Group :: Sound
RPM: fpcalc
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_enable snapshot
%define _name chromaprint
Name: fpcalc
Version: 1.5.1
Release: alt2
Summary: fpcalc tool from Chromaprint package
Group: Sound
License: LGPLv2+
Url: https://www.acoustid.org/chromaprint
%if_disabled snapshot
Source: https://github.com/acoustid/chromaprint/releases/download/v%version/%_name-%version.tar.gz
%else
Vcs: https://github.com/acoustid/chromaprint.git
Source: %_name-%version.tar
%endif
# to avoind conflict with libchromaprint1-debuginfo
%add_debuginfo_skiplist %_bindir/%name
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libchromaprint-devel
BuildRequires: libfftw3-devel libtag-devel
BuildRequires: libavdevice-devel libavformat-devel
BuildRequires: libavutil-devel libswresample-devel
%description
Chromaprint library is the core component of the AcoustID project. It's a
client-side library that implements a custom algorithm for extracting
fingerprints from raw audio sources.
This package provides command-line tool from Chromaprint.
%prep
%setup -n %_name-%version
%build
%cmake \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TOOLS=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF
%cmake_build
%install
%cmake_install
rm -f %buildroot%_libdir/*.a
%files
%_bindir/fpcalc
%changelog
…
Full changelog you can see here
%define _name chromaprint
Name: fpcalc
Version: 1.5.1
Release: alt2
Summary: fpcalc tool from Chromaprint package
Group: Sound
License: LGPLv2+
Url: https://www.acoustid.org/chromaprint
%if_disabled snapshot
Source: https://github.com/acoustid/chromaprint/releases/download/v%version/%_name-%version.tar.gz
%else
Vcs: https://github.com/acoustid/chromaprint.git
Source: %_name-%version.tar
%endif
# to avoind conflict with libchromaprint1-debuginfo
%add_debuginfo_skiplist %_bindir/%name
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libchromaprint-devel
BuildRequires: libfftw3-devel libtag-devel
BuildRequires: libavdevice-devel libavformat-devel
BuildRequires: libavutil-devel libswresample-devel
%description
Chromaprint library is the core component of the AcoustID project. It's a
client-side library that implements a custom algorithm for extracting
fingerprints from raw audio sources.
This package provides command-line tool from Chromaprint.
%prep
%setup -n %_name-%version
%build
%cmake \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TOOLS=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF
%cmake_build
%install
%cmake_install
rm -f %buildroot%_libdir/*.a
%files
%_bindir/fpcalc
%changelog
…
Full changelog you can see here