From 2677fea5f26e4d96775b0bbd82bb0edfe7522d1b Mon Sep 17 00:00:00 2001 From: madonuko Date: Sat, 10 Aug 2024 16:35:44 +0800 Subject: [PATCH 1/4] add: libaudec This is a builddep for zrythm. I did not include `update.rhai` because upstream has not released any newer versions for the last 3 years. --- anda/lib/audec/anda.hcl | 5 ++++ anda/lib/audec/libaudec.patch | 12 +++++++++ anda/lib/audec/libaudec.spec | 49 +++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 anda/lib/audec/anda.hcl create mode 100644 anda/lib/audec/libaudec.patch create mode 100644 anda/lib/audec/libaudec.spec diff --git a/anda/lib/audec/anda.hcl b/anda/lib/audec/anda.hcl new file mode 100644 index 0000000000..2ed2bf95e1 --- /dev/null +++ b/anda/lib/audec/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "libaudec.spec" + } +} diff --git a/anda/lib/audec/libaudec.patch b/anda/lib/audec/libaudec.patch new file mode 100644 index 0000000000..fab2b56281 --- /dev/null +++ b/anda/lib/audec/libaudec.patch @@ -0,0 +1,12 @@ +diff -uraN libaudec-v0.2.2/meson.build omv-libaudec-v0.2.2/meson.build +--- libaudec-v0.2.2/meson.build 2020-05-16 13:50:13.000000000 +0200 ++++ omv-libaudec-v0.2.2/meson.build 2020-07-20 12:41:48.461809598 +0200 +@@ -212,8 +212,6 @@ + install: not meson.is_subproject(), + ) + +-subdir('tests') +- + summary = [ + '', + '------', diff --git a/anda/lib/audec/libaudec.spec b/anda/lib/audec/libaudec.spec new file mode 100644 index 0000000000..0276841039 --- /dev/null +++ b/anda/lib/audec/libaudec.spec @@ -0,0 +1,49 @@ +%global _desc %{expand: +libaudec (lib audio decoder) is a wrapper library over ffmpeg, sndfile and +libsamplerate for reading and resampling audio files. +} + +Name: libaudec +Version: 0.3.4 +Release: 1%?dist +Summary: libaudec (lib audio decoder) is a wrapper library over ffmpeg, sndfile and libsamplerate for reading and resampling audio files +License: AGPL-3.0-or-later +URL: https://git.sr.ht/~alextee/libaudec +Source0: %url/archive/v%version.tar.gz +Patch0: libaudec.patch +BuildRequires: cmake meson ninja-build +BuildRequires: pkgconfig(samplerate) +BuildRequires: pkgconfig(sndfile) +BuildRequires: ffmpeg-devel + +%description %_desc + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel %_desc +This package contains the development files for the %name package. + +%prep +%setup -q -n libaudec-v%{version} +%ifarch %{ix86} %{arm} +%autopatch -p1 +rm -r tests +%endif + +%build +%meson +%meson_build + +%install +%meson_install + +%files +%_bindir/audec + +%files devel +%_includedir/audec/audec.h +%_libdir/libaudec.a +%_libdir/pkgconfig/audec.pc +%_libdir/libaudec.so From bcf22244bace3b8a28e59b851fe3e1d3fe727247 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sat, 10 Aug 2024 16:41:51 +0800 Subject: [PATCH 2/4] include readme and license --- anda/lib/audec/libaudec.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anda/lib/audec/libaudec.spec b/anda/lib/audec/libaudec.spec index 0276841039..ff32c26a57 100644 --- a/anda/lib/audec/libaudec.spec +++ b/anda/lib/audec/libaudec.spec @@ -40,6 +40,8 @@ rm -r tests %meson_install %files +%doc README.md +%license COPYING COPYING.GPL3 %_bindir/audec %files devel From 13827870ca5d362807646e7a30963c7ca82c0911 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sat, 10 Aug 2024 16:46:55 +0800 Subject: [PATCH 3/4] try using ffmpeg-free-devel instead --- anda/lib/audec/libaudec.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/lib/audec/libaudec.spec b/anda/lib/audec/libaudec.spec index ff32c26a57..9ced87f586 100644 --- a/anda/lib/audec/libaudec.spec +++ b/anda/lib/audec/libaudec.spec @@ -14,7 +14,7 @@ Patch0: libaudec.patch BuildRequires: cmake meson ninja-build BuildRequires: pkgconfig(samplerate) BuildRequires: pkgconfig(sndfile) -BuildRequires: ffmpeg-devel +BuildRequires: ffmpeg-free-devel %description %_desc From 6938d4c273869f370a0de2f2887b3247685426bb Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 10 Aug 2024 16:51:19 +0800 Subject: [PATCH 4/4] gcc Signed-off-by: madomado --- anda/lib/audec/libaudec.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/lib/audec/libaudec.spec b/anda/lib/audec/libaudec.spec index 9ced87f586..21c72412f3 100644 --- a/anda/lib/audec/libaudec.spec +++ b/anda/lib/audec/libaudec.spec @@ -11,7 +11,7 @@ License: AGPL-3.0-or-later URL: https://git.sr.ht/~alextee/libaudec Source0: %url/archive/v%version.tar.gz Patch0: libaudec.patch -BuildRequires: cmake meson ninja-build +BuildRequires: cmake meson ninja-build gcc BuildRequires: pkgconfig(samplerate) BuildRequires: pkgconfig(sndfile) BuildRequires: ffmpeg-free-devel