TC-221: Add Emulator repos for Emulator image 08/23708/1 submit/ivi/20140725.075539 submit/tizen_ivi/20140725.075609
authorDongxing Liu <dongxing.x.liu@intel.com>
Wed, 2 Jul 2014 02:47:34 +0000 (10:47 +0800)
committerDongxing Liu <dongxing.x.liu@intel.com>
Wed, 2 Jul 2014 02:47:34 +0000 (10:47 +0800)
Change-Id: Iaf3eba4a64ba2c3c8f7a327d2032a080a6b61293
Signed-off-by: Dongxing Liu <dongxing.x.liu@intel.com>
ivi-emul-daily.repo [new file with mode: 0644]
ivi-emul-snapshot.repo [new file with mode: 0644]
packaging/ivi-repos.spec

diff --git a/ivi-emul-daily.repo b/ivi-emul-daily.repo
new file mode 100644 (file)
index 0000000..9251e54
--- /dev/null
@@ -0,0 +1,18 @@
+[ivi-daily]
+name=ivi-daily
+type=rpm-md
+baseurl=https://download.tizen.org/releases/daily/tizen/ivi/ivi/latest/repos/emulator/packages/
+gpgcheck=0
+enabled=1
+
+[ivi-daily-debuginfo]
+name=ivi-daily-debuginfo
+baseurl=https://download.tizen.org/releases/daily/tizen/ivi/ivi/latest/repos/emulator/debug/
+gpgcheck=0
+enabled=0
+
+[ivi-daily-source]
+name=ivi-daily-source
+baseurl=https://download.tizen.org/releases/daily/tizen/ivi/ivi/latest/repos/emulator/source/
+gpgcheck=0
+enabled=0
diff --git a/ivi-emul-snapshot.repo b/ivi-emul-snapshot.repo
new file mode 100644 (file)
index 0000000..375dc95
--- /dev/null
@@ -0,0 +1,18 @@
+[ivi-snapshot]
+name=ivi-snapshot
+type=rpm-md
+baseurl=https://download.tizen.org/snapshots/tizen/ivi/ivi/latest/repos/emulator/packages/
+gpgcheck=0
+enabled=0
+
+[ivi-snapshot-debuginfo]
+name=ivi-snapshot-debuginfo
+baseurl=https://download.tizen.org/snapshots/tizen/ivi/ivi/latest/repos/emulator/debug/
+gpgcheck=0
+enabled=0
+
+[ivi-snapshot-source]
+name=ivi-snapshot-source
+baseurl=https://download.tizen.org/snapshots/tizen/ivi/ivi/latest/repos/emulator/source/
+gpgcheck=0
+enabled=0
index 31c557b..51ceb9b 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with emulator
+
 Name:       ivi-repos
 Summary:    Tizen IVI Repos
 Version:    4
@@ -19,11 +21,21 @@ This package installs the .repo files for Tizen IVI images
 %install
 rm -rf %{buildroot}
 install -d %{buildroot}/etc/zypp/repos.d
+%if %{with emulator}
+install -m 0644 ivi-emul-snapshot.repo %{buildroot}/etc/zypp/repos.d
+install -m 0644 ivi-emul-daily.repo %{buildroot}/etc/zypp/repos.d
+%else
 install -m 0644 ivi-snapshot.repo %{buildroot}/etc/zypp/repos.d
 install -m 0644 ivi-daily.repo %{buildroot}/etc/zypp/repos.d 
+%endif
 
 %files
 %defattr(-,root,root,-)
+%if %{with emulator}
+%config /etc/zypp/repos.d/ivi-emul-snapshot.repo
+%config /etc/zypp/repos.d/ivi-emul-daily.repo
+%else
 %config /etc/zypp/repos.d/ivi-snapshot.repo
 %config /etc/zypp/repos.d/ivi-daily.repo
+%endif