This patch temporarily fixes a GBS build error of 'crosswalk-bin.spec'
related to 'rpmlint'. It happens when build_{tv/mobile}.sh scripts are
not used, and gbs <parameters> is called directly.
Similar fix is also present in chromium-efl.spec.
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: Antonio Gomes, DONGJUN KiM
Change-Id: Ic95092ee6c570d2e47e05e550b0cdd621714e8c5
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
${NINJA_TARGETS}
%endif
+# XXX Workaround for using rpmlint with gbs build on Tizen 3.0
+#
+# When using the latest snapshot repo on http://download.tizen.org/snapshots
+# rpmlint-tizen-1.0-6.1 is installed in GBS-ROOT. So, after rpms are built
+# gbs build script runs rpmlint to test created packages. There is some BUG in
+# this script and directory /home/abuild/rpmbuild/OTHER/ isn't created. This
+# directory is required for rpmlint's log file and its lack causes build error.
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" == "3.0"
+if [ ! -d %{buildroot}/../../OTHER/ -a -f /opt/testing/bin/rpmlint ]; then
+ mkdir -p %{buildroot}/../../OTHER/
+fi
+%endif
+
###### end of block copied/adapted from chromium-efl.spec
%install