2018-12-15 00:22:44 +01:00
|
|
|
#
|
|
|
|
# spec file for package shaderc
|
|
|
|
#
|
2023-03-29 12:07:30 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-12-15 00:22:44 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-03-28 23:15:00 +02:00
|
|
|
# Remember to bump in baselibs.conf
|
2018-12-15 00:22:44 +01:00
|
|
|
%define lname libshaderc_shared1
|
2022-01-30 17:35:29 +01:00
|
|
|
Name: shaderc
|
2023-10-22 04:05:01 +02:00
|
|
|
Version: 2023.7
|
2018-12-15 00:22:44 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A collection of tools, libraries and tests for shader compilation
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Other
|
2019-11-19 10:03:29 +01:00
|
|
|
URL: https://github.com/google/shaderc
|
2020-02-17 13:59:38 +01:00
|
|
|
#Git-Clone: https://github.com/google/shaderc
|
2022-01-30 17:55:13 +01:00
|
|
|
Source: https://github.com/google/shaderc/archive/v%version.tar.gz
|
2022-03-28 23:15:00 +02:00
|
|
|
Source99: baselibs.conf
|
2018-12-15 00:22:44 +01:00
|
|
|
Patch1: 0001-Use-system-third-party-libs.patch
|
|
|
|
BuildRequires: c++_compiler
|
2022-01-30 17:35:29 +01:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
2023-09-07 01:03:12 +02:00
|
|
|
BuildRequires: glslang-devel >= 12.3.1+sdk261
|
2023-03-29 12:12:47 +02:00
|
|
|
BuildRequires: glslang-nonstd-devel
|
2023-09-07 01:03:12 +02:00
|
|
|
BuildRequires: spirv-headers >= 1.6.1~sdk261
|
|
|
|
BuildRequires: spirv-tools-devel >= 2023.4~rc2
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A collection of tools, libraries and tests for shader compilation.
|
2023-05-29 15:37:15 +02:00
|
|
|
Included are:
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
* glslc, a command line compiler for GLSL/HLSL to SPIR-V, and
|
|
|
|
* libshaderc, a library API for doing the same.
|
|
|
|
|
|
|
|
Shaderc wraps around core functionality in glslang and SPIRV-Tools.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: SPIR-V shader compiler library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
A compiler library for GLSL/HLSL to SPIR-V.
|
|
|
|
|
|
|
|
Shaderc wraps around core functionality in glslang and SPIRV-Tools
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for the shaderc library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A compiler library for GLSL/HLSL to SPIR-V.
|
|
|
|
|
|
|
|
Shaderc wraps around core functionality in glslang and SPIRV-Tools
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
2023-03-29 12:07:30 +02:00
|
|
|
chmod a+x utils/update_build_version.sh
|
2020-08-17 13:50:09 +02:00
|
|
|
echo "\"%version\"" >glslc/src/build-version.inc
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DSHADERC_SKIP_TESTS=ON
|
2021-06-24 13:01:18 +02:00
|
|
|
%cmake_build
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2022-11-25 11:22:52 +01:00
|
|
|
# Remove static libraries and their pkgconfig files
|
2018-12-15 00:22:44 +01:00
|
|
|
rm %buildroot/%_libdir/*.a
|
2022-11-25 11:22:52 +01:00
|
|
|
rm %buildroot/%_libdir/pkgconfig/shaderc_{static,combined}.pc
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2019-01-25 08:10:07 +01:00
|
|
|
%license LICENSE
|
2018-12-15 00:22:44 +01:00
|
|
|
%_bindir/glslc
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libshaderc_shared.so.1*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/shaderc/
|
|
|
|
%_libdir/libshaderc_shared.so
|
2022-11-25 11:22:52 +01:00
|
|
|
%_libdir/pkgconfig/shaderc.pc
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
%changelog
|