commit fa895d244c8d82ca56ad9943b429a00b76b873a5c325447922f044d37352d4c2 Author: Stefan Dirsch Date: Thu May 19 07:39:40 2022 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/DirectX-Headers-1.600.10.tar.gz b/DirectX-Headers-1.600.10.tar.gz new file mode 100644 index 0000000..02662ff --- /dev/null +++ b/DirectX-Headers-1.600.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e3814ef45aef6083920e19546a307b3292dca1f7bca8af2a67c72c6df4c7e33 +size 327299 diff --git a/DirectX-Headers-rpmlintrc b/DirectX-Headers-rpmlintrc new file mode 100644 index 0000000..2fa2028 --- /dev/null +++ b/DirectX-Headers-rpmlintrc @@ -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"); diff --git a/DirectX-Headers.changes b/DirectX-Headers.changes new file mode 100644 index 0000000..97bdc7e --- /dev/null +++ b/DirectX-Headers.changes @@ -0,0 +1,64 @@ +------------------------------------------------------------------- +Thu May 12 15:36:35 UTC 2022 - Scott Bradnick + +- Renamed project/file references from 'directx-headers' to + 'DirectX-Headers' (as is upstream). + +------------------------------------------------------------------- +Thu Apr 28 20:21:30 UTC 2022 - Scott Bradnick + +- Update to upstream version 1.600.10 + +------------------------------------------------------------------- +Thu Nov 11 19:36:30 UTC 2021 - Scott Bradnick + +* 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 + +- Adding rpmlintrc for addFilter 'lto-no-text-in-archive'. + +------------------------------------------------------------------- +Wed Aug 25 21:45:20 UTC 2021 - Scott Bradnick + +- Fixing file conflict for /usr/lib64/pkgconfig. + +------------------------------------------------------------------- +Wed Aug 25 21:37:49 UTC 2021 - Scott Bradnick + +- Apparently pkgconf doesn't like /usr/local by default. + +------------------------------------------------------------------- +Wed Aug 25 21:25:34 UTC 2021 - Scott Bradnick + +- Replacing hardcoded path in 'rm .../libDirectX-Guids.a' ... + +------------------------------------------------------------------- +Wed Aug 25 21:18:11 UTC 2021 - Scott Bradnick + +- Seems to use /usr/local for generated .pc file vs. /usr + +------------------------------------------------------------------- +Wed Aug 25 20:15:52 UTC 2021 - Scott Bradnick + +- Taking out 'libDirectX-Guids.a' and trying again. + +------------------------------------------------------------------- +Wed Aug 25 20:03:16 UTC 2021 - Scott Bradnick + +- Trying to get 'libDirectX-Guids.a' added to resulting .rpm file. + +------------------------------------------------------------------- +Wed Aug 25 15:50:16 UTC 2021 - Scott Bradnick + +- Some changes to get missing files added. + +------------------------------------------------------------------- +Mon Aug 23 22:19:05 UTC 2021 - Scott Bradnick + +- Initial package version as 'directx-headers'. diff --git a/DirectX-Headers.spec b/DirectX-Headers.spec new file mode 100644 index 0000000..cb5016c --- /dev/null +++ b/DirectX-Headers.spec @@ -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 +