Пакет directx-headers: Specfile

%def_disable test

Name: directx-headers
Version: 1.610.0
Release: alt1

Summary: Official DirectX headers available under an open source license
Group: Development/C++
License: MIT

URL: https://github.com/microsoft/DirectX-Headers
Packager: L.A. Kostis <lakostis@altlinux.org>

Source: %name-%version.tar

BuildRequires(pre): meson
BuildRequires: gcc-c++

%description
This package provides the official Direct3D 12 headers. These headers are made
available under the MIT license rather than the traditional Windows SDK
license.

Additionally, this package provides several helpers for using these headers.

%prep
%setup -n %name-%version

%build
%meson \
%if_disabled test
 -D build-test=false
%else
 %nil
%endif
%meson_build -v
%meson_install

%files
%doc *.md LICENSE
%dir %_includedir/directx
%dir %_includedir/dxguids
%dir %_includedir/wsl
%_includedir/directx/*
%_includedir/dxguids/*
%_includedir/wsl/*
%_libdir/*.a
%_pkgconfigdir/*.pc

%changelog
* Sun Apr 16 2023 L.A. Kostis <lakostis@altlinux.ru> 1.610.0-alt1
- Updated to v1.610.0.

* Tue Mar 21 2023 L.A. Kostis <lakostis@altlinux.ru> 1.608.2-alt1.b
- Updated to v1.608.2b.

* Fri Feb 24 2023 L.A. Kostis <lakostis@altlinux.ru> 1.608.2-alt1
- Initial build for ALTLinux.