summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2018-11-30 14:27:50 +0900
committerSooChan Lim <sc1.lim@samsung.com>2018-11-30 20:39:12 +0900
commite6277e45776c5a175afcba83e92d9a2e40676dc1 (patch)
tree097c32055ba4938c5ab7a61b80805b4df68a91bf
parent9bbdd552f0fd62741aa1f1e02ab3eafc45cf3c1e (diff)
downloadVulkan-Tools-devel_package.tar.gz
Vulkan-Tools-devel_package.tar.bz2
Vulkan-Tools-devel_package.zip
-rw-r--r--packaging/vulkan-tools.manifest5
-rw-r--r--packaging/vulkan-tools.spec50
2 files changed, 55 insertions, 0 deletions
diff --git a/packaging/vulkan-tools.manifest b/packaging/vulkan-tools.manifest
new file mode 100644
index 00000000..97e8c313
--- /dev/null
+++ b/packaging/vulkan-tools.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/vulkan-tools.spec b/packaging/vulkan-tools.spec
new file mode 100644
index 00000000..badcd920
--- /dev/null
+++ b/packaging/vulkan-tools.spec
@@ -0,0 +1,50 @@
+Name: vulkan-tools
+Version: 1.1.92
+Release: 0
+Summary: Vulkan tools
+Group: Graphics & UI Framework/GL
+License: Apache-2.0
+Source: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+BuildRequires: cmake
+BuildRequires: pkg-config
+BuildRequires: libtool
+BuildRequires: python3
+BuildRequires: glslang
+BuildRequires: vulkan-loader-devel
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(wayland-cursor)
+BuildRequires: pkgconfig(wayland-server)
+BuildRequires: pkgconfig(wayland-egl)
+
+%define BUILD_TYPE Debug
+
+%description
+This project provides the Khronos Vulkan Tools.
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+export CFLAGS="$CFLAGS -w"
+cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} -DGLSLANG_INSTALL_DIR=%{_bindir} \
+ -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DBUILD_WSI_WAYLAND_SUPPORT=ON \
+ -DCUBE_WSI_SELECTION=WAYLAND \
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
+ -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir}
+make
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%remove_docs
+
+%files
+%manifest %{name}.manifest
+%license LICENSE.txt
+%defattr(-,root,root,-)
+%{_bindir}/*
+