Add: libfreeaptx (#2962)

This commit is contained in:
Gil
2025-01-15 02:44:18 -06:00
committed by GitHub
parent a6fcd29c2a
commit fab1f2ac03
3 changed files with 72 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "libfreeaptx.spec"
}
labels {
weekly = 1
}
}
+59
View File
@@ -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
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("iamthehorker/libfreeaptx"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}