2016-06-12 19:13:05 +02:00
|
|
|
#
|
2017-02-02 11:34:18 +01:00
|
|
|
# spec file for package spirv-headers
|
2016-06-12 19:13:05 +02:00
|
|
|
#
|
2018-02-07 23:26:02 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-12 19:13:05 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-08-24 21:03:05 +02:00
|
|
|
%define version_unconverted 1.3.g34
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
Name: spirv-headers
|
2018-08-24 21:03:05 +02:00
|
|
|
Version: 1.3.g34
|
2016-06-12 19:13:05 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Machine-readable files from the SPIR-V registry
|
2016-06-13 12:20:18 +02:00
|
|
|
License: MIT
|
2016-06-12 19:13:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: https://github.com/KhronosGroup/SPIRV-Headers
|
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: cmake >= 2.8
|
2017-02-20 18:47:39 +01:00
|
|
|
BuildRequires: fdupes
|
2016-06-12 19:13:05 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
%description
|
|
|
|
This repository contains machine-readable files from the SPIR-V
|
|
|
|
registry. This includes:
|
|
|
|
|
|
|
|
* Header files for various languages.
|
|
|
|
* JSON files describing the grammar for the SPIR-V core instruction
|
|
|
|
set, and for the GLSL.std.450 extended instruction set.
|
|
|
|
* The XML registry file.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Because Khronos does not know what DESTDIR is.
|
|
|
|
%cmake -DCMAKE_INSTALL_PREFIX="%buildroot/%_prefix"
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build/
|
|
|
|
make install-headers
|
|
|
|
popd
|
2017-02-20 18:47:39 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/spirv/
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|