Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
amdvlk
amdvlk.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File amdvlk.spec of Package amdvlk
%define realname amdvlk %define srcext tar.bz2 %bcond_without ninja # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} %if 0%{?rhel} == 8 %define python3_pkg platform-python %define python3 %{_libexecdir}/platform-python %else %define python3_pkg python3 %define python3 %{_bindir}/python3 %endif # Common info Name: %{realname} Version: 0 Release: %{?extraver:0.}1%{?dist} License: MIT Group: System/Libraries URL: https://github.com/GPUOpen-Drivers/AMDVLK Summary: AMD Open Source Driver For Vulkan # Build-time parameters # CMake >= 3.16 have no support for deprecated "target_vs_filters" BuildRequires: cmake >= 3.5 BuildRequires: pkg-config BuildRequires: gcc-c++ %if %{with ninja} BuildRequires: ninja %endif # PAL BuildRequires: libX11-devel BuildRequires: libxcb-devel BuildRequires: xorg-x11-proto-devel BuildRequires: libxshmfence-devel BuildRequires: libXrandr-devel BuildRequires: openssl-devel BuildRequires: pkgconfig(dri2proto) # XGL BuildRequires: pkgconfig(wayland-client) # LLPC BuildRequires: llvm-devel BuildRoot: %{_tmppath}/%{name}-root Source0: %{realname}-%{version}%{?extraver}.%{srcext} Source1: xgl.%{srcext} Source2: pal.%{srcext} Source3: llpc.%{srcext} Source4: gpurt.%{srcext} Source5: llvm-project.%{srcext} Source6: MetroHash.%{srcext} Source7: CWPack.%{srcext} %description The AMD Open Source Driver for Vulkan® is an open-source Vulkan driver for Radeon™ graphics adapters on Linux®. It is built on top of AMD's Platform Abstraction Library (PAL), a shared component that is designed to encapsulate certain hardware and OS-specific programming details for many of AMD's 3D and compute drivers. Leveraging PAL can help provide a consistent experience across platforms, including support for recently released GPUs and compatibility with AMD developer tools. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version}%{?extraver} -a1 -a2 -a3 -a4 -a5 -a6 -a7 %build _CFLAGS='%{optflags} %{?gcc_lto} -Wno-error=deprecated-copy' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto}' _CMAKE_ARGS=( -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_C_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_VERBOSE_MAKEFILE=YES ) # XGL %{__mkdir} build cd build cmake ../xgl \ "${_CMAKE_ARGS[@]}" \ \ %if %{with ninja} -G Ninja \ %endif -DICD_BUILD_VIDEO=YES \ -DXGL_LLVM_UPSTREAM=YES \ -DBUILD_WAYLAND_SUPPORT=YES \ -DBUILD_XLIB_XRANDR_SUPPORT=YES \ \ -DPYTHON_EXECUTABLE=%{python3} \ -DPython3_EXECUTABLE=%{python3} %if %{with ninja} ninja -v %{?_smp_mflags} %else %{__make} %{?_smp_mflags} %endif %install %{__install} -D -m0755 build/icd/amdvlk64.so %{buildroot}%{_libdir}/amdvlk64.so %{__install} -D -m0644 build/icd/amd_icd%{__isa_bits}.json %{buildroot}%{_datadir}/vulkan/icd.d/amd_icd.%{_build_arch}.json %files %defattr(-,root,root) %{_libdir}/amdvlk64.so %dir %{_datadir}/vulkan/icd.d %dir %{_datadir}/vulkan %{_datadir}/vulkan/icd.d/*.json %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor