Stefan Dirsch
64a31efcc9
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/DirectX-Headers?expand=0&rev=4
61 lines
2.0 KiB
RPMSpec
61 lines
2.0 KiB
RPMSpec
#
|
|
# 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
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
%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/*
|
|
%{_libdir}/pkgconfig/DirectX-Headers.pc
|
|
%{_libdir}/libDirectX-Guids.a
|
|
|
|
%changelog
|