Accepting request 758971 from home:pluskalm:branches:X11:Wayland

- Use new macros (autosetup and cmake_build)

OBS-URL: https://build.opensuse.org/request/show/758971
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-loader?expand=0&rev=40
This commit is contained in:
Michael Vetter 2019-12-27 11:04:44 +00:00 committed by Git OBS Bridge
parent af9cc0664f
commit f99e7e7ca2
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>

View File

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