summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2018-11-30 14:27:50 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2022-03-28 11:04:03 +0800
commit69a21e6a00d6881936ee6843e9cae950b4f4caca (patch)
tree2f8b44dde9f646ea569ce6c30bc045e4bcd075c7
parent99500cee1e2d343bd6905d6f0b63645fd161256a (diff)
downloadVulkan-Tools-69a21e6a00d6881936ee6843e9cae950b4f4caca.tar.gz
Vulkan-Tools-69a21e6a00d6881936ee6843e9cae950b4f4caca.tar.bz2
Vulkan-Tools-69a21e6a00d6881936ee6843e9cae950b4f4caca.zip
add the spec file
-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}/*
+