From fab1f2ac03d8ce1fe1da8bf25449be1ab666b1a2 Mon Sep 17 00:00:00 2001 From: Gil Date: Wed, 15 Jan 2025 02:44:18 -0600 Subject: [PATCH] Add: libfreeaptx (#2962) --- anda/lib/libfreeaptx/anda.hcl | 8 ++++ anda/lib/libfreeaptx/libfreeaptx.spec | 59 +++++++++++++++++++++++++++ anda/lib/libfreeaptx/update.rhai | 5 +++ 3 files changed, 72 insertions(+) create mode 100644 anda/lib/libfreeaptx/anda.hcl create mode 100644 anda/lib/libfreeaptx/libfreeaptx.spec create mode 100644 anda/lib/libfreeaptx/update.rhai diff --git a/anda/lib/libfreeaptx/anda.hcl b/anda/lib/libfreeaptx/anda.hcl new file mode 100644 index 0000000000..60f4854820 --- /dev/null +++ b/anda/lib/libfreeaptx/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "libfreeaptx.spec" + } + labels { + weekly = 1 + } +} diff --git a/anda/lib/libfreeaptx/libfreeaptx.spec b/anda/lib/libfreeaptx/libfreeaptx.spec new file mode 100644 index 0000000000..def9829ec8 --- /dev/null +++ b/anda/lib/libfreeaptx/libfreeaptx.spec @@ -0,0 +1,59 @@ +%global commit c176b7de9c2017d0fc1877659cea3bb6c330aafa +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 20210809 + +Name: libfreeaptx +Version: 0.1.1.%{commit_date}git%{shortcommit} +Release: 1%{?dist} +Summary: Free implementation of Audio Processing Technology codec (aptX) +License: LGPLv2+ +URL: https://github.com/iamthehorker/libfreeaptx +Source0: %{url}/archive/%{commit}/libfreeaptx-%{commit}.tar.gz +BuildRequires: gcc +BuildRequires: make + +%description +This is an Open Source implementation of Audio Processing Technology codec +(aptX). This codec is mainly used in Bluetooth A2DP profile. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. + +%package tools +Summary: %{name} encoder and decoder utilities +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +The %{name}-tools package contains command line encoder and decoder utilities. + +%prep +%autosetup -n libfreeaptx-%{commit} -p1 + +%build +%make_build LDFLAGS="%{build_ldflags}" "CFLAGS=%{build_cflags}" + +%install +%make_install PREFIX=%{_prefix} LIBDIR=%{_lib} + +%files +%license COPYING +%{_libdir}/%{name}.so.0 +%{_libdir}/%{name}.so.0.1.1 + +%files devel +%{_includedir}/freeaptx.h +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%files tools +%doc README +%{_bindir}/freeaptxenc +%{_bindir}/freeaptxdec + +%changelog +%autochangelog diff --git a/anda/lib/libfreeaptx/update.rhai b/anda/lib/libfreeaptx/update.rhai new file mode 100644 index 0000000000..c99fd2cdca --- /dev/null +++ b/anda/lib/libfreeaptx/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("iamthehorker/libfreeaptx")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}