diff --git a/README.md b/README.md index f22430f..e0c4a97 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # directx-headers +Official DirectX headers available under an open source license. + diff --git a/directx-headers.spec b/directx-headers.spec new file mode 100644 index 0000000..308febf --- /dev/null +++ b/directx-headers.spec @@ -0,0 +1,66 @@ +Name: directx-headers +Version: 1.600.10 +Release: 1mamba +Summary: Official DirectX headers available under an open source license +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://devblogs.microsoft.com/directx/ +Source: https://github.com/microsoft/DirectX-Headers.git/v%{version}/DirectX-Headers-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +Official DirectX headers available under an open source license. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: pkg-config + +%description devel +Official DirectX headers available under an open source license. +This package contains header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q -n DirectX-Headers-%{version} + +%build +# LTO breaks mesa... +export CXXFLAGS="%{optflags} -fno-lto" + +%meson \ + -Dbuild-test=false + +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/directx +%{_includedir}/directx/* +%dir %{_includedir}/dxguids +%{_includedir}/dxguids/* +%dir %{_includedir}/wsl +%dir %{_includedir}/wsl/stubs +%{_includedir}/wsl/stubs/*.h +%dir %{_includedir}/wsl/stubs/wrl +%{_includedir}/wsl/stubs/wrl/*.h +%{_includedir}/wsl/*.h +%{_libdir}/libDirectX-Guids.a +%{_libdir}/pkgconfig/DirectX-Headers.pc +%doc LICENSE + +%changelog +* Wed Apr 20 2022 Silvan Calarco 1.600.10-1mamba +- package created using the webbuild interface