Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win32
mingw32-spirv-tools
mingw32-spirv-tools.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-spirv-tools.spec of Package mingw32-spirv-tools
# # spec file for package mingw32-spirv-tools # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define _lto_cflags %nil %define lname libSPIRV-Tools-2023_1 %define _name spirv-tools Name: mingw32-%{_name} Version: 2023.1 Release: 0 Summary: API and commands for processing SPIR-V modules License: Apache-2.0 Group: Development/Libraries/C and C++ URL: https://github.com/KhronosGroup/SPIRV-Tools Source: https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/v%version.tar.gz Patch1: ver.diff #PATCH-FIX-UPSTREAM https://github.com/KhronosGroup/SPIRV-Tools/pull/5127 Patch3: SPIRV-Tools-2022.3-init-_old_mode-fix.patch #PATCH-FIX-UPSTREAM https://github.com/KhronosGroup/SPIRV-Tools/pull/5129 Patch4: SPIRV-Tools-2022.3-cmake-install-dir-mingw.patch BuildRequires: bison BuildRequires: mingw32-cross-cmake BuildRequires: mingw32-cross-gcc-c++ BuildRequires: mingw32-pkg-config BuildRequires: mingw32-spirv-headers >= 1.6.1+sdk236 BuildRequires: python3-base BuildRequires: python3-xml %_mingw32_package_header_debug BuildArch: noarch %description The package includes an assembler, binary module parser, disassembler, and validator for SPIR-V. %package -n mingw32-%lname Summary: SPIR-V tool component library Group: System/Libraries %description -n mingw32-%lname The SPIR-V Tool library contains all of the implementation details driving the SPIR-V assembler, binary module parser, disassembler and validator, and is used in the standalone tools whilst also enabling integration into other code bases directly. %package devel Summary: Development headers for the SPIR-V tool library Group: Development/Libraries/C and C++ Requires: mingw32-%lname = %version %description devel The SPIR-V Tool library contains all of the implementation details driving the SPIR-V assembler, binary module parser, disassembler and validator, and is used in the standalone tools whilst also enabling integration into other code bases directly. %_mingw32_debug_package %prep %define slibv 2023.1 %autosetup -p1 -n SPIRV-Tools-%version find . -type f -name CMakeLists.txt -exec \ perl -i -pe 's{\@PACKAGE_VERSION\@}{%slibv}' CMakeLists.txt {} + %build %if 0%{?suse_version} >= 1550 #export CXXFLAGS="%optflags -Wno-error=stringop-truncation" %endif %_mingw32_cmake -DSPIRV-Headers_SOURCE_DIR="%_mingw32_prefix" \ -DSPIRV_TOOLS_BUILD_STATIC:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON %_mingw32_cmake_build %install %_mingw32_cmake_install perl -i -lpe 's{^#!/usr/bin/env sh$}{#!/bin/sh}' "%buildroot%_mingw32_bindir/spirv-lesspipe.sh" %files %_mingw32_bindir/spirv-*.exe %doc LICENSE %files -n mingw32-%lname %_mingw32_bindir/libSPIRV-Tools*.dll %_mingw32_bindir/libSPIRV-Tools-diff*.dll %_mingw32_bindir/libSPIRV-Tools-link*.dll %_mingw32_bindir/libSPIRV-Tools-lint*.dll %_mingw32_bindir/libSPIRV-Tools-opt*.dll %_mingw32_bindir/libSPIRV-Tools-reduce*.dll %_mingw32_bindir/libSPIRV-Tools-shared*.dll %files devel %_mingw32_bindir/spirv-lesspipe.sh %_mingw32_libdir/cmake/ %_mingw32_libdir/libSPIRV-Tools.dll.a %_mingw32_libdir/libSPIRV-Tools-diff.dll.a %_mingw32_libdir/libSPIRV-Tools-link.dll.a %_mingw32_libdir/libSPIRV-Tools-lint.dll.a %_mingw32_libdir/libSPIRV-Tools-opt.dll.a %_mingw32_libdir/libSPIRV-Tools-reduce.dll.a %_mingw32_libdir/libSPIRV-Tools-shared.dll.a %_mingw32_libdir/pkgconfig/SPIRV-Tools.pc %_mingw32_libdir/pkgconfig/SPIRV-Tools-shared.pc %_mingw32_includedir/spirv-tools/ %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