commit e0ab3700ec824537196e11b7d8707bb573962a4407ffa8ffa24babaef0405999 Author: Jan Engelhardt Date: Mon Jun 13 10:20:39 2016 +0000 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-tools?expand=0&rev=4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..2b84b4d --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + git + https://github.com/KhronosGroup/SPIRV-Tools + spirv-tools + spirv-1.1-rev1 + 1.1.g@TAG_OFFSET@ + + + *.tar + xz + + + + diff --git a/spirv-tools-1.1.g41.tar.xz b/spirv-tools-1.1.g41.tar.xz new file mode 100644 index 0000000..011719c --- /dev/null +++ b/spirv-tools-1.1.g41.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea51c69e9d730d4a6df8e472270bc14d0a717250524550df9cb0484f1d7c1de3 +size 159116 diff --git a/spirv-tools.changes b/spirv-tools.changes new file mode 100644 index 0000000..e9aa863 --- /dev/null +++ b/spirv-tools.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Jun 13 09:46:37 UTC 2016 - jengelh@inai.de + +- Initial package (version 1.1) for build.opensuse.org +- Add ver.diff diff --git a/spirv-tools.spec b/spirv-tools.spec new file mode 100644 index 0000000..ae7d50c --- /dev/null +++ b/spirv-tools.spec @@ -0,0 +1,93 @@ +# +# spec file for package spirv-tools +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%define version_unconverted 1.1.g41 +%define lname libSPIRV-Tools-1_1 + +Name: spirv-tools +Version: 1.1.g41 +Release: 0 +Summary: API and commands for processing SPIR-V modules +License: MIT +Group: Development/Libraries/C and C++ +Url: https://github.com/KhronosGroup/SPIRV-Tools + +Source: %name-%version.tar.xz +Patch1: ver.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: bison +BuildRequires: cmake >= 2.8 +BuildRequires: gcc-c++ +BuildRequires: spirv-headers + +%description +The package includes an assembler, binary module parser, +disassembler, and validator for SPIR-V. + +%package -n %lname +Summary: SPIR-V tool component library +Group: System/Libraries + +%description -n %lname +The SPIR-V Tool library contains all of the implementation details +driving the SPIR-V assembler, binary module parser, disassembler and +validator, and is used in the standalone tools whilst also enabling +integration into other code bases directly. + +%package devel +Summary: Development headers for the SPIR-V tool library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +The SPIR-V Tool library contains all of the implementation details +driving the SPIR-V assembler, binary module parser, disassembler and +validator, and is used in the standalone tools whilst also enabling +integration into other code bases directly. + +%prep +%setup -q +%patch -P 1 -p1 + +%build +%cmake -D"SPIRV-Headers_SOURCE_DIR=%_prefix" +make %{?_smp_mflags} + +%install +b="%buildroot" +%cmake_install +# duh.. +if [ "%_lib" != lib ]; then + pushd "$b/%_prefix" + mv "lib" "%_lib" +fi + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files +%_bindir/spirv-* +%doc LICENSE + +%files -n %lname +%_libdir/libSPIRV-Tools-1.1.so + +%files devel +%_includedir/spirv-tools/ + +%changelog diff --git a/ver.diff b/ver.diff new file mode 100644 index 0000000..11e8241 --- /dev/null +++ b/ver.diff @@ -0,0 +1,22 @@ +From: Jan Engelhardt +Date: 2016-06-13 11:46:16.846841814 +0200 + +Unversioned libraries suck! + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: SPIRV-Tools/CMakeLists.txt +=================================================================== +--- SPIRV-Tools.orig/CMakeLists.txt ++++ SPIRV-Tools/CMakeLists.txt +@@ -27,7 +27,7 @@ + cmake_minimum_required(VERSION 2.8.12) + project(spirv-tools) + enable_testing() +-set(SPIRV_TOOLS "SPIRV-Tools") ++set(SPIRV_TOOLS "SPIRV-Tools-1.1") + + set(CMAKE_POSITION_INDEPENDENT_CODE ON) +