[packages/SPIRV-Cross] - merge spirv-cross spec here to follow upstream naming convention

baggins baggins at pld-linux.org
Sat Nov 14 14:44:05 CET 2026


commit e6e14b3654f5ff4eeba94c3631445f536dec762b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 14 14:43:25 2026 +0100

    - merge spirv-cross spec here to follow upstream naming convention

 SPIRV-Cross.spec | 79 ++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 60 insertions(+), 19 deletions(-)
---
diff --git a/SPIRV-Cross.spec b/SPIRV-Cross.spec
index 1b3d8a5..d532b3f 100644
--- a/SPIRV-Cross.spec
+++ b/SPIRV-Cross.spec
@@ -1,23 +1,60 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library
+
+%define	api_version	1.4.363.0
+%define	gitref		vulkan-sdk-%{api_version}
+
 Summary:	Tool for parsing and converting SPIR-V to other shader languages
+Summary(pl.UTF-8):	Narzędzie do analizy i konwersji SPIR-V do innych języków shaderów
 Name:		SPIRV-Cross
-Version:	1.4.363.0
+# CMakeLists.txt /SPIRV_CROSS_VERSION
+Version:	0.68.0
 Release:	1
 License:	Apache v2.0
 Group:		Development/Tools
-Source0:	https://github.com/KhronosGroup/SPIRV-Cross/archive/vulkan-sdk-%{version}/%{name}-%{version}.tar.gz
+#Source0Download: https://github.com/KhronosGroup/SPIRV-Cross/tags
+Source0:	https://github.com/KhronosGroup/SPIRV-Cross/archive/%{gitref}/SPIRV-Cross-%{gitref}.tar.gz
 # Source0-md5:	4049053c7b27ec33aee89aec7ebcf7b1
 Patch0:		install-cmake.patch
 URL:		https://github.com/KhronosGroup/SPIRV-Cross
-BuildRequires:	cmake >= 3.13
+BuildRequires:	cmake >= 3.10
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	python3 >= 1:3
 BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRequires:	sed >= 4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-SPIRV-Cross is a practical tool and library for performing reflection
-on SPIR-V and disassembling SPIR-V back to high level languages.
+SPIRV-Cross is a tool 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 Metal Shading
+  Language (MSL)
+- Convert SPIR-V to readable, usable and efficient HLSL
+- Convert SPIR-V to a JSON reflection format
+- Convert SPIR-V to debuggable C++ (DEPRECATED)
+- 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.
+
+%description -l pl.UTF-8
+SPIR-V Tools to projekt udostępniający API i polecenia do
+przetwarzania modułów SPIR-V. Możliwości:
+- konwersja SPIR-V do czytelnego, używalnego i wydajnego GLSL
+- konwersja SPIR-V do czytelnego, używalnego i wydajnego MSL (Metal
+  Shading Language)
+- konwersja SPIR-V do czytelnego, używalnego i wydajnego HLSL
+- konwersja SPIR-V do formatu refleksji JSON
+- konwersja SPIR-V do nadającego się do śledzenia C++ (PRZESTARZAŁE)
+- API refleksji upraszczające tworzenie układów potoków Vulkan
+- API refleksji do modyfikowania i dostosowywania OpDecorations
+- obsługa "wszystkiego" spośród shaderów: wierzchołków, fragmentów,
+  teselacji, geometrii oraz obliczeń
 
 %package libs
-Summary:	SPIRV-Cross shared librar
+Summary:	SPIRV-Cross shared library
 Summary(pl.UTF-8):	Biblioteka dzielona SPIRV-Cross
 Group:		Libraries
 
@@ -28,40 +65,42 @@ SPIRV-Cross shared library.
 Biblioteka dzielona SPIRV-Cross.
 
 %package devel
-Summary:	Header files for %{name}
-Summary(pl.UTF-8):	Pliki nagłówkowe %{name}
+Summary:	Header files for SPIR-V Cross library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki SPIR-V Cross
 Group:		Development/Libraries
-Requires:	%{name}-libs = %{version}-%{release}
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
 
 %description devel
-Header files for %{name}.
+Header files for SPIR-V Cross library.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe %{name}.
+Pliki nagłówkowe biblioteki SPIR-V Cross.
 
 %package static
-Summary:	Static %{name} libraries
-Summary(pl.UTF-8):	Statyczne biblioteki %{name}
+Summary:	Static SPIR-V Cross libraries
+Summary(pl.UTF-8):	Statyczne biblioteki SPIR-V Cross
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
+Requires:	%{name}devel%{?_isa} = %{version}-%{release}
 
 %description static
-Static %{name} libraries.
+Static SPIR-V Cross libraries.
 
 %description static -l pl.UTF-8
-Statyczne biblioteki %{name}.
+Statyczne biblioteki SPIR-V Cross.
 
 %prep
-%setup -q -n %{name}-vulkan-sdk-%{version}
+%setup -q -n SPIRV-Cross-%{gitref}
 %patch -P0 -p1
 
 %build
-%cmake -B build \
+install -d build
+cd build
+%cmake .. \
 	-DSPIRV_CROSS_CLI=ON \
 	-DSPIRV_CROSS_STATIC=ON \
 	-DSPIRV_CROSS_SHARED=ON
 
-%{__make} -C build
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -92,6 +131,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/cmake/spirv_cross_c_shared
 %{_pkgconfigdir}/spirv-cross-c-shared.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libspirv-cross-*.a
@@ -104,3 +144,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/cmake/spirv_cross_reflect
 %{_datadir}/cmake/spirv_cross_util
 %{_pkgconfigdir}/spirv-cross-c.pc
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/SPIRV-Cross.git/commitdiff/e6e14b3654f5ff4eeba94c3631445f536dec762b



More information about the pld-cvs-commit mailing list