Include all .repo files into the package 40/29740/1 tizen_3.0.m14.3_ivi
authorEd Bartosh <eduard.bartosh@intel.com>
Fri, 31 Oct 2014 10:29:20 +0000 (12:29 +0200)
committerEd Bartosh <eduard.bartosh@intel.com>
Fri, 31 Oct 2014 10:29:20 +0000 (12:29 +0200)
Modified spec to include all .repo files present in source tree into the
package.

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

index ce5c1c2..545b70b 100644 (file)
@@ -22,20 +22,10 @@ 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
-
+%config /etc/zypp/repos.d/*.repo