%global build_repo https://github.com/KhronosGroup/Vulkan-Tools %global latest_data %(git ls-remote %{build_repo} | grep 'refs/tags/v' | sort -Vrk 2 | head -1) %global numeric_ver %(echo %{latest_data} | grep -oP 'v.*' | grep -oP '[0-9.]+') %global commit_date %(date +"%Y%m%d") %global rel_build %{commit_date}%{?dist} Name: vulkan-tools Version: %{numeric_ver} Release: %{rel_build} Summary: Vulkan tools License: ASL 2.0 URL: %{build_repo} Source0: %url/archive/v%{version}.tar.gz#/Vulkan-Tools-%{version}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake3 BuildRequires: glslang BuildRequires: ninja-build BuildRequires: python%{python3_pkgversion} BuildRequires: vulkan-loader-devel BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-cursor) BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xcb) Provides: vulkan-demos%{?_isa} = %{version}-%{release} Obsoletes: vulkan-demos < %{version}-%{release} %description Vulkan tools %prep %autosetup -n Vulkan-Tools-%{version} -p1 %build %cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release -DGLSLANG_INSTALL_DIR=%{_bindir} %cmake3_build %install %cmake3_install %files %license LICENSE.txt %doc README.md CONTRIBUTING.md %{_bindir}/* %changelog * Tue Aug 11 2020 Mihai Vultur - Fix CMake to do out-of-source builds: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds * Tue Jul 16 2019 Mihai Vultur - Implement some version autodetection to reduce maintenance work. * Tue Jun 25 2019 Dave Airlie - 1.1.108.0-1 - Update to 1.1.108.0 * Thu Mar 07 2019 Dave Airlie - 1.1.101.0-1 - Update to 1.1.101.0 * Wed Feb 13 2019 Dave Airlie - 1.1.97.0-1 - Update to 1.1.97.0 * Tue Feb 12 2019 Dave Airlie - 1.1.92.0-1 - Update to 1.1.92.0 - don't rename anymore, upstream changed cube app name * Sun Feb 03 2019 Fedora Release Engineering - 1.1.82.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Aug 07 2018 Leigh Scott - 1.1.82.0-1 - Update to 1.1.82.0 * Sat Jul 14 2018 Fedora Release Engineering - 1.1.77.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 23 2018 Leigh Scott - 1.1.77.0-1 - Initial package