Group :: Development/C++
RPM: spirv-cross
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define sover 0
%define git d26c233e
%def_disable static
Name: spirv-cross
Version: 0.55.0
Release: alt0.1.g%{git}
Epoch: 1
Summary: tool to parse and convert SPIR-V to other shader languages
Group: Development/C++
License: Apache-2.0
URL: https://github.com/KhronosGroup/SPIRV-Cross
Packager: L.A. Kostis <lakostis at altlinux.org>
Source: %name-%version.tar
Patch: %name-alt-cmake-path.patch
BuildRequires(pre): cmake
BuildRequires: gcc-c++
%description
SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V
and disassembling SPIR-V back to high level languages.
%package -n lib%{name}-devel
Summary: %name devel libraries and headers
Group: Development/C++
Requires: lib%{name}-c-shared%{sover} = %EVR
%description -n lib%{name}-devel
%name development libraries and headers
%package -n lib%{name}-c-shared%{sover}
Summary: %name support libraries
Group: System/Libraries
Provides: lib%{name} = %EVR
%description -n lib%{name}-c-shared%{sover}
%name support libraries
%prep
%setup -n %name-%version
%patch -p1
%ifarch %e2k
sed -i "s/make_msl_version(1, 2)/make_msl_version(1, 2, 0)/" spirv_msl.hpp
%endif
%build
%cmake \
-DCMAKE_INSTALL_LIBDIR=%_libdir \
%if_disabled static
-DSPIRV_CROSS_STATIC=OFF \
-DSPIRV_CROSS_CLI=OFF \
%endif
-DSPIRV_CROSS_SHARED=ON
%cmake_build
%cmake_install
%files -n lib%{name}-c-shared%{sover}
%_libdir/*.so.*
%files -n lib%{name}-devel
%_includedir/spirv_cross
%_pkgconfigdir/*.pc
%_libdir/*.so
%_datadir/cmake/*
%changelog
…
Full changelog you can see here
%define git d26c233e
%def_disable static
Name: spirv-cross
Version: 0.55.0
Release: alt0.1.g%{git}
Epoch: 1
Summary: tool to parse and convert SPIR-V to other shader languages
Group: Development/C++
License: Apache-2.0
URL: https://github.com/KhronosGroup/SPIRV-Cross
Packager: L.A. Kostis <lakostis at altlinux.org>
Source: %name-%version.tar
Patch: %name-alt-cmake-path.patch
BuildRequires(pre): cmake
BuildRequires: gcc-c++
%description
SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V
and disassembling SPIR-V back to high level languages.
%package -n lib%{name}-devel
Summary: %name devel libraries and headers
Group: Development/C++
Requires: lib%{name}-c-shared%{sover} = %EVR
%description -n lib%{name}-devel
%name development libraries and headers
%package -n lib%{name}-c-shared%{sover}
Summary: %name support libraries
Group: System/Libraries
Provides: lib%{name} = %EVR
%description -n lib%{name}-c-shared%{sover}
%name support libraries
%prep
%setup -n %name-%version
%patch -p1
%ifarch %e2k
sed -i "s/make_msl_version(1, 2)/make_msl_version(1, 2, 0)/" spirv_msl.hpp
%endif
%build
%cmake \
-DCMAKE_INSTALL_LIBDIR=%_libdir \
%if_disabled static
-DSPIRV_CROSS_STATIC=OFF \
-DSPIRV_CROSS_CLI=OFF \
%endif
-DSPIRV_CROSS_SHARED=ON
%cmake_build
%cmake_install
%files -n lib%{name}-c-shared%{sover}
%_libdir/*.so.*
%files -n lib%{name}-devel
%_includedir/spirv_cross
%_pkgconfigdir/*.pc
%_libdir/*.so
%_datadir/cmake/*
%changelog
…
Full changelog you can see here