Include all .repo files into the package 67/29667/2 tizen
authorEd Bartosh <eduard.bartosh@intel.com>
Fri, 31 Oct 2014 10:29:20 +0000 (12:29 +0200)
committerEduard Bartosh <eduard.bartosh@intel.com>
Wed, 5 Nov 2014 12:14:34 +0000 (04:14 -0800)
Modified spec to include all .repo files present in source tree into the
package.

Updated .changes & version bump

Change-Id: Ie4c6ba220f39b70ae25a152da62c0c3740e21a04
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
packaging/ivi-repos.changes
packaging/ivi-repos.spec

index fca221b..64cc8cf 100644 (file)
@@ -1,3 +1,7 @@
+* Fri Oct 31 2014 Ed Bartosh <ed@ed.fi.intel.com> 7-1
+- Prepare for M14.3 milestone release
+- Include all .repo files into the package
+
 * Thu Aug 14 18:31:08 UTC 2014 - alice.liu@intel.com
 - Update the emulator repo url to reflect the current path
 
index ce5c1c2..0fb6b4c 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       ivi-repos
 Summary:    Tizen IVI Repos
-Version:    6
+Version:    7
 Release:    1
 Group:      Base/Configuration
 BuildArch:  noarch
@@ -22,20 +22,12 @@ This package installs the .repo files for Tizen IVI images
 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 
+type='emul-'
 %endif
+install -m 0644 ivi-$type*.repo %{buildroot}/etc/zypp/repos.d
 
 %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
-
+%dir %{_sysconfdir}/zypp
+%dir %{_sysconfdir}/zypp/repos.d
+%config /etc/zypp/repos.d/*.repo