Accepting request 977814 from home:sbradnick
Prerequisite for incorporating 'd3d12' as a part of 'gallium-drivers' in Mesa for WSLg. OBS-URL: https://build.opensuse.org/request/show/977814 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/DirectX-Headers?expand=0&rev=1
This commit is contained in:
commit
fa895d244c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
DirectX-Headers-1.600.10.tar.gz
Normal file
3
DirectX-Headers-1.600.10.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7e3814ef45aef6083920e19546a307b3292dca1f7bca8af2a67c72c6df4c7e33
|
||||
size 327299
|
4
DirectX-Headers-rpmlintrc
Normal file
4
DirectX-Headers-rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
||||
# This allows '/usr/lib64/libDirectX-Guids.a' to be included:
|
||||
addFilter("lto-no-text-in-archive .*");
|
||||
addFilter("devel-file-in-non-devel-package .*");
|
||||
addFilter("files-duplicate /usr/include/wsl/stubs/rpc.h /usr/include/wsl/stubs/OAIdl.h:/usr/include/wsl/stubs/OCIdl.h");
|
64
DirectX-Headers.changes
Normal file
64
DirectX-Headers.changes
Normal file
@ -0,0 +1,64 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 12 15:36:35 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Renamed project/file references from 'directx-headers' to
|
||||
'DirectX-Headers' (as is upstream).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 28 20:21:30 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Update to upstream version 1.600.10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 11 19:36:30 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
* Prepping for inclusion in X11:XOrg project:
|
||||
- General cleanup of .spec file
|
||||
- Adjusting to use proper naming of rpmlintrc.
|
||||
- Pre-0.57.0 version of 'meson install' does not support
|
||||
'--destdir', using ENV var for all but TW.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 22:47:50 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Adding rpmlintrc for addFilter 'lto-no-text-in-archive'.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 21:45:20 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Fixing file conflict for /usr/lib64/pkgconfig.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 21:37:49 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Apparently pkgconf doesn't like /usr/local by default.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 21:25:34 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Replacing hardcoded path in 'rm .../libDirectX-Guids.a' ...
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 21:18:11 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Seems to use /usr/local for generated .pc file vs. /usr
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 20:15:52 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Taking out 'libDirectX-Guids.a' and trying again.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 20:03:16 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Trying to get 'libDirectX-Guids.a' added to resulting .rpm file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 15:50:16 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Some changes to get missing files added.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 23 22:19:05 UTC 2021 - Scott Bradnick <scott.bradnick@suse.com>
|
||||
|
||||
- Initial package version as 'directx-headers'.
|
58
DirectX-Headers.spec
Normal file
58
DirectX-Headers.spec
Normal file
@ -0,0 +1,58 @@
|
||||
#
|
||||
# spec file for package DirectX-Headers
|
||||
#
|
||||
# Copyright (c) 2022 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/
|
||||
#
|
||||
Name: DirectX-Headers
|
||||
Version: 1.600.10
|
||||
Release: 0
|
||||
Summary: DirectX Headers for Mesa
|
||||
License: MIT
|
||||
URL: https://github.com/microsoft/DirectX-Headers
|
||||
### osc service runall download_files
|
||||
Source: https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
#####
|
||||
Source1: %{name}-rpmlintrc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: meson
|
||||
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
%description
|
||||
This repository hosts the official Direct3D 12 headers. These headers are made available under the MIT license rather than the traditional Windows SDK license. Additionally, this repository hosts several helpers for using these headers. Make sure that you visit the DirectX Landing Page for more resources for DirectX developers.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
CXXFLAGS="$CXXFLAGS -fno-lto" meson . build -Dbuild-test=false --prefix /usr
|
||||
ninja -C build
|
||||
|
||||
%install
|
||||
%if 0%{?suse_version} > 1500
|
||||
meson install -C build --destdir "%{buildroot}"
|
||||
%else
|
||||
DESTDIR="%{buildroot}" meson install -C build
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir /usr/include/directx
|
||||
%dir /usr/include/dxguids
|
||||
%dir /usr/include/wsl
|
||||
/usr/include/directx/*
|
||||
/usr/include/dxguids/*
|
||||
/usr/include/wsl/*
|
||||
/usr/lib64/pkgconfig/DirectX-Headers.pc
|
||||
/usr/lib64/libDirectX-Guids.a
|
||||
|
Loading…
Reference in New Issue
Block a user