diff options
Diffstat (limited to 'packaging/spirv-cross.spec')
-rw-r--r-- | packaging/spirv-cross.spec | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/packaging/spirv-cross.spec b/packaging/spirv-cross.spec new file mode 100644 index 00000000..db42fdbb --- /dev/null +++ b/packaging/spirv-cross.spec @@ -0,0 +1,48 @@ +Name: spirv-cross +Version: 1.3.268 +Release: 0 +Summary: Khronos SPIRV-Cross +Group: Graphics & UI Framework/GL +License: MIT +Source: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: cmake +BuildRequires: pkg-config +BuildRequires: libtool +BuildRequires: python3 +BuildRequires: glslang +BuildRequires: spirv-tools + +%define BUILD_TYPE Debug + +%description +SPIRV-Cross is a tool designed for parsing and converting SPIR-V to other shader languages. + +%prep +%setup -q + +%build +cp %{SOURCE1001} . + +# build SPIRV headers +mkdir build +cd build +cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir} .. +make -j4 + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_bindir} %{buildroot}%{_includedir} +cp -ra ./build/*.a %{buildroot}%{_libdir} +cp -ra ./build/spirv-cross %{buildroot}%{_bindir} +cp -ra ./build/spirv-cross-* %{buildroot}%{_bindir} +cp -ra ./include/* %{buildroot}%{_includedir} + +%files +%manifest %{name}.manifest +%license LICENSE +%defattr(-,root,root,-) +%{_bindir}/* +%{_includedir}/* +%{_libdir}/*.a |