forked from pool/spirv-cross
Accepting request 709822 from home:lachs0r
- Init, 2019-05-20 Another Khronos package with a terrible build system. OBS-URL: https://build.opensuse.org/request/show/709822 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-cross?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
spirv-cross-2019-05-20.tar.gz
Normal file
3
spirv-cross-2019-05-20.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bc01afeacd77ff786a10755117a7aeb219c8d50e3db3931e59bf8f50f4cad55d
|
||||
size 789147
|
4
spirv-cross.changes
Normal file
4
spirv-cross.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 14 00:19:53 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
|
||||
|
||||
- Init, 2019-05-20
|
130
spirv-cross.spec
Normal file
130
spirv-cross.spec
Normal file
@@ -0,0 +1,130 @@
|
||||
#
|
||||
# spec file for package spirv-cross
|
||||
#
|
||||
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define _ver 2019-05-20
|
||||
%define _libver 0.9.0
|
||||
%define _sover 0
|
||||
%define _libname libspirv-cross-c-shared
|
||||
%define _libpkg %{_libname}%{_sover}
|
||||
%define __builder ninja
|
||||
Name: spirv-cross
|
||||
Version: 20190520
|
||||
Release: 0
|
||||
Summary: Tool and library for SPIR-V reflection and disassembly
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/KhronosGroup/SPIRV-Cross
|
||||
Source0: https://github.com/KhronosGroup/SPIRV-Cross/archive/%{_ver}.tar.gz#/%{name}-%{_ver}.tar.gz
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja
|
||||
|
||||
%description
|
||||
SPIRV-Cross is a tool and library designed for parsing and
|
||||
converting SPIR-V to other shader languages.
|
||||
|
||||
Features:
|
||||
* Convert SPIR-V to readable, usable and efficient GLSL
|
||||
* Convert SPIR-V to readable, usable and efficient MSL
|
||||
* Convert SPIR-V to readable, usable and efficient HLSL
|
||||
* Convert SPIR-V to a JSON reflection format
|
||||
* Reflection API to simplify the creation of Vulkan pipeline
|
||||
layouts
|
||||
* Reflection API to modify and tweak OpDecorations
|
||||
* Supports "all" of vertex, fragment, tessellation, geometry
|
||||
and compute shaders.
|
||||
* SPIRV-Cross tries hard to emit readable and clean output from
|
||||
the SPIR-V.
|
||||
|
||||
%package -n %{_libpkg}
|
||||
Version: %{_libver}
|
||||
Summary: Library for SPIR-V reflection and disassembly
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{_libpkg}
|
||||
SPIRV-Cross is a tool and library designed for parsing and
|
||||
converting SPIR-V to other shader languages.
|
||||
|
||||
Features:
|
||||
* Convert SPIR-V to readable, usable and efficient GLSL
|
||||
* Convert SPIR-V to readable, usable and efficient MSL
|
||||
* Convert SPIR-V to readable, usable and efficient HLSL
|
||||
* Convert SPIR-V to a JSON reflection format
|
||||
* Reflection API to simplify the creation of Vulkan pipeline
|
||||
layouts
|
||||
* Reflection API to modify and tweak OpDecorations
|
||||
* Supports "all" of vertex, fragment, tessellation, geometry
|
||||
and compute shaders.
|
||||
* SPIRV-Cross tries hard to emit readable and clean output from
|
||||
the SPIR-V.
|
||||
|
||||
%package -n %{_libname}-devel
|
||||
Version: %{_libver}
|
||||
Summary: Development headers for the SPIRV-Cross library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{_libpkg} = %{_libver}
|
||||
|
||||
%description -n %{_libname}-devel
|
||||
SPIRV-Cross is a tool and library designed for parsing and
|
||||
converting SPIR-V to other shader languages.
|
||||
|
||||
Features:
|
||||
* Convert SPIR-V to readable, usable and efficient GLSL
|
||||
* Convert SPIR-V to readable, usable and efficient MSL
|
||||
* Convert SPIR-V to readable, usable and efficient HLSL
|
||||
* Convert SPIR-V to a JSON reflection format
|
||||
* Reflection API to simplify the creation of Vulkan pipeline
|
||||
layouts
|
||||
* Reflection API to modify and tweak OpDecorations
|
||||
* Supports "all" of vertex, fragment, tessellation, geometry
|
||||
and compute shaders.
|
||||
* SPIRV-Cross tries hard to emit readable and clean output from
|
||||
the SPIR-V.
|
||||
|
||||
%prep
|
||||
%setup -q -n SPIRV-Cross-%{_ver}
|
||||
sed -i 's,${CMAKE_INSTALL_PREFIX}/lib,%{_libdir},;s,/share/pkgconfig,/%{_lib}/pkgconfig,;s,DESTINATION lib,DESTINATION %{_lib},g' CMakeLists.txt
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DSPIRV_CROSS_SHARED=ON \
|
||||
-DSPIRV_CROSS_CLI=ON
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
rm %{buildroot}%{_libdir}/*.a
|
||||
rm -r %{buildroot}%{_datadir}
|
||||
|
||||
%post -n %{_libpkg} -p /sbin/ldconfig
|
||||
%postun -n %{_libpkg} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/spirv-cross
|
||||
|
||||
%files -n %{_libpkg}
|
||||
%{_libdir}/libspirv-cross-c-shared.so.*
|
||||
|
||||
%files -n %{_libname}-devel
|
||||
%{_libdir}/libspirv-cross-c-shared.so
|
||||
%{_libdir}/pkgconfig/spirv-cross-c-shared.pc
|
||||
%{_includedir}/spirv_cross
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user