]> git.pld-linux.org Git - packages/nvidia-settings.git/blame - nvidia-settings.spec
up to 319.49 (sync with xorg-driver-video-nvidia)
[packages/nvidia-settings.git] / nvidia-settings.spec
CommitLineData
8594399f
JB
1#
2# Conditional build:
5985f375 3%bcond_without nvidia_settings # build the main package
2dece988 4%bcond_without utils # build utils from samples dir
b27b2c83 5%bcond_without libXNVCtrl # build libXNVCtrl for http://websvn.kde.org/trunk/kdenonbeta/nvidia/
59b8d072 6
b27b2c83 7Summary: Tool for configuring the NVIDIA driver
b7eb71c7 8Summary(pl.UTF-8): Narzędzie do konfigurowania sterownika NVIDIA
b27b2c83 9Name: nvidia-settings
702ac7b4 10# keep the version in sync with xorg-driver-video-nvidia.spec
987f172e 11Version: 319.49
b83fa72b 12Release: 1
b27b2c83
ER
13License: GPL
14Group: X11
b83fa72b 15Source0: ftp://download.nvidia.com/XFree86/nvidia-settings/%{name}-%{version}.tar.bz2
987f172e 16# Source0-md5: e62f9da501aec646c2ab1a7d0144d26f
1851a39d
ER
17Source1: %{name}.desktop
18Source2: %{name}.png
a604bf49 19Source3: %{name}-autostart.desktop
5fa39bf8 20Patch0: %{name}-wsecurity.patch
8594399f 21URL: ftp://download.nvidia.com/XFree86/nvidia-settings/
ebe7e748 22BuildRequires: OpenGL-devel
987f172e 23BuildRequires: libvdpau-devel
fe2f88cc
JR
24BuildRequires: xorg-lib-libX11-devel
25BuildRequires: xorg-lib-libXext-devel
ebe7e748 26BuildRequires: xorg-lib-libXv-devel
765f7fba 27BuildRequires: xorg-lib-libXxf86vm-devel
b27b2c83 28%if %{with nvidia_settings}
4a9d0e43 29BuildRequires: gtk+2-devel
728ab98a 30BuildRequires: m4
4a9d0e43 31BuildRequires: pkgconfig
b27b2c83
ER
32%endif
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
e7c6a80e
ER
36The nvidia-settings utility is a tool for configuring the NVIDIA Linux
37graphics driver. It operates by communicating with the NVIDIA X
b27b2c83
ER
38driver, querying and updating state as appropriate. This communication
39is done with the NV-CONTROL X extension.
40
41Values such as brightness and gamma, XVideo attributes, temperature,
42and OpenGL settings can be queried and configured via nvidia-settings.
43
44When nvidia-settings starts, it reads the current settings from its
45configuration file and sends those settings to the X server. Then, it
46displays a graphical user interface (GUI) interface for configuring
47the current settings. When nvidia-settings exits, it queries the
48current settings from the X server and saves them to the configuration
49file.
50
8798252c
JR
51%description -l pl.UTF-8
52Narzędzie nvidia-settings służy do konfiguracji sterownika do kart
53graficznych firmy NVIDIA. Działa komunikując się ze sterownikiem X
54NVIDIA, sprawdzając i uaktualniając stan w razie potrzeby. Komunikacja
55odbywa się poprzez rozszerzenie X NV-CONTROL.
8594399f 56
8798252c
JR
57Za pomocą nvidia-settings można odczytywać i zmieniać wartości takie
58jak jasność i korekcja gamma, atrybuty XVideo, temperatura barw i
8594399f
JB
59ustawienia OpenGL.
60
8798252c
JR
61Przy uruchamianiu nvidia-settings odczytuje bieżące ustawienia z pliku
62konfiguracyjnego i wysyła te ustawienia do serwera X. Następnie
63wyświetla graficzny interfejs użytkownika (GUI) do konfiguracji
64ustawień. Przy wyłączniu nvidia-settings odczytuje bieżące ustawienia
8594399f
JB
65z serwera X i zapisuje je do pliku konfiguracyjnego.
66
b27b2c83 67%package -n libXNVCtrl-devel
8594399f 68Summary: libXNVCtrl development headers
b7eb71c7 69Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libXNVCtrl
b27b2c83 70Group: Development/Libraries
765f7fba
JR
71Requires: xorg-lib-libX11-devel
72Requires: xorg-lib-libXext-devel
73Requires: xorg-lib-libXxf86vm-devel
74Obsoletes: libXNVCtrl-static
b27b2c83
ER
75
76%description -n libXNVCtrl-devel
765f7fba 77Library for accessing NV-CONTROL extension in NVIDIA's latest drivers.
8594399f 78
8798252c 79%description -n libXNVCtrl-devel -l pl.UTF-8
765f7fba
JR
80Biblioteka do obsługi rozszerzenia NV-CONTROL z najnowszych
81sterowników NVIDIA.
8594399f 82
b27b2c83 83%prep
b83fa72b 84%setup -q
987f172e 85%patch0 -p1
b83fa72b
ER
86
87%{__rm} src/libXNVCtrl/libXNVCtrl.a
b27b2c83
ER
88
89%build
90%if %{with libXNVCtrl}
b83fa72b
ER
91%{__make} -C src/libXNVCtrl \
92 NV_VERBOSE=1 \
4a9d0e43 93 CC="%{__cc}" \
b83fa72b 94 X_CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC"
b27b2c83
ER
95%endif
96
2dece988
ER
97%if %{with utils}
98%{__make} -C samples \
99 NV_VERBOSE=1 \
100 CC="%{__cc}" \
101 OUTPUTDIR=$(pwd)/_out/utils \
102 X_CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC"
103%endif
104
b27b2c83
ER
105%if %{with nvidia_settings}
106%{__make} \
b83fa72b
ER
107 NV_VERBOSE=1 \
108 STRIP_CMD=: \
b27b2c83 109 CC="%{__cc}" \
b83fa72b
ER
110 X_CFLAGS="%{rpmcppflags} %{rpmcflags}" \
111 X_LDFLAGS="%{rpmldflags}"
b27b2c83
ER
112%endif
113
114%install
115rm -rf $RPM_BUILD_ROOT
116%if %{with nvidia_settings}
a604bf49 117install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir},%{_pixmapsdir},/etc/xdg/autostart}
b83fa72b
ER
118%{__make} install \
119 INSTALL="install -p" \
702ac7b4
ER
120 PREFIX=%{_prefix} \
121 DESTDIR=$RPM_BUILD_ROOT
1851a39d
ER
122cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
123cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
a604bf49 124cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/xdg/autostart/%{name}.desktop
b27b2c83
ER
125%endif
126
127%if %{with libXNVCtrl}
765f7fba
JR
128install -d $RPM_BUILD_ROOT%{_examplesdir}/libXNVCtrl-%{version} \
129 $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/NVCtrl}
eac12459 130cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/libXNVCtrl-%{version}
702ac7b4 131rm -r $RPM_BUILD_ROOT%{_examplesdir}/libXNVCtrl-%{version}/_out
958f068f 132cp -p src/libXNVCtrl/nv_control.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl
3917229f
ER
133cp -p src/libXNVCtrl/NVCtrl.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl
134cp -p src/libXNVCtrl/NVCtrlLib.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl
135cp -p src/libXNVCtrl/libXNVCtrl.a $RPM_BUILD_ROOT%{_libdir}
958f068f
ER
136
137install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
138cat <<'EOF' > $RPM_BUILD_ROOT%{_pkgconfigdir}/libXNVCtrl.pc
139prefix=%{_prefix}
140libdir=%{_libdir}
141includedir=${prefix}/include/NVCtrl
142
143Name: libXNVCtrl
144Description: Library for accessing NV-CONTROL extension in NVIDIA's latest drivers.
145Version: %{version}
146Libs: -L${libdir} -lXNVCtrl
147Cflags: -I${includedir}
148EOF
149#'
b27b2c83
ER
150%endif
151
2dece988
ER
152%if %{with utils}
153install -d $RPM_BUILD_ROOT%{_bindir}
154for prog in _out/utils/nv-control-*; do
155 case "$prog" in
156 *.*)
157 continue
158 ;;
159 esac
160 install -p $prog $RPM_BUILD_ROOT%{_bindir}
161done
162%endif
163
b27b2c83
ER
164%clean
165rm -rf $RPM_BUILD_ROOT
166
b27b2c83
ER
167%if %{with nvidia_settings}
168%files
169%defattr(644,root,root,755)
1851a39d
ER
170%attr(755,root,root) %{_bindir}/nvidia-settings
171%{_mandir}/man1/nvidia-settings.1*
172%{_desktopdir}/nvidia-settings.desktop
173%{_pixmapsdir}/nvidia-settings.png
a604bf49 174/etc/xdg/autostart/%{name}.desktop
b27b2c83
ER
175%endif
176
2dece988
ER
177%if %{with utils}
178%attr(755,root,root) %{_bindir}/nv-control-3dvisionpro
179%attr(755,root,root) %{_bindir}/nv-control-dpy
180%attr(755,root,root) %{_bindir}/nv-control-dvc
181%attr(755,root,root) %{_bindir}/nv-control-events
182%attr(755,root,root) %{_bindir}/nv-control-framelock
183%attr(755,root,root) %{_bindir}/nv-control-gvi
184%attr(755,root,root) %{_bindir}/nv-control-info
185%attr(755,root,root) %{_bindir}/nv-control-targets
c7c6d261 186%attr(755,root,root) %{_bindir}/nv-control-warpblend
2dece988
ER
187%endif
188
8594399f 189%if %{with libXNVCtrl}
b27b2c83
ER
190%files -n libXNVCtrl-devel
191%defattr(644,root,root,755)
eac12459 192%doc doc/{FRAMELOCK,NV-CONTROL-API}.txt
765f7fba 193%{_libdir}/libXNVCtrl.a
958f068f
ER
194%{_includedir}/NVCtrl
195%{_pkgconfigdir}/libXNVCtrl.pc
eac12459 196%{_examplesdir}/libXNVCtrl-%{version}
8594399f 197%endif
This page took 0.460504 seconds and 4 git commands to generate.