not build without x submit/devel/x11/20140729.061739
authorBoram Park <boram1288.park@samsung.com>
Tue, 29 Jul 2014 06:17:03 +0000 (15:17 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 29 Jul 2014 06:17:03 +0000 (15:17 +0900)
Change-Id: Ic9fa74724ddc82b296b712873c7237b797aa1c0c

packaging/fontsproto.spec

index ba23266..3c7cb52 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with x
+
 Name:           fontsproto
 Version:        2.1.2
 Release:        1
@@ -11,6 +13,10 @@ Source1001:  fontsproto.manifest
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(xorg-macros)
 
+%if !%{with x}
+ExclusiveArch:
+%endif
+
 %description
 %{summary}.
 
@@ -19,7 +25,7 @@ BuildRequires:  pkgconfig(xorg-macros)
 cp %{SOURCE1001} .
 
 %build
-%configure --disable-static \
+%autogen --disable-static \
              --libdir=%{_datadir} \
              --without-xmlto