[packages/libkeyfinder] - new - fftw3 patch to avoid using libfftw 2.x as fftw3
qboosh
qboosh at pld-linux.org
Sat Jul 9 09:39:29 CEST 2022
commit 4ff4c11b0c7044805d25632f6c5b23e5ae20c913
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 9 09:41:05 2022 +0200
- new
- fftw3 patch to avoid using libfftw 2.x as fftw3
libkeyfinder-fftw3.patch | 11 +++++++
libkeyfinder.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
---
diff --git a/libkeyfinder.spec b/libkeyfinder.spec
new file mode 100644
index 0000000..c28ada9
--- /dev/null
+++ b/libkeyfinder.spec
@@ -0,0 +1,75 @@
+# TODO: catch2 for TESTING
+Summary: Library for estimating the musical key of digital audio
+Summary(pl.UTF-8): Biblioteka do określania klucza muzyczego dźwięku cyfrowego
+Name: libkeyfinder
+Version: 2.2.7
+Release: 1
+License: GPL v3+
+Group: Libraries
+#Source0Download: https://github.com/mixxxdj/libkeyfinder/releases
+Source0: https://github.com/mixxxdj/libkeyfinder/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 51ac212ffe03b0a9452d2c960ae84245
+Patch0: %{name}-fftw3.patch
+URL: https://github.com/mixxxdj/libkeyfinder
+BuildRequires: cmake >= 3.4
+BuildRequires: fftw3-devel >= 3
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libkeyfinder is a small C++11 library for estimating the musical key
+of digital audio.
+
+%description -l pl.UTF-8
+libkeyfinder to mała biblioteka C++11 do określania klucza muzycznego
+dźwięku cyfrowego.
+
+%package devel
+Summary: Header files for libkeyfinder library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libkeyfinder
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: fftw3-devel >= 3
+Requires: libstdc++-devel >= 6:4.7
+
+%description devel
+Header files for libkeyfinder library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libkeyfinder.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake .. \
+ -DBUILD_TESTING=OFF
+
+%{__make}
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%attr(755,root,root) %{_libdir}/libkeyfinder.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libkeyfinder.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libkeyfinder.so
+%{_includedir}/keyfinder
+%{_pkgconfigdir}/libkeyfinder.pc
+%{_libdir}/cmake/KeyFinder
diff --git a/libkeyfinder-fftw3.patch b/libkeyfinder-fftw3.patch
new file mode 100644
index 0000000..f103e5c
--- /dev/null
+++ b/libkeyfinder-fftw3.patch
@@ -0,0 +1,11 @@
+--- libkeyfinder-2.2.7/cmake/FindFFTW3.cmake.orig 2022-06-17 06:42:30.000000000 +0200
++++ libkeyfinder-2.2.7/cmake/FindFFTW3.cmake 2022-07-09 09:18:46.402414144 +0200
+@@ -42,7 +42,7 @@ find_path(FFTW3_INCLUDE_DIR
+ mark_as_advanced(FFTW3_INCLUDE_DIR)
+
+ find_library(FFTW3_LIBRARY
+- NAMES fftw fftw3 fftw-3.3
++ NAMES fftw3 fftw-3.3 fftw
+ DOC "FFTW3 library"
+ )
+ mark_as_advanced(FFTW3_LIBRARY)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libkeyfinder.git/commitdiff/4ff4c11b0c7044805d25632f6c5b23e5ae20c913
More information about the pld-cvs-commit
mailing list