t2linux-audio: Use new config from t2bce

This commit is contained in:
sharpenedblade
2026-07-24 23:40:59 +05:30
parent 0b431fe3f6
commit a611fa8dd6
+11 -22
View File
@@ -1,12 +1,16 @@
%global forgeurl https://github.com/deqrocks/t2bce
%global commit 69bebad9349cb47f5c939829a4bef47b988da209
%forgemeta -iv
Name: t2linux-audio
Version: 0.3.1
Release: 2%{?dist}
Version: 1.0.0
Release: 1%{?dist}
Summary: Speaker and mic config for T2 macs
License: MIT
URL: https://wiki.t2linux.org/guides/audio-config/
BuildArch: noarch
Source0: https://github.com/kekrby/t2-better-audio/archive/e46839a28963e2f7d364020518b9dac98236bcae.tar.gz
Source0: %{forgesource}
%description
Configuration files for audio on T2 macs. This fixes the mic volume, and also
@@ -14,29 +18,14 @@ enables the internal speakers. It is highly recommended to install this, even
if you do not use the speakers.
%prep
%setup -n t2-better-audio-e46839a28963e2f7d364020518b9dac98236bcae
%forgeautosetup -p1
%build
%install
install -d -m 0755 %{buildroot}/%{_datadir}/alsa/ucm2
cp -a t2bce_audio-alsa-ucm-conf/ucm2/. %{buildroot}/%{_datadir}/alsa/ucm2
install -D -m 644 files/91-audio-custom.rules %{buildroot}/usr/lib/udev/rules.d/91-audio-t2.rules
install -d -m 755 %{buildroot}/%{_datadir}/alsa-card-profile/mixer/paths
install -m 644 files/paths/* %{buildroot}/%{_datadir}/alsa-card-profile/mixer/paths/
install -d -m 755 %{buildroot}/%{_datadir}/alsa-card-profile/mixer/profile-sets
install -m 644 files/profile-sets/* %{buildroot}/%{_datadir}/alsa-card-profile/mixer/profile-sets/
install -d -m 755 %{buildroot}/%{_datadir}/pulseaudio/alsa-mixer/paths
install -m 644 files/paths/* %{buildroot}/%{_datadir}/pulseaudio/alsa-mixer/paths/
install -d -m 755 %{buildroot}/%{_datadir}/pulseaudio/alsa-mixer/profile-sets
install -m 644 files/profile-sets/* %{buildroot}/%{_datadir}/pulseaudio/alsa-mixer/profile-sets/
%files
%{_datadir}/alsa-card-profile/mixer/paths/*
%{_datadir}/alsa-card-profile/mixer/profile-sets/*
%{_datadir}/pulseaudio/alsa-mixer/paths/*
%{_datadir}/pulseaudio/alsa-mixer/profile-sets/*
/usr/lib/udev/rules.d/91-audio-t2.rules
%{_datadir}/alsa/ucm2/*