1
0
forked from pool/spirv-tools
Jan Engelhardt 2016-06-13 10:20:39 +00:00 committed by Git OBS Bridge
commit e0ab3700ec
7 changed files with 162 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/KhronosGroup/SPIRV-Tools</param>
<param name="filename">spirv-tools</param>
<param name="parent-tag">spirv-1.1-rev1</param>
<param name="versionformat">1.1.g@TAG_OFFSET@</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
<!-- remove directory windows*/ because of vcredist -->
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea51c69e9d730d4a6df8e472270bc14d0a717250524550df9cb0484f1d7c1de3
size 159116

5
spirv-tools.changes Normal file
View File

@ -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

93
spirv-tools.spec Normal file
View File

@ -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

22
ver.diff Normal file
View File

@ -0,0 +1,22 @@
From: Jan Engelhardt <jengelh@inai.de>
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)