summaryrefslogtreecommitdiff
path: root/packaging/mmfw-sysconf.spec
diff options
context:
space:
mode:
authorKibum Kim <kb0929.kim@samsung.com>2012-01-07 00:50:06 +0900
committerKibum Kim <kb0929.kim@samsung.com>2012-01-07 00:50:06 +0900
commit8d39373915cefb37a60d325ec63cf9423cf68dcd (patch)
tree5137b9bb420daee4de4da0281676f4381795d186 /packaging/mmfw-sysconf.spec
parentc6187355e46692f0a73d224377534a3ea743dcea (diff)
downloadmmfw-sysconf-8d39373915cefb37a60d325ec63cf9423cf68dcd.tar.gz
mmfw-sysconf-8d39373915cefb37a60d325ec63cf9423cf68dcd.tar.bz2
mmfw-sysconf-8d39373915cefb37a60d325ec63cf9423cf68dcd.zip
Git init
Diffstat (limited to 'packaging/mmfw-sysconf.spec')
-rw-r--r--packaging/mmfw-sysconf.spec95
1 files changed, 95 insertions, 0 deletions
diff --git a/packaging/mmfw-sysconf.spec b/packaging/mmfw-sysconf.spec
new file mode 100644
index 0000000..6e74b5c
--- /dev/null
+++ b/packaging/mmfw-sysconf.spec
@@ -0,0 +1,95 @@
+Name: mmfw-sysconf
+Summary: Multimedia Framework system configuration package
+Version: 0.1.8
+Release: 1
+Group: TO_BE/FILLED_IN
+License: TO BE FILLED IN
+Source0: %{name}-%{version}.tar.gz
+
+%description
+Multimedia Framework system configuration package
+
+%package simulator
+Summary: Multimedia Framework system configuration package for simulator
+Group: TO_BE/FILLED_IN
+
+%description simulator
+Multimedia Framework system configuration package for simulator
+
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{_sysconfdir}/mmfw-sysconf
+mkdir -p %{buildroot}/opt/etc/mmfw-sysconf
+
+mkdir -p %{buildroot}%{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-simulator
+cp -rf mmfw-sysconf-simulator/etc/* %{buildroot}%{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-simulator/
+
+mkdir -p %{buildroot}/opt/etc/mmfw-sysconf/mmfw-sysconf-simulator
+cp -rf mmfw-sysconf-simulator/opt/etc/* %{buildroot}/opt/etc/mmfw-sysconf/mmfw-sysconf-simulator/
+
+mkdir -p %{buildroot}%{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-cleansdk-target
+cp -rf mmfw-sysconf-simulator/etc/* %{buildroot}%{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-cleansdk-target/
+
+mkdir -p %{buildroot}/opt/etc/mmfw-sysconf/mmfw-sysconf-cleansdk-target
+cp -rf mmfw-sysconf-simulator/opt/etc/* %{buildroot}/opt/etc/mmfw-sysconf/mmfw-sysconf-cleansdk-target/
+
+%post simulator
+rm -f %{_sysconfdir}/asound.conf
+ln -s %{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-simulator/asound.conf %{_sysconfdir}/asound.conf
+
+rm -f /opt/etc/mmfw_camcorder.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_pri.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_sec.ini
+rm -f /opt/etc/mmfw_player.ini
+
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-simulator/mmfw_camcorder.ini /opt/etc/mmfw_camcorder.ini
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-simulator/mmfw_camcorder_dev_video_pri.ini /opt/etc/mmfw_camcorder_dev_video_pri.ini
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-simulator/mmfw_camcorder_dev_video_sec.ini /opt/etc/mmfw_camcorder_dev_video_sec.ini
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-simulator/mmfw_player.ini /opt/etc/mmfw_player.ini
+
+%post cleansdk-target
+rm -f %{_sysconfdir}/asound.conf
+ln -s %{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-cleansdk-target/asound.conf %{_sysconfdir}/asound.conf
+
+rm -f /opt/etc/mmfw_camcorder.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_pri.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_sec.ini
+rm -f /opt/etc/mmfw_player.ini
+
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-cleansdk-target/mmfw_camcorder.ini /opt/etc/mmfw_camcorder.ini
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-cleansdk-target/mmfw_camcorder_dev_video_pri.ini /opt/etc/mmfw_camcorder_dev_video_pri.ini
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-cleansdk-target/mmfw_camcorder_dev_video_sec.ini /opt/etc/mmfw_camcorder_dev_video_sec.ini
+ln -s /opt/etc/mmfw-sysonf/mmfw-sysconf-cleansdk-target/mmfw_player.ini /opt/etc/mmfw_player.ini
+
+
+%postun simulator
+rm -f %{_sysconfdir}/asound.conf
+rm -f /opt/etc/mmfw_camcorder.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_pri.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_sec.ini
+rm -f /opt/etc/mmfw_player.ini
+
+%postun cleansdk-target
+rm -f %{_sysconfdir}/asound.conf
+rm -f /opt/etc/mmfw_camcorder.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_pri.ini
+rm -f /opt/etc/mmfw_camcorder_dev_video_sec.ini
+rm -f /opt/etc/mmfw_player.ini
+
+
+%files simulator
+%defattr(-,root,root,-)
+%{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-simulator/*
+/opt/etc/mmfw-sysconf/mmfw-sysconf-simulator/*
+
+%files cleansdk-target
+%defattr(-,root,root,-)
+%{_sysconfdir}/mmfw-sysconf/mmfw-sysconf-cleansdk-target/*
+/opt/etc/mmfw-sysconf/mmfw-sysconf-cleansdk-target/*