From 5000e8634ca53fa7bbba4cae3d79ca74dec78be9 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sat, 10 Aug 2024 15:27:30 +0800 Subject: [PATCH 1/2] add: lsp-dsp-lib --- anda/lib/lsp-dsp/anda.hcl | 5 +++ anda/lib/lsp-dsp/liblsp-dsp.spec | 58 ++++++++++++++++++++++++++++++++ anda/lib/lsp-dsp/update.rhai | 1 + 3 files changed, 64 insertions(+) create mode 100644 anda/lib/lsp-dsp/anda.hcl create mode 100644 anda/lib/lsp-dsp/liblsp-dsp.spec create mode 100644 anda/lib/lsp-dsp/update.rhai diff --git a/anda/lib/lsp-dsp/anda.hcl b/anda/lib/lsp-dsp/anda.hcl new file mode 100644 index 0000000000..c9fa51896f --- /dev/null +++ b/anda/lib/lsp-dsp/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "liblsp-dsp.spec" + } +} diff --git a/anda/lib/lsp-dsp/liblsp-dsp.spec b/anda/lib/lsp-dsp/liblsp-dsp.spec new file mode 100644 index 0000000000..d29880283a --- /dev/null +++ b/anda/lib/lsp-dsp/liblsp-dsp.spec @@ -0,0 +1,58 @@ +#? https://github.com/OpenMandrivaAssociation/lsp-dsp-lib/blob/master/lsp-dsp-lib.spec + +#define _empty_manifest_terminate_build 0 + +Name: liblsp-dsp +Version: 1.0.25 +Release: 1%dist +Summary: DSP library for signal processing +License: LGPL-3.0 +#Group: System/Libraries +URL: https://github.com/sadko4u/lsp-dsp-lib +BuildRequires: make git-core gcc gcc-c++ +Packager: madonuko + +%description +DSP library for digital signal processing (and more). + +This library provides set of functions that perform SIMD-optimized +computing on several hardware architectures. + +%package devel +Summary: DSP library for signal processing (development files) +Group: Development/Libraries/C and C++ +Requires: %name = %version + +%description devel +DSP library for digital signal processing (and more). + +This library provides set of functions that perform SIMD-optimized +computing on several hardware architectures. + +These are the development files for lsp-dsp-lib. + +%prep +rm -rf * .* +git clone --recurse-submodules -j8 %url -b %version --depth 1 . + +%build +make config PREFIX=%{_prefix} LIBDIR=%{_libdir} +make fetch +%make_build + +%install +%make_install + +%files +%doc README.md +%license COPYING +%_libdir/*.so + +%files devel +%_libdir/*.a +%_includedir/lsp-plug.in/ +%_libdir/pkgconfig/lsp-dsp-lib.pc + +%changelog +* Sat Aug 10 2024 madonuko +- Initial package diff --git a/anda/lib/lsp-dsp/update.rhai b/anda/lib/lsp-dsp/update.rhai new file mode 100644 index 0000000000..9beaf7335d --- /dev/null +++ b/anda/lib/lsp-dsp/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("lsp-plugins/lsp-dsp-lib")); From e6fd16cb914f7a9fadba71290bfb24561bff2c80 Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 10 Aug 2024 16:20:40 +0800 Subject: [PATCH 2/2] update summary/description for the devel package Signed-off-by: madomado --- anda/lib/lsp-dsp/liblsp-dsp.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/anda/lib/lsp-dsp/liblsp-dsp.spec b/anda/lib/lsp-dsp/liblsp-dsp.spec index d29880283a..dba228b83a 100644 --- a/anda/lib/lsp-dsp/liblsp-dsp.spec +++ b/anda/lib/lsp-dsp/liblsp-dsp.spec @@ -19,9 +19,8 @@ This library provides set of functions that perform SIMD-optimized computing on several hardware architectures. %package devel -Summary: DSP library for signal processing (development files) -Group: Development/Libraries/C and C++ -Requires: %name = %version +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel DSP library for digital signal processing (and more). @@ -29,7 +28,7 @@ DSP library for digital signal processing (and more). This library provides set of functions that perform SIMD-optimized computing on several hardware architectures. -These are the development files for lsp-dsp-lib. +This package contains the development files for the %name package. %prep rm -rf * .*