File vkd3d.spec of Package vkd3d
#
# spec file for package vkd3d
#
# 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/
#
%define major 1
Name: vkd3d
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: spirv-headers
# BuildRequires: spirv-tools
# BuildRequires: libX11-devel
# BuildRequires: wine-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: pkgconfig(SPIRV-Tools)
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-event)
BuildRequires: pkgconfig(xcb-icccm)
# for the PE DLLs
%ifarch x86_64
BuildRequires: mingw64-cross-gcc
%endif
%ifarch %ix86
BuildRequires: mingw32-cross-gcc
%endif
URL: https://winehq.org/
Summary: Direct3D 12 to Vulkan translation library
License: LGPL-2.1-or-later
Group: System/X11/Utilities
Version: 1.8
Release: 0
Source0: https://dl.winehq.org/vkd3d/source/vkd3d-%version.tar.xz
Source1: https://dl.winehq.org/vkd3d/source/vkd3d-%version.tar.xz.sign
Source2: %name.keyring
Source3: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package -n libvkd3d%major
Summary: Direct3D 12 to Vulkan translation library
Group: System/Libraries
%package -n libvkd3d-utils%major
Summary: Direct3D 12 to Vulkan translation library utilities
Group: System/Libraries
%package -n libvkd3d-shader%major
Summary: Direct3D 12 to Vulkan translation shader library
Group: System/Libraries
%package devel
Summary: Development headers for the Direct3D 12 to Vulkan translation library
Group: Development/Libraries/X11
Requires: libvkd3d%major = %version
Requires: libvkd3d-utils%major = %version
%description
This is a Direct3D 12 to Vulkan translation library for use by e.g. Wine.
%description -n libvkd3d%major
This is a Direct3D 12 to Vulkan translation library for use by e.g. Wine.
%description -n libvkd3d-utils%major
This is a Direct3D 12 to Vulkan translation utilities library for use by e.g. Wine.
%description -n libvkd3d-shader%major
This is a Direct3D 12 to Vulkan shader library for use by e.g. Wine.
%description devel
This is a Direct3D 12 to Vulkan translation library for use by e.g. Wine.
These are its development libraries and headers.
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-tests \
--with-xcb \
--with-spirv-tools
make %{?_smp_mflags}
# %check
# make check
%install
%make_install
rm %buildroot/%_libdir/*.la
%fdupes %buildroot/%_prefix
%files -n libvkd3d%{major}
%doc README ANNOUNCE AUTHORS
%license COPYING LICENSE
%defattr(-,root,root)
%_libdir/libvkd3d.so.%{major}*
%files -n libvkd3d-utils%{major}
%license COPYING LICENSE
%defattr(-,root,root)
%_libdir/libvkd3d-utils.so.%{major}*
%files -n libvkd3d-shader%{major}
%license COPYING LICENSE
%defattr(-,root,root)
%_libdir/libvkd3d-shader.so.%{major}*
%files devel
%defattr(-,root,root)
%license COPYING LICENSE
%doc AUTHORS README ANNOUNCE
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/libvkd3d.pc
%_libdir/pkgconfig/libvkd3d-shader.pc
%_libdir/pkgconfig/libvkd3d-utils.pc
%_bindir/vkd3d-compiler
%post -n libvkd3d%{major} -p /sbin/ldconfig
%postun -n libvkd3d%{major} -p /sbin/ldconfig
%post -n libvkd3d-utils%{major} -p /sbin/ldconfig
%postun -n libvkd3d-utils%{major} -p /sbin/ldconfig
%post -n libvkd3d-shader%{major} -p /sbin/ldconfig
%postun -n libvkd3d-shader%{major} -p /sbin/ldconfig
%changelog