add x11 dependency in the spec file 20/16320/2
authorRavi Nanjundappa <nravi.n@samsung.com>
Thu, 13 Feb 2014 06:13:57 +0000 (11:43 +0530)
committerRavi Nanjundappa <nravi.n@samsung.com>
Wed, 19 Feb 2014 06:43:03 +0000 (12:13 +0530)
conditionally enable x11 dependency in the spec file to solve the build issues using X11

Bug-Tizen: PTREL-685
Change-Id: I56235f233484da1ff4cd0cfc1bf880ab9080b530
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
packaging/ug-setting-homescreen-efl.spec

index 7ca4380..0def9c4 100755 (executable)
@@ -1,3 +1,4 @@
+%bcond_with x
 
 Name:       ug-setting-homescreen-efl
 Summary:    UI Gadget : setting-homescreen-efl
@@ -22,6 +23,10 @@ BuildRequires: pkgconfig(vconf)
 BuildRequires: pkgconfig(ail)
 BuildRequires: pkgconfig(pkgmgr-info)
 
+%if %{with x}
+BuildRequires: pkgconfig(x11)
+%endif
+
 %description
 Description: UI Gadget, setting-homescreen-efl