summaryrefslogtreecommitdiff
path: root/packaging/alsa-scenario-scn-data-0-mc1n2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/alsa-scenario-scn-data-0-mc1n2.spec')
-rw-r--r--packaging/alsa-scenario-scn-data-0-mc1n2.spec45
1 files changed, 45 insertions, 0 deletions
diff --git a/packaging/alsa-scenario-scn-data-0-mc1n2.spec b/packaging/alsa-scenario-scn-data-0-mc1n2.spec
new file mode 100644
index 0000000..f677fe0
--- /dev/null
+++ b/packaging/alsa-scenario-scn-data-0-mc1n2.spec
@@ -0,0 +1,45 @@
+Name: alsa-scenario-scn-data-0-mc1n2
+Summary: alsa scenario data for mc1n2 codec
+Version: 0.1.0
+Release: 2
+Group: TO_BE/FILLED_IN
+License: LGPLv2.1
+BuildArch: noarch
+Source0: %{name}-%{version}.tar.gz
+
+%description
+Alsa scenario data mc1n2 codec
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/etc/sound
+cp -a mc1n2 %{buildroot}/usr/etc/sound
+cp -a mc1n2.conf %{buildroot}/usr/etc/sound/mc1n2.conf
+
+%post
+BASE_PATH=/usr/etc/sound
+CODEC=mc1n2
+
+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/*