DirectX-Headers/DirectX-Headers.spec
Scott Bradnick 689e9fe13d - Removing version-fixup.diff as it was fixed upstream
- Update to 1.614.1:
  * Several warning fixes and a DML update on top of v1.614.0. Importantly,
    the CMake/meson build systems actually report a v1.614 version number.
    That change was missed from the previous release. No new D3D APIs are
    present relative to v1.614.0.

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/DirectX-Headers?expand=0&rev=28
2024-09-09 19:26:55 +00:00

62 lines
1.9 KiB
RPMSpec

#
# spec file for package DirectX-Headers
#
# Copyright (c) 2024 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.614.1
Release: 0
Summary: DirectX Headers for Mesa
License: MIT
URL: https://github.com/microsoft/DirectX-Headers
# osc service runall download_files
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
#Patch0: version-fixup.diff
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: meson
ExclusiveArch: %{ix86} x86_64
%description
This package contains the official Direct3D 12 headers.
These headers are made available under the MIT license rather than the traditional Windows SDK license.
Additionally, this package hosts several helpers for using these headers.
Make sure that you visit the DirectX Landing Page for more resources for DirectX developers.
%prep
%autosetup
%build
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
%meson -Dbuild-test=false
%meson_build
%install
%meson_install
%fdupes -s %{buildroot}
%files
%license LICENSE
%{_includedir}/directx
%{_includedir}/dxguids
%{_includedir}/wsl
%{_libdir}/pkgconfig/DirectX-Headers.pc
%{_libdir}/libDirectX-Guids.a
%{_libdir}/libd3dx12-format-properties.a
%changelog