Skip to content

Commit

Permalink
- build nv-control utils
Browse files Browse the repository at this point in the history
Changed files:
    nvidia-settings.spec -> 1.23
  • Loading branch information
glensc authored and cvs2git committed Jun 24, 2012
1 parent 3917229 commit 2dece98
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions nvidia-settings.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without nvidia_settings # build the main package
%bcond_without utils # build utils from samples dir
%bcond_without libXNVCtrl # build libXNVCtrl for http://websvn.kde.org/trunk/kdenonbeta/nvidia/

Summary: Tool for configuring the NVIDIA driver
Expand Down Expand Up @@ -88,6 +89,14 @@ sterowników NVIDIA.
X_CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC"
%endif

%if %{with utils}
%{__make} -C samples \
NV_VERBOSE=1 \
CC="%{__cc}" \
OUTPUTDIR=$(pwd)/_out/utils \
X_CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC"
%endif

%if %{with nvidia_settings}
%{__make} \
NV_VERBOSE=1 \
Expand Down Expand Up @@ -117,6 +126,18 @@ cp -p src/libXNVCtrl/NVCtrlLib.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl
cp -p src/libXNVCtrl/libXNVCtrl.a $RPM_BUILD_ROOT%{_libdir}
%endif

%if %{with utils}
install -d $RPM_BUILD_ROOT%{_bindir}
for prog in _out/utils/nv-control-*; do
case "$prog" in
*.*)
continue
;;
esac
install -p $prog $RPM_BUILD_ROOT%{_bindir}
done
%endif

%clean
rm -rf $RPM_BUILD_ROOT

Expand All @@ -129,6 +150,17 @@ rm -rf $RPM_BUILD_ROOT
%{_pixmapsdir}/nvidia-settings.png
%endif

%if %{with utils}
%attr(755,root,root) %{_bindir}/nv-control-3dvisionpro
%attr(755,root,root) %{_bindir}/nv-control-dpy
%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
%endif

%if %{with libXNVCtrl}
%files -n libXNVCtrl-devel
%defattr(644,root,root,755)
Expand Down

0 comments on commit 2dece98

Please sign in to comment.