not build without x 04/24904/1
authorBoram Park <boram1288.park@samsung.com>
Sat, 19 Jul 2014 03:22:27 +0000 (12:22 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 24 Jul 2014 06:28:21 +0000 (15:28 +0900)
Change-Id: Ia497a185875f6d9ddf984215a0103351a5919d03

packaging/xeyes.spec

index d4cf708..7dfa916 100755 (executable)
@@ -1,3 +1,5 @@
+%bcond_with x
+
 Summary: X.Org X11 applications
 Name: xeyes
 # NOTE: The package version should be set to the X11 major release from which
@@ -37,6 +39,10 @@ BuildRequires: libXxf86vm-devel
 
 Provides: xeyes
 
+%if !%{with x}
+ExclusiveArch:
+%endif
+
 %description
 A collection of common X Window System applications.
 
@@ -44,8 +50,8 @@ A collection of common X Window System applications.
 %setup -q
 
 %build
-%configure
-make
+%autogen --disable-static
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT