%define debug_package %{nil} Name: libXNVCtrl Version: 535.113.01 Release: 1%{?dist} Summary: Library providing the NV-CONTROL API Group: System/Libraries License: GPL-2.0-or-later URL: https://download.nvidia.com/XFree86/nvidia-settings Source0: %{url}/nvidia-settings-%{version}.tar.bz2 Patch: libxnvctrl_so_0.patch BuildRequires: gcc BuildRequires: hostname BuildRequires: make BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) # Obsoletes older package provided in the NVIDIA CUDA repository Obsoletes: nvidia-%{name} < 3:%{version}-100 Provides: nvidia-%{name} = 3:%{version}-100 %description This packages contains the libXNVCtrl library from the nvidia-settings application. This library provides the NV-CONTROL API for communicating with the proprietary NVIDIA xorg driver. This package does not contain the nvidia-settings tool itself as that is included with the proprietary drivers themselves. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: libx11-devel%{?_isa} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 -n nvidia-settings-%{version} %build %make_build \ CC="%{__cc}" \ NV_VERBOSE=1 \ DO_STRIP=0 \ STRIP_CMD=/dev/true \ -C src/%{name} \ libXNVCtrl.so %install pushd src/%{name} install -m 0755 -d %{buildroot}%{_libdir}/ cp -Prp libXNVCtrl.so* %{buildroot}%{_libdir}/ install -m 0755 -d %{buildroot}%{_includedir}/NVCtrl/ install -p -m 0644 *.h %{buildroot}%{_includedir}/NVCtrl/ popd %files %license COPYING %{_libdir}/%{name}.so.0* %files devel %doc doc/NV-CONTROL-API.txt doc/FRAMELOCK.txt %{_includedir}/NVCtrl/ %{_libdir}/%{name}.so