Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev:devel
spirv-llvm-translator
spirv-llvm-translator.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spirv-llvm-translator.spec of Package spirv-llvm-translator
%define realname SPIRV-LLVM-Translator %define realver 17.0.0 %define srcext tar.gz %bcond_without ninja %define so_ver 17 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: libLLVMSPIRVLib%{?so_ver} Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: BSD-3-Clause Group: System/Libraries URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator Summary: LLVM/SPIR-V Bi-Directional Translator library # Install-time parameters Provides: libllvmspirvlib%{?so_ver} Provides: %{realname} = %{version}-%{release} Obsoletes: %{realname} < %{version}-%{release} # Build-time parameters BuildRequires: cmake >= 3.3 BuildRequires: gcc-c++ %if %{with ninja} BuildRequires: ninja %endif BuildRequires: llvm-devel >= %{so_ver}.0 llvm-devel < %{so_ver}.1 BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(zlib) BuildRequires: spirv-headers BuildRoot: %{_tmppath}/%{name}-root Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v%{realver}%{?extraver}.%{srcext}#/%{realname}-%{realver}%{?extraver}.%{srcext} %description The LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and SPIR-V. %package -n libLLVMSPIRVLib-devel Group: Development/Languages/C and C++ Summary: Development files for LLVM/SPIR-V Bi-Directional Translator library Requires: %{name} = %{version}-%{release} Provides: libllvmspirvlib-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: %{realname}-devel = %{version}-%{release} %description -n libLLVMSPIRVLib-devel The LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and SPIR-V. This package provides headers and libraries required for building software using the LLVM/SPIR-V Bi-Directional Translator library. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{realver}%{?extraver} # Build step (compile/build binaries, documentation, etc) %build _CXXFLAGS='%{optflags} %{?gcc_lto}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto}' mkdir tmp_build cd tmp_build cmake .. \ %if %{with ninja} -G Ninja \ %endif -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="$_CXXFLAGS" \ -DCMAKE_EXE_LINKER_FLAGS_RELEASE="$_LDFLAGS" \ -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="$_LDFLAGS" \ -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$_LDFLAGS" \ -DCMAKE_SKIP_RPATH=YES \ -DCMAKE_VERBOSE_MAKEFILE=YES \ \ -DBUILD_SHARED_LIBS=YES \ -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_prefix} \ -DLLVM_SPIRV_BUILD_EXTERNAL=YES %if %{with ninja} ninja -v %{?_smp_mflags} %else %{__make} %{?_smp_mflags} %endif # Install built stuff %install %if %{with ninja} DESTDIR=%{buildroot} ninja -v -C tmp_build install %else %{__make} -C tmp_build install DESTDIR=%{buildroot} %endif # Cleanup %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} # Files list %files %defattr(-,root,root) %license LICENSE.TXT %doc README.md %{_bindir}/llvm-spirv %{_libdir}/*.so.%{?so_ver}* %files -n libLLVMSPIRVLib-devel %defattr(-,root,root) %license LICENSE.TXT %doc README.md %{_includedir}/LLVMSPIRVLib/ %{_libdir}/*.so %{_libdir}/pkgconfig/LLVMSPIRVLib.pc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor