Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev:desktop
vulkan
vulkan.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vulkan.spec of Package vulkan
%define realname Vulkan-Loader %define realver 1.3.283 %define srcext tar.gz %define so_ver 1 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: vulkan-icd Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: Apache-2.0 Group: System/Libraries URL: https://github.com/KhronosGroup/Vulkan-Loader Summary: Vulkan loader # Install-time parameters Provides: vulkan-loader = %{version}-%{release} Provides: Vulkan-Loader = %{version}-%{release} Provides: lib%{realname}%{?so_ver} = %{version}-%{release} Provides: lib%{realname} = %{version}-%{release} Obsoletes: lib%{realname}%{?so_ver} < %{version}-%{release} # Build-time parameters BuildRequires: cmake pkg-config BuildRequires: gcc-c++ BuildRequires: vulkan-headers BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-cursor) BuildRoot: %{_tmppath}/%{name}-root Source0: https://github.com/KhronosGroup/Vulkan-Loader/archive/refs/tags/v%{realver}.%{srcext}#/%{realname}-%{realver}%{?extraver}.%{srcext} %description Khronos official ICD loader %package -n %{name}-devel Group: Development/Languages/C and C++ Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: vulkan-headers Provides: %{realname}-devel = %{version}-%{release} Provides: lib%{name}%{?so_ver}-devel Provides: lib%{name}-devel Provides: vulkan-loader-devel = %{version}-%{release} %description -n %{name}-devel Development files for %{name} # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{realver}%{?extraver} %build TOPDIR=$(pwd -P) mkdir build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="%{optflags} $(pkg-config --cflags wayland-client) %{?gcc_lto}" \ -DCMAKE_C_FLAGS_RELEASE="%{optflags} $(pkg-config --cflags wayland-client) %{?gcc_lto}" \ -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-Wl,--as-needed -Wl,--strip-all %{?gcc_lto}" \ -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-Wl,--as-needed -Wl,--strip-all -Wl,-shared %{?gcc_lto}" \ -DCMAKE_SKIP_RPATH=YES \ \ -DBUILD_TESTS=OFF \ -DBUILD_WSI_WAYLAND_SUPPORT=ON \ -DBUILD_WSI_XCB_SUPPORT=ON \ -DBUILD_WSI_XLIB_SUPPORT=ON %{__make} %{?_smp_mflags} %install %{__make} -C build install DESTDIR=%{buildroot} %{__install} -d -m755 %{buildroot}%{_sysconfdir}/vulkan/icd.d %{__install} -d -m755 %{buildroot}%{_sysconfdir}/vulkan/implicit_layer.d %{__install} -d -m755 %{buildroot}%{_datadir}/vulkan/icd.d %{__install} -d -m755 %{buildroot}%{_datadir}/vulkan/implicit_layer.d %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE.txt README.md %dir %{_sysconfdir}/vulkan/icd.d %dir %{_sysconfdir}/vulkan/implicit_layer.d %dir %{_sysconfdir}/vulkan %dir %{_datadir}/vulkan/icd.d %dir %{_datadir}/vulkan/implicit_layer.d %dir %{_datadir}/vulkan %{_libdir}/libvulkan.so.%{?so_ver}* # Development stuff %files -n %{name}-devel %defattr(-,root,root) %{_libdir}/libvulkan.so %{_libdir}/pkgconfig/vulkan.pc %dir %{_libdir}/cmake/VulkanLoader %dir %{_libdir}/cmake %{_libdir}/cmake/VulkanLoader/*.cmake %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %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