summaryrefslogtreecommitdiff
path: root/packaging/alsa-scenario-scn-data-0-mfld.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/alsa-scenario-scn-data-0-mfld.spec')
-rw-r--r--packaging/alsa-scenario-scn-data-0-mfld.spec47
1 files changed, 47 insertions, 0 deletions
diff --git a/packaging/alsa-scenario-scn-data-0-mfld.spec b/packaging/alsa-scenario-scn-data-0-mfld.spec
new file mode 100644
index 0000000..980b8c3
--- /dev/null
+++ b/packaging/alsa-scenario-scn-data-0-mfld.spec
@@ -0,0 +1,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/*