244 lines
5.5 KiB
RPMSpec
244 lines
5.5 KiB
RPMSpec
Name: vkd3d
|
|
Version: 1.9
|
|
Release: 2%{?dist}
|
|
Summary: D3D12 to Vulkan translation library
|
|
|
|
License: LGPLv2+
|
|
URL: https://source.winehq.org/git/vkd3d.git
|
|
Source0: https://dl.winehq.org/vkd3d/source/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: make
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: gcc
|
|
BuildRequires: libxcb-devel
|
|
BuildRequires: spirv-headers-devel
|
|
BuildRequires: spirv-tools-devel
|
|
BuildRequires: vulkan-loader-devel
|
|
BuildRequires: xcb-util-devel
|
|
BuildRequires: xcb-util-keysyms-devel
|
|
BuildRequires: xcb-util-wm-devel
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
BuildRequires: mingw32-gcc
|
|
BuildRequires: mingw32-spirv-headers
|
|
BuildRequires: mingw32-spirv-tools
|
|
BuildRequires: mingw32-vulkan-headers
|
|
BuildRequires: mingw32-vulkan-loader
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
BuildRequires: mingw64-gcc
|
|
BuildRequires: mingw64-spirv-headers
|
|
BuildRequires: mingw64-spirv-tools
|
|
BuildRequires: mingw64-vulkan-headers
|
|
BuildRequires: mingw64-vulkan-loader
|
|
|
|
# Wine does not build on aarch64 due to clang requires
|
|
# vulkan is not available in RHEL 7+ for aarch64 either
|
|
%if 0%{?rhel} >= 7
|
|
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
%else
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
|
|
%endif
|
|
|
|
%description
|
|
The vkd3d project includes libraries, shaders, utilities, and demos for
|
|
translating D3D12 to Vulkan.
|
|
|
|
|
|
%package -n libvkd3d
|
|
Summary: D3D12 to Vulkan translation library
|
|
|
|
|
|
%description -n libvkd3d
|
|
libvkd3d is the main component of the vkd3d project. It's a 3D graphics
|
|
library built on top of Vulkan with an API very similar to Direct3D 12.
|
|
|
|
|
|
%package -n libvkd3d-devel
|
|
Summary: Development files for vkd3d
|
|
Requires: libvkd3d%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description -n libvkd3d-devel
|
|
Development files for vkd3d
|
|
|
|
|
|
%package -n vkd3d-compiler
|
|
Summary: Compiler tool for vkd3d
|
|
|
|
|
|
%description -n vkd3d-compiler
|
|
Compiler tool for vkd3d
|
|
|
|
|
|
%package -n libvkd3d-shader
|
|
Summary: Shader library for vkd3d
|
|
|
|
|
|
%description -n libvkd3d-shader
|
|
Shader library for vkd3d
|
|
|
|
|
|
%package -n libvkd3d-shader-devel
|
|
Summary: Development files for libvkd3d-shader
|
|
Requires: libvkd3d-devel%{?_isa} = %{version}-%{release}
|
|
Requires: libvkd3d-shader%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description -n libvkd3d-shader-devel
|
|
Development files for libvkd3d-shader
|
|
|
|
|
|
%package -n libvkd3d-utils
|
|
Summary: Utility library for vkd3d
|
|
|
|
|
|
%description -n libvkd3d-utils
|
|
libvkd3d-utils contains simple implementations of various functions which
|
|
might be useful for source ports of Direct3D 12 applications.
|
|
|
|
|
|
%package -n libvkd3d-utils-devel
|
|
Summary: Development files for libvkd3d-utils
|
|
Requires: libvkd3d-devel%{?_isa} = %{version}-%{release}
|
|
Requires: libvkd3d-utils%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description -n libvkd3d-utils-devel
|
|
Development files for libvkd3d-utils
|
|
|
|
|
|
%package -n mingw32-%{name}
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
|
|
%description -n mingw32-%{name}
|
|
%{summary}.
|
|
|
|
|
|
%package -n mingw64-%{name}
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
|
|
%description -n mingw64-%{name}
|
|
%{summary}.
|
|
|
|
|
|
%{?mingw_debug_package}
|
|
|
|
|
|
%prep
|
|
%autosetup
|
|
mkdir ../mingw-build
|
|
cp -rp . ../mingw-build
|
|
|
|
|
|
%build
|
|
%configure
|
|
%make_build
|
|
|
|
pushd ../mingw-build
|
|
export SONAME_LIBVULKAN=lvulkan-1
|
|
%mingw_configure
|
|
%mingw_make %{?_smp_mflags}
|
|
popd
|
|
|
|
|
|
%install
|
|
%make_install
|
|
pushd ../mingw-build
|
|
%mingw_make_install
|
|
%mingw_debug_install_post
|
|
popd
|
|
|
|
#Remove libtool files and static libraries
|
|
find %{buildroot} -regextype egrep -regex '.*\.a$|.*\.la$' ! -iname '*.dll.a' -delete
|
|
|
|
|
|
%files -n libvkd3d
|
|
%doc AUTHORS INSTALL README
|
|
%license COPYING LICENSE
|
|
%{_libdir}/libvkd3d.so.1
|
|
%{_libdir}/libvkd3d.so.1.*
|
|
|
|
|
|
%files -n libvkd3d-devel
|
|
%dir %{_includedir}/vkd3d
|
|
%{_includedir}/vkd3d/vkd3d.h
|
|
%{_includedir}/vkd3d/vkd3d_d3d12.h
|
|
%{_includedir}/vkd3d/vkd3d_d3d12sdklayers.h
|
|
%{_includedir}/vkd3d/vkd3d_d3d9types.h
|
|
%{_includedir}/vkd3d/vkd3d_d3dcommon.h
|
|
%{_includedir}/vkd3d/vkd3d_d3dcompiler.h
|
|
%{_includedir}/vkd3d/vkd3d_d3dx9shader.h
|
|
%{_includedir}/vkd3d/vkd3d_dxgibase.h
|
|
%{_includedir}/vkd3d/vkd3d_dxgiformat.h
|
|
%{_includedir}/vkd3d/vkd3d_types.h
|
|
%{_includedir}/vkd3d/vkd3d_windows.h
|
|
%{_libdir}/libvkd3d.so
|
|
%{_libdir}/pkgconfig/libvkd3d.pc
|
|
|
|
|
|
%files -n vkd3d-compiler
|
|
%{_bindir}/vkd3d-compiler
|
|
|
|
|
|
%files -n libvkd3d-shader
|
|
%license COPYING LICENSE
|
|
%{_libdir}/libvkd3d-shader.so.1
|
|
%{_libdir}/libvkd3d-shader.so.1.*
|
|
|
|
|
|
%files -n libvkd3d-shader-devel
|
|
%{_includedir}/vkd3d/vkd3d_shader.h
|
|
%{_libdir}/libvkd3d-shader.so
|
|
%{_libdir}/pkgconfig/libvkd3d-shader.pc
|
|
|
|
|
|
%files -n libvkd3d-utils
|
|
%{_libdir}/libvkd3d-utils.so.1
|
|
%{_libdir}/libvkd3d-utils.so.1.*
|
|
|
|
|
|
%files -n libvkd3d-utils-devel
|
|
%{_includedir}/vkd3d/vkd3d_utils.h
|
|
%{_libdir}/libvkd3d-utils.so
|
|
%{_libdir}/pkgconfig/libvkd3d-utils.pc
|
|
|
|
|
|
%files -n mingw32-%{name}
|
|
%license COPYING LICENSE
|
|
%{mingw32_bindir}/libvkd3d-1.dll
|
|
%{mingw32_bindir}/libvkd3d-shader-1.dll
|
|
%{mingw32_bindir}/libvkd3d-utils-1.dll
|
|
%{mingw32_includedir}/%{name}/
|
|
%{mingw32_bindir}/vkd3d-compiler.exe
|
|
%{mingw32_libdir}/pkgconfig/libvkd3d.pc
|
|
%{mingw32_libdir}/pkgconfig/libvkd3d-shader.pc
|
|
%{mingw32_libdir}/pkgconfig/libvkd3d-utils.pc
|
|
%{mingw32_libdir}/libvkd3d.dll.a
|
|
%{mingw32_libdir}/libvkd3d-shader.dll.a
|
|
%{mingw32_libdir}/libvkd3d-utils.dll.a
|
|
|
|
|
|
%files -n mingw64-%{name}
|
|
%license COPYING LICENSE
|
|
%{mingw64_bindir}/libvkd3d-1.dll
|
|
%{mingw64_bindir}/libvkd3d-shader-1.dll
|
|
%{mingw64_bindir}/libvkd3d-utils-1.dll
|
|
%{mingw64_bindir}/vkd3d-compiler.exe
|
|
%{mingw64_includedir}/%{name}/
|
|
%{mingw64_libdir}/pkgconfig/libvkd3d.pc
|
|
%{mingw64_libdir}/pkgconfig/libvkd3d-shader.pc
|
|
%{mingw64_libdir}/pkgconfig/libvkd3d-utils.pc
|
|
%{mingw64_libdir}/libvkd3d.dll.a
|
|
%{mingw64_libdir}/libvkd3d-shader.dll.a
|
|
%{mingw64_libdir}/libvkd3d-utils.dll.a
|
|
|
|
|
|
%changelog
|
|
* Fri May 17 2024 Brandon Lester <blester@oreonproject.org> - 1.9-2
|
|
- Rebuilt for Oreon
|