mirror of
https://github.com/t2linux/fedora.git
synced 2026-08-16 05:18:11 -07:00
t2linux-audio: Use new config from t2bce
This commit is contained in:
@@ -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/*
|
||||
|
||||
Reference in New Issue
Block a user