X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=nvidia-settings.spec;h=9f6e8e69831ace4bc0108a37518f1d23e869900e;hb=6090a9a41c0e326a63a918321acc6cbac1d629cf;hp=024cdf62fb3b1756fdee5858d0132ecbec55f087;hpb=9231e456a5337fd75bde9a283aecfff4a09eed17;p=packages%2Fnvidia-settings.git diff --git a/nvidia-settings.spec b/nvidia-settings.spec index 024cdf6..9f6e8e6 100644 --- a/nvidia-settings.spec +++ b/nvidia-settings.spec @@ -9,15 +9,16 @@ Summary: Tool for configuring the NVIDIA driver Summary(pl.UTF-8): Narzędzie do konfigurowania sterownika NVIDIA Name: nvidia-settings # keep the version in sync with xorg-driver-video-nvidia.spec -Version: 358.16 +Version: 515.76 Release: 1 License: GPL v2 (with MIT parts) Group: X11/Applications -Source0: ftp://download.nvidia.com/XFree86/nvidia-settings/%{name}-%{version}.tar.bz2 -# Source0-md5: a57d93b44254c52b356290e9653c72cc +Source0: https://download.nvidia.com/XFree86/nvidia-settings/%{name}-%{version}.tar.bz2 +# Source0-md5: 4d1b7bf13b934d53081807de4d5b89d4 Source1: %{name}.desktop Source2: %{name}.png Source3: %{name}-autostart.desktop +Patch0: wayland.patch URL: ftp://download.nvidia.com/XFree86/nvidia-settings/ BuildRequires: OpenGL-devel BuildRequires: libvdpau-devel >= 1.0 @@ -31,6 +32,7 @@ BuildRequires: gtk+2-devel >= 2.0 BuildRequires: jansson-devel >= 2.2 BuildRequires: m4 BuildRequires: pkgconfig +BuildRequires: wayland-devel %endif Requires: %{name}-guilib = %{version}-%{release} Requires: libvdpau >= 1.0 @@ -116,32 +118,34 @@ sterowników NVIDIA. %prep %setup -q +%patch0 -p1 %build %if %{with libXNVCtrl} +CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC" \ %{__make} -C src/libXNVCtrl \ NV_VERBOSE=1 \ CC="%{__cc}" \ - CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC" + OUTPUTDIR=. %endif %if %{with utils} +CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC" \ %{__make} -C samples \ NV_VERBOSE=1 \ CC="%{__cc}" \ OUTPUTDIR=$(pwd)/_out/utils \ - X_CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC" %endif %if %{with nvidia_settings} +CFLAGS="%{rpmcppflags} %{rpmcflags}" \ +LDFLAGS="%{rpmldflags}" \ %{__make} -C src \ %{!?with_gtk3:BUILD_GTK3LIB=} \ NV_USE_BUNDLED_LIBJANSSON=0 \ NV_VERBOSE=1 \ STRIP_CMD=: \ - CC="%{__cc}" \ - X_CFLAGS="%{rpmcppflags} %{rpmcflags}" \ - X_LDFLAGS="%{rpmldflags}" + CC="%{__cc}" %{__make} -C doc \ NV_VERBOSE=1 @@ -205,6 +209,9 @@ done %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %post gtk2 -p /sbin/ldconfig %postun gtk2 -p /sbin/ldconfig @@ -221,11 +228,11 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/nv-control-dvc %attr(755,root,root) %{_bindir}/nv-control-events %attr(755,root,root) %{_bindir}/nv-control-framelock -%attr(755,root,root) %{_bindir}/nv-control-gvi %attr(755,root,root) %{_bindir}/nv-control-info %attr(755,root,root) %{_bindir}/nv-control-targets %attr(755,root,root) %{_bindir}/nv-control-warpblend %endif +%attr(755,root,root) %{_libdir}/libnvidia-wayland-client.so.* %{_mandir}/man1/nvidia-settings.1* %{_desktopdir}/nvidia-settings.desktop %{_pixmapsdir}/nvidia-settings.png