summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}/*
+