summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-11 08:45:18 -0800
committerQuanxian Wang <quanxian.wang@intel.com>2013-10-17 11:51:08 +0800
commit5e1130f2bdab271f11c2c06fd2f34e6e1415e0cb (patch)
tree0f674accf0ebfa6a33b7283554e89705add83f6c
parent862ea518e64e9cd8eba5d4743a3333f4821126ac (diff)
downloadmesa-5e1130f2bdab271f11c2c06fd2f34e6e1415e0cb.tar.gz
mesa-5e1130f2bdab271f11c2c06fd2f34e6e1415e0cb.tar.bz2
mesa-5e1130f2bdab271f11c2c06fd2f34e6e1415e0cb.zip
use %bcond_with wayland
-rw-r--r--packaging/mesa.spec16
1 files changed, 8 insertions, 8 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index 524a556bd00..0f367cb1f77 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -1,12 +1,12 @@
%define glamor 1
-%define enable_wayland 1
+%bcond_with wayland
#
-%define _version 9.0.git20121028
+%define _version 9.0.1
%define _name_archive MesaLib
Name: mesa
-Version: 9.0.git20121028
+Version: 9.0.1
Release: 0
BuildRequires: makedepend
BuildRequires: autoconf >= 2.59
@@ -36,7 +36,7 @@ BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xxf86vm)
-%if 0%{?enable_wayland}
+%if %{with wayland}
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-server)
%endif
@@ -79,7 +79,7 @@ Requires: mesa-libGLESv1_CM-devel = %version
Requires: mesa-libGLESv2-devel = %version
Requires: mesa-libIndirectGL = %version
Requires: mesa-libglapi = %version
-%if 0%{?enable_wayland}
+%if %{with wayland}
Requires: libwayland-egl
%endif
Requires: libOSMesa = %version
@@ -362,7 +362,7 @@ rm -f src/mesa/depend
autoreconf -fi
%configure --enable-gles1 \
--enable-gles2 \
-%if 0%{?enable_wayland}
+%if %{with wayland}
--with-egl-platforms=x11,drm,wayland \
%else
--with-egl-platforms=x11,drm \
@@ -532,7 +532,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc $RPM_BUILD_ROOT/etc
%defattr(-,root,root)
%_libdir/libOSMesa.so.8*
-%if 0%{?enable_wayland}
+%if %{with wayland}
%files -n libwayland-egl
%defattr(-,root,root)
%_libdir/libwayland-egl.so.1*
@@ -579,7 +579,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc $RPM_BUILD_ROOT/etc
%_libdir/libOSMesa.so
%_libdir/libglapi.so
%_libdir/pkgconfig/osmesa.pc
-%if 0%{?enable_wayland}
+%if %{with wayland}
%_libdir/libwayland-egl.so
%_libdir/pkgconfig/wayland-egl.pc
%endif