Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37856089
en ru br
ALT Linux repositórios
S:0.1-alt0.4.g2c1e7c4a42

Group :: Desenvolvimento/Outros
RPM: clspv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%define git 2c1e7c4a42
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
%define optflags_debug -g1

Name: clspv
Version: 0.1
Release: alt0.4.g%{git}
License: Apache-2.0
Summary: Clspv is a prototype compiler for a subset of OpenCL C to Vulkan compute shaders
Group: Development/Other
Url: https://github.com/google/clspv
Source: %name-%version.tar
Patch0: clspv-spirv-tools-link.patch

# armh doesn't compile due memory limits

# i586 fails with error: stat(lib/libclspv_combined.a): Value too large for defined data type.
ExclusiveArch: x86_64 aarch64 ppc64le

BuildRequires(pre): cmake ninja-build
BuildRequires: gcc-c++ zlib-devel libtinfo-devel spirv-headers libspirv-tools-devel python3-base

%description
Clspv is a prototype compiler for a subset of OpenCL C to Vulkan compute
shaders.

It consists of:

- A set of LLVM Module passes to transform a dialect of LLVM IR into a SPIR-V
  module containing Vulkan compute shaders.
- A command line compiler tool called 'clspv' to compile a subset of OpenCL C
  into a Vulkan compute shader.

%prep
%setup
%autopatch -p1

%build
%cmake -G Ninja \
   -DCMAKE_BUILD_TYPE=RelWithDebInfo \
   -DSPIRV_HEADERS_SOURCE_DIR=%_prefix \
   -DSPIRV_TOOLS_SOURCE_DIR=%_prefix \
   -DSPIRV_TOOLS_BINARY_DIR=%_prefix \
   -DCLSPV_BUILD_SPIRV_DIS=OFF \
   -DCLSPV_BUILD_TESTS=OFF \
   -DCMAKE_INSTALL_LIBDIR=%_libdir \
   %nil
%cmake_build

%install
%cmake_install
rm -rf %buildroot%_libdir/*.a

#%%check

#cmake --build "%_cmake__builddir" --target check-spirv

%files
%doc README.md LICENSE CONTRIBUTING.md CONTRIBUTORS AUTHORS docs
%_bindir/*
%_includedir/%name

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009