This repository was archived by the owner on Jan 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibdxvk.spec
78 lines (58 loc) · 1.42 KB
/
libdxvk.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%undefine _hardened_build
Name: libdxvk
Version: 0.96
Release: 8%{?dist}
Summary: A Vulkan-based translation layer for Direct3D 10/11
License: zlib
Url: https://github.com/doitsujin/dxvk
Source0: dxvk-%{version}.tar.gz
Source1: dxvk-native-headers-master.zip
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: ninja-build
BuildRequires: wine-devel
BuildRequires: glslang
BuildRequires: vulkan-devel
%if 0%{?rhel}
BuildRequires: devtoolset-8-gcc-c++
BuildRequires: devtoolset-8-libstdc++-devel
%endif
Requires: vulkan
%description
A Vulkan-based translation layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine.
%package devel
Version: %{version}
Release: %{release}
Summary: Development files for DXVK
License: zlib
Requires: libdxvk%{_isa} = %{version}-%{release}
%description devel
%{summary}.
%prep
%setup -q -n dxvk-%{version}
mkdir include/native
unzip -j %{SOURCE1} -d include/native
%build
%if 0%{?rhel}
. /opt/rh/devtoolset-8/enable
%define _vpath_srcdir .
%define _vpath_builddir ./build
%endif
%meson
%meson_build
%install
%if 0%{?rhel}
. /opt/rh/devtoolset-8/enable
%endif
%meson_install
%files
%defattr(-,root,root)
%doc LICENSE README.md RELEASE
%{_libdir}/*.so
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/libdxvk.pc
%changelog
* Thu Feb 21 2019 Leonid Maksymchuk <leonmaxx@4menteam.com>
- initial packaging