blob: 980b8c3542476dedc6e5e85a04cfc4160baea7de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
Name: alsa-scenario-scn-data-0-mfld
Summary: alsa scenario data for mfld codec
Version: 0.1.0
Release: 1
Group: TO_BE/FILLED_IN
License: LGPLv2.1
BuildArch: noarch
Source0: %{name}-%{version}.tar.gz
%description
alsa scenario data for mfld codec
%prep
%setup -q
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/etc/sound
cp -a medfield_audio %{buildroot}/usr/etc/sound
cp -a medfield_audio.conf %{buildroot}/usr/etc/sound/medfield_audio.conf
%post
BASE_PATH=/usr/etc/sound
CODEC=medfield_audio
chmod 644 $BASE_PATH/$CODEC/*
chmod 644 $BASE_PATH/$CODEC.conf
chown -R 0:6822 $BASE_PATH/$CODEC
chown 0:6822 $BASE_PATH/$CODEC.conf
ln -s $BASE_PATH/$CODEC $BASE_PATH/default
ln -s $BASE_PATH/$CODEC.conf $BASE_PATH/default.conf
%preun
BASE_PATH=/usr/etc/sound
rm -f $BASE_PATH/default.conf
rm -f $BASE_PATH/default
%files
/usr/etc/sound/*
|