A new user interface for you! Read more...

File dxvk.spec of Package dxvk

#
# spec file for package dxvk
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           dxvk
Version:        1
Release:        0
Summary:        Vulkan-based D3D11 implementation for Linux / Wine
License:        zlib-acknowledgement
Group:          System/Emulators/PC
Url:            https://github.com/doitsujin/dxvk
Source0:        %{name}-%{version}.tar.gz

BuildRequires:  wine
%ifarch x86_64
BuildRequires:  wine-32bit
%endif
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  glslang-devel
%ifarch x86_64
BuildRequires:  mingw64-cross-cpp
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-headers

BuildRequires:  mingw32-cross-cpp
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-headers
%else
BuildRequires:  mingw32-cross-cpp
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-headers
%endif

##asExclusiveArch:  %{ix86} x86_64

%description
Provides a Vulkan-based implementation of DXGI and D3D11 in order to run 3D applications on Linux using Wine

%prep
%setup -q

#sed -i 's|dlls_dir=.*|dlls_dir="%{_libexecdir}/%{name}/%{_lib}"|g' utils/setup_dxvk.sh.in
#sed -i 's|dxvk64_dir=.*|dxvk64_dir="%{_libexecdir}/%{name}/%{_lib}"|g' utils/setup_dxvk.verb

%build
./package-release.sh $(arch | tail -c 3 | sed 's|86|32|g') ../build --no-package

%install
pushd ../build/dxvk-$(arch | tail -c 3 | sed 's|86|32|g')
mkdir -p %{buildroot}%{_prefix}/share/%{name}
#install -Dm644 setup_dxvk.verb -t %{buildroot}%{_prefix}/share/%{name}
%ifarch x86_64
install -Dm644 x64/* -t %{buildroot}%{_prefix}/share/%{name}/x64
%endif
install -Dm644 x32/* -t %{buildroot}%{_prefix}/share/%{name}/x32
popd


%files
%defattr(644,root,root)
%doc README.md
%license LICENSE

%dir %{_prefix}/share/%{name}
%attr(755, root, root) %{_prefix}/share/%{name}
%attr(755, root, root) %{_prefix}/share/%{name}/*


%changelog