1
0
forked from pool/vulkan-loader
Dominique Leuenberger 2019-12-29 14:49:02 +00:00 committed by Git OBS Bridge
commit 6e25253509
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 23 11:21:33 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Use new macros (autosetup and cmake_build)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 12 19:30:43 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Thu Dec 12 19:30:43 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -16,20 +16,19 @@
# #
Name: vulkan-loader
%define lname libvulkan1 %define lname libvulkan1
Name: vulkan-loader
Version: 1.1.130 Version: 1.1.130
Release: 0 Release: 0
Summary: Reference ICD loader for Vulkan Summary: Reference ICD loader for Vulkan
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://github.com/KhronosGroup/Vulkan-Loader URL: https://github.com/KhronosGroup/Vulkan-Loader
Source: https://github.com/KhronosGroup/Vulkan-Loader/archive/v%version.tar.gz Source: https://github.com/KhronosGroup/Vulkan-Loader/archive/v%version.tar.gz
Source9: baselibs.conf Source9: baselibs.conf
BuildRequires: cmake >= 3.4 BuildRequires: cmake >= 3.4
BuildRequires: gcc-c++ >= 4.8 BuildRequires: gcc-c++ >= 4.8
BuildRequires: pkg-config BuildRequires: pkgconfig
BuildRequires: python3-xml BuildRequires: python3-xml
BuildRequires: vulkan-headers >= %version BuildRequires: vulkan-headers >= %version
BuildRequires: pkgconfig(pciaccess) BuildRequires: pkgconfig(pciaccess)
@ -67,13 +66,13 @@ This subpackage contains the development headers for packages wanting
to make use of Vulkan. to make use of Vulkan.
%prep %prep
%setup -qn Vulkan-Loader-%version %autosetup -n Vulkan-Loader-%version
%build %build
%cmake \ %cmake \
-DVulkanHeaders_INCLUDE_DIR:PATH="%_includedir" \ -DVulkanHeaders_INCLUDE_DIR:PATH="%_includedir" \
-DVulkanRegistry_DIR:PATH="%_datadir/vulkan/registry" -DVulkanRegistry_DIR:PATH="%_datadir/vulkan/registry"
make %{?_smp_mflags} %cmake_build
%install %install
%cmake_install %cmake_install