[packages/Mesa-vulkan-icd-intel] new package

jajcus jajcus at pld-linux.org
Sat Feb 20 16:29:17 CET 2016


commit 2336fd46742044f063c8785b5425d3e9ac321ffb
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Feb 20 16:28:36 2016 +0100

    new package

 Mesa-vulkan-icd-intel.spec | 131 +++++++++++++++++++++++++++++++++++++++++++++
 keep_git_sha.patch         |  32 +++++++++++
 2 files changed, 163 insertions(+)
---
diff --git a/Mesa-vulkan-icd-intel.spec b/Mesa-vulkan-icd-intel.spec
new file mode 100644
index 0000000..783268d
--- /dev/null
+++ b/Mesa-vulkan-icd-intel.spec
@@ -0,0 +1,131 @@
+#
+# The driver will be merged into mainstream Mesa. Will will build it then
+# from the Mesa.spec and use Mesa version number.
+#
+# Conditional build:
+%bcond_without	wayland		# Wayland WSI support
+#
+%define snap	20160220
+Summary:	Vulkan driver for Intel GPUs
+Name:		Mesa-vulkan-icd-intel
+Version:	0.s%{snap}
+Release:	1
+License:	MIT (core) and others - see license.html file
+Group:		X11/Libraries
+# git archive --format=tar --prefix=Mesa-vulkan-s20160220/ vulkan | xz > ../Mesa-vulkan-s20160220.tar.xz
+Source0:	Mesa-vulkan-s%{snap}.tar.xz
+# Source0-md5:	c17941156b0489023637bc1f8e429452
+Patch0:		keep_git_sha.patch
+URL:		http://www.mesa3d.org/
+BuildRequires:	autoconf >= 2.60
+BuildRequires:	automake
+BuildRequires:	elfutils-devel
+BuildRequires:	expat-devel
+BuildRequires:	gcc >= 6:4.2.0
+BuildRequires:	git-core
+BuildRequires:	libdrm-devel >= %{libdrm_ver}
+BuildRequires:	libstdc++-devel >= 6:4.2.0
+BuildRequires:	libtalloc-devel >= 2:2.0.1
+BuildRequires:	libtool >= 2:2.2
+BuildRequires:	libxcb-devel >= 1.10
+BuildRequires:	llvm-devel >= 3.4.2
+# for SHA1 (could use also libmd/libsha1/libgcrypt/openssl instead)
+BuildRequires:	libxcb-devel
+BuildRequires:	libxcb-devel
+BuildRequires:	nettle-devel
+BuildRequires:	perl-base
+BuildRequires:	pixman-devel
+BuildRequires:	pkgconfig
+BuildRequires:	python >= 2
+BuildRequires:	python-Mako >= 0.3.4
+BuildRequires:	python-modules >= 2
+BuildRequires:	rpmbuild(macros) >= 1.470
+BuildRequires:	sed >= 4.0
+BuildRequires:	talloc-devel >= 2.0.1
+%{?with_wayland:BuildRequires:	wayland-devel >= 1.2.0}
+BuildRequires:	xorg-lib-libXdamage-devel
+BuildRequires:	xorg-lib-libXext-devel >= 1.0.5
+BuildRequires:	xorg-lib-libXfixes-devel
+BuildRequires:	xorg-lib-libXt-devel
+BuildRequires:	xorg-lib-libXvMC-devel >= 1.0.6
+BuildRequires:	xorg-lib-libXxf86vm-devel
+BuildRequires:	xorg-lib-libxshmfence-devel >= 1.1
+BuildRequires:	xorg-proto-dri3proto-devel >= %{dri3proto_ver}
+BuildRequires:	xorg-util-makedepend
+Requires:	vulkan-loader
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mesa Vulkan driver for Intel GPUs.
+
+%package devel
+Summary:	Header files for %{name} Intel Vulkan driver
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} Intel Vulkan driver.
+
+%prep
+%setup -q -n Mesa-vulkan-s%{snap}
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+
+%configure \
+	--disable-silent-rules \
+	--disable-gbm \
+	--disable-glx-tls \
+	--disable-osmesa \
+	--enable-selinux \
+	--enable-shared \
+	%{?with_static_libs:--enable-static} \
+	%{?with_texture_float:--enable-texture-float} \
+	--enable-egl \
+	--disable-gles1 \
+	--disable-gles2 \
+	--with-egl-platforms=x11%{?with_wayland:,wayland} \
+	--disable-gallium-llvm \
+	--disable-nine \
+	--disable-opencl \
+	--disable-vdpau \
+	--disable-xvmc \
+	--without-gallium-drivers \
+	--with-dri-drivers=i965 \
+	--with-dri-driverdir=%{_libdir}/xorg/modules/dri \
+	--with-sha1=libnettle \
+	--with-va-libdir=%{_libdir}/libva/dri
+
+echo "#define MESA_GIT_SHA1 \"$(xzcat %{SOURCE0}|git get-tar-commit-id|cut -c-7)\"" > src/mesa/main/git_sha1.h
+
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+icdconfdir=%{_datadir}/vulkan/icd.d \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.intel-vulkan.txt docs/license.html
+%{_libdir}/libvulkan_intel.so
+%{_datadir}/vulkan/icd.d/*.json
+
+%files devel
+%defattr(644,root,root,755)
+%doc README.intel-vulkan.txt docs/license.html
+%{_libdir}/libvulkan_intel.la
+%{_includedir}/vulkan/vulkan_intel.h
diff --git a/keep_git_sha.patch b/keep_git_sha.patch
new file mode 100644
index 0000000..044005b
--- /dev/null
+++ b/keep_git_sha.patch
@@ -0,0 +1,32 @@
+diff -dur -x '*~' Mesa-vulkan-s20160220.orig/src/mesa/Makefile.am Mesa-vulkan-s20160220/src/mesa/Makefile.am
+--- Mesa-vulkan-s20160220.orig/src/mesa/Makefile.am	2016-02-19 17:05:35.000000000 +0100
++++ Mesa-vulkan-s20160220/src/mesa/Makefile.am	2016-02-20 16:06:38.690371982 +0100
+@@ -36,28 +36,6 @@
+ gldir = $(includedir)/GL
+ gl_HEADERS = $(top_srcdir)/include/GL/*.h
+ 
+-.PHONY: main/git_sha1.h.tmp
+-main/git_sha1.h.tmp:
+-	@# Don't assume that $(top_srcdir)/.git is a directory. It may be
+-	@# a gitlink file if $(top_srcdir) is a submodule checkout or a linked
+-	@# worktree.
+-	@touch main/git_sha1.h.tmp
+-	@if test -e $(top_srcdir)/.git; then \
+-		if which git > /dev/null; then \
+-		    git --git-dir=$(top_srcdir)/.git log -n 1 --oneline | \
+-			sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
+-			> main/git_sha1.h.tmp ; \
+-		fi \
+-	fi
+-
+-main/git_sha1.h: main/git_sha1.h.tmp
+-	@echo "updating main/git_sha1.h"
+-	@if ! cmp -s main/git_sha1.h.tmp main/git_sha1.h; then \
+-		mv main/git_sha1.h.tmp main/git_sha1.h ;\
+-	else \
+-		rm main/git_sha1.h.tmp ;\
+-	fi
+-
+ include Makefile.sources
+ 
+ EXTRA_DIST = \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa-vulkan-icd-intel.git/commitdiff/2336fd46742044f063c8785b5425d3e9ac321ffb



More information about the pld-cvs-commit mailing list