forked from pool/spirv-tools
factory review for r17 was rejected (sr 561768)
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-tools?expand=0&rev=18
This commit is contained in:
parent
83124a36b3
commit
87796b7e6b
@ -1,10 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Jan 4 15:47:38 UTC 2018 - tchvatal@suse.com
|
|
||||||
|
|
||||||
- Make sure to build just with python3
|
|
||||||
- Remove needles buildroot variable and default defattrs
|
|
||||||
- Use autopatch to apply patches
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 17 13:32:51 UTC 2017 - jengelh@inai.de
|
Fri Nov 17 13:32:51 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package spirv-tools
|
# spec file for package spirv-tools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -35,8 +35,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: cmake >= 2.8.12
|
BuildRequires: cmake >= 2.8.12
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: python3-base
|
BuildRequires: python
|
||||||
BuildRequires: python3-xml
|
BuildRequires: python-xml
|
||||||
|
BuildRequires: python3
|
||||||
BuildRequires: spirv-headers >= 1.2
|
BuildRequires: spirv-headers >= 1.2
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,29 +67,33 @@ integration into other code bases directly.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%autopatch -p1
|
%patch -P 1 -P 2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -D"SPIRV-Headers_SOURCE_DIR=%_prefix" -DSPIRV_BUILD_COMPRESSION=BOOL:ON
|
%cmake -D"SPIRV-Headers_SOURCE_DIR=%_prefix" -DSPIRV_BUILD_COMPRESSION=BOOL:ON
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
b="%buildroot"
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
%_bindir/spirv-*
|
%_bindir/spirv-*
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
|
%defattr(-,root,root)
|
||||||
%_libdir/libSPIRV-Tools.so.*
|
%_libdir/libSPIRV-Tools.so.*
|
||||||
%_libdir/libSPIRV-Tools-comp.so.*
|
%_libdir/libSPIRV-Tools-comp.so.*
|
||||||
%_libdir/libSPIRV-Tools-link.so.*
|
%_libdir/libSPIRV-Tools-link.so.*
|
||||||
%_libdir/libSPIRV-Tools-opt.so.*
|
%_libdir/libSPIRV-Tools-opt.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
%_libdir/libSPIRV-Tools.so
|
%_libdir/libSPIRV-Tools.so
|
||||||
%_libdir/libSPIRV-Tools-comp.so
|
%_libdir/libSPIRV-Tools-comp.so
|
||||||
%_libdir/libSPIRV-Tools-link.so
|
%_libdir/libSPIRV-Tools-link.so
|
||||||
|
Loading…
Reference in New Issue
Block a user