Accepting request 668465 from home:Akaricchi
* Fix build version substitution - shows up in "glslc --version" * Fix a minor spec warning OBS-URL: https://build.opensuse.org/request/show/668465 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/shaderc?expand=0&rev=3
This commit is contained in:
parent
e5181c443b
commit
2d0233ff67
12
shaderc.spec
12
shaderc.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package shaderc
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,10 +28,10 @@ Source: %name-%version.tar.xz
|
||||
Patch1: 0001-Use-system-third-party-libs.patch
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: cmake
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: spirv-tools-devel >= 2017.0.g103
|
||||
BuildRequires: spirv-headers >= 1.2
|
||||
BuildRequires: glslang-devel >= 3.0.g1685
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: spirv-headers >= 1.2
|
||||
BuildRequires: spirv-tools-devel >= 2017.0.g103
|
||||
|
||||
%description
|
||||
A collection of tools, libraries and tests for shader compilation.
|
||||
@ -63,7 +63,7 @@ Shaderc wraps around core functionality in glslang and SPIRV-Tools
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
echo '"${version}"' >glslc/src/build-version.inc
|
||||
echo "\"%{version}\"" > glslc/src/build-version.inc
|
||||
|
||||
%build
|
||||
%cmake -DSHADERC_SKIP_TESTS=ON
|
||||
@ -77,7 +77,7 @@ rm %buildroot/%_libdir/*.a
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%_bindir/glslc
|
||||
|
||||
%files -n %lname
|
||||
|
Loading…
Reference in New Issue
Block a user