3 %bcond_without nvidia_settings # build the main package
4 %bcond_without libXNVCtrl # build libXNVCtrl for http://websvn.kde.org/trunk/kdenonbeta/nvidia/
6 Summary: Tool for configuring the NVIDIA driver
7 Summary(pl.UTF-8): Narzędzie do konfigurowania sterownika NVIDIA
13 Source0: ftp://download.nvidia.com/XFree86/nvidia-settings/%{name}-%{version}.tar.gz
14 # Source0-md5: 30782edbe54e99f678cb73e08cd67470
15 Patch0: %{name}-xlibs.patch
16 URL: ftp://download.nvidia.com/XFree86/nvidia-settings/
17 BuildRequires: OpenGL-devel
18 BuildRequires: xorg-lib-libX11-devel
19 BuildRequires: xorg-lib-libXext-devel
20 BuildRequires: xorg-lib-libXv-devel
21 BuildRequires: xorg-lib-libXxf86vm-devel
22 %if %{with nvidia_settings}
23 BuildRequires: gtk+2-devel
25 BuildRequires: pkgconfig
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The `nvidia-settings` utility is a tool for configuring the NVIDIA
31 Linux graphics driver. It operates by communicating with the NVIDIA X
32 driver, querying and updating state as appropriate. This communication
33 is done with the NV-CONTROL X extension.
35 Values such as brightness and gamma, XVideo attributes, temperature,
36 and OpenGL settings can be queried and configured via nvidia-settings.
38 When nvidia-settings starts, it reads the current settings from its
39 configuration file and sends those settings to the X server. Then, it
40 displays a graphical user interface (GUI) interface for configuring
41 the current settings. When nvidia-settings exits, it queries the
42 current settings from the X server and saves them to the configuration
45 %description -l pl.UTF-8
46 Narzędzie nvidia-settings służy do konfiguracji sterownika do kart
47 graficznych firmy NVIDIA. Działa komunikując się ze sterownikiem X
48 NVIDIA, sprawdzając i uaktualniając stan w razie potrzeby. Komunikacja
49 odbywa się poprzez rozszerzenie X NV-CONTROL.
51 Za pomocą nvidia-settings można odczytywać i zmieniać wartości takie
52 jak jasność i korekcja gamma, atrybuty XVideo, temperatura barw i
55 Przy uruchamianiu nvidia-settings odczytuje bieżące ustawienia z pliku
56 konfiguracyjnego i wysyła te ustawienia do serwera X. Następnie
57 wyświetla graficzny interfejs użytkownika (GUI) do konfiguracji
58 ustawień. Przy wyłączniu nvidia-settings odczytuje bieżące ustawienia
59 z serwera X i zapisuje je do pliku konfiguracyjnego.
61 %package -n libXNVCtrl-devel
62 Summary: libXNVCtrl development headers
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libXNVCtrl
64 Group: Development/Libraries
65 Requires: xorg-lib-libX11-devel
66 Requires: xorg-lib-libXext-devel
67 Requires: xorg-lib-libXxf86vm-devel
68 Obsoletes: libXNVCtrl-static
70 %description -n libXNVCtrl-devel
71 Library for accessing NV-CONTROL extension in NVIDIA's latest drivers.
73 %description -n libXNVCtrl-devel -l pl.UTF-8
74 Biblioteka do obsługi rozszerzenia NV-CONTROL z najnowszych
78 %setup -q -n %{name}-1.0
82 %if %{with libXNVCtrl}
87 CFLAGS="%{rpmcflags} -fPIC"
91 %if %{with nvidia_settings}
94 CFLAGS="%{rpmcflags}" \
95 LDFLAGS="%{rpmldflags}"
99 rm -rf $RPM_BUILD_ROOT
100 %if %{with nvidia_settings}
101 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
102 install nvidia-settings $RPM_BUILD_ROOT%{_bindir}
103 install doc/nvidia-settings.1 $RPM_BUILD_ROOT%{_mandir}/man1/nvidia-settings.1
106 %if %{with libXNVCtrl}
107 install -d $RPM_BUILD_ROOT%{_examplesdir}/libXNVCtrl-%{version} \
108 $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/NVCtrl}
109 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/libXNVCtrl-%{version}
110 install -p src/libXNVCtrl/NVCtrl.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl
111 install -p src/libXNVCtrl/NVCtrlLib.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl
112 install -p src/libXNVCtrl/libXNVCtrl.a $RPM_BUILD_ROOT%{_libdir}
116 rm -rf $RPM_BUILD_ROOT
118 %if %{with nvidia_settings}
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/%{name}
125 %if %{with libXNVCtrl}
126 %files -n libXNVCtrl-devel
127 %defattr(644,root,root,755)
128 %doc doc/{FRAMELOCK,NV-CONTROL-API}.txt
129 %dir %{_includedir}/NVCtrl
130 %{_includedir}/NVCtrl/NVCtrl.h
131 %{_includedir}/NVCtrl/NVCtrlLib.h
132 %{_libdir}/libXNVCtrl.a
133 %{_examplesdir}/libXNVCtrl-%{version}