112 lines
3.2 KiB
RPMSpec
112 lines
3.2 KiB
RPMSpec
|
Name: nvidia-settings
|
||
|
Version: 555.42.02
|
||
|
Release: 1mamba
|
||
|
Summary: NVIDIA driver control panel
|
||
|
Group: System/Kernel and Hardware
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.nvidia.com/object/unix.html
|
||
|
Source: https://github.com/NVIDIA/nvidia-settings.git/%{version}/nvidia-settings-%{version}.tar.bz2
|
||
|
Patch0: nvidia-settings-555.42.02-libxnvctrl_so.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXext-devel
|
||
|
BuildRequires: libXxf86vm-devel
|
||
|
BuildRequires: libat-spi2-core-devel
|
||
|
BuildRequires: libcairo-devel
|
||
|
BuildRequires: libfontconfig-devel
|
||
|
BuildRequires: libfreetype-devel
|
||
|
BuildRequires: libgdk-pixbuf-devel
|
||
|
BuildRequires: libglib-devel
|
||
|
BuildRequires: libgtk2-devel
|
||
|
BuildRequires: libgtk3-devel
|
||
|
BuildRequires: libharfbuzz-devel
|
||
|
BuildRequires: libpango-devel
|
||
|
BuildRequires: libwayland-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
|
||
|
%description
|
||
|
NVIDIA driver control panel.
|
||
|
|
||
|
%package -n libxnvctrl
|
||
|
Group: System/Libraries
|
||
|
Summary: NVIDIA XNVCtrl shared library
|
||
|
|
||
|
%description -n libxnvctrl
|
||
|
This package contains shared libraries for libXNVCtrl.
|
||
|
|
||
|
%package -n libxnvctrl-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for libxnvctrl
|
||
|
Requires: libxnvctrl = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n libxnvctrl-devel
|
||
|
This package contains libraries and header files for developing applications that use libXNVCtrl.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch 0 -p1 -b .libxnvctrl_so
|
||
|
|
||
|
%build
|
||
|
%make \
|
||
|
PREFIX=%{_prefix} \
|
||
|
LIBDIR=%{_libdir} \
|
||
|
DO_STRIP=
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall \
|
||
|
PREFIX=%{_prefix} \
|
||
|
LIBDIR=%{buildroot}%{_libdir} \
|
||
|
DO_STRIP=
|
||
|
|
||
|
install -D -m644 doc/nvidia-settings.desktop %{buildroot}%{_datadir}/applications/nvidia-settings.desktop
|
||
|
install -D -m644 doc/nvidia-settings.png %{buildroot}%{_datadir}/pixmaps/nvidia-settings.png
|
||
|
sed \
|
||
|
-e 's:__UTILS_PATH__:/usr/bin:' \
|
||
|
-e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \
|
||
|
-e 's/__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__/Settings;HardwareSettings;/' \
|
||
|
-e 's/Icon=.*/Icon=nvidia-settings/' \
|
||
|
-i %{buildroot}%{_datadir}/applications/nvidia-settings.desktop
|
||
|
|
||
|
install -D -m0644 src/libXNVCtrl/*.h -t %{buildroot}%{_includedir}/NVCtrl
|
||
|
cp -Pr src/_out/Linux_*/libXNVCtrl.* -t %{buildroot}%{_libdir}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n libxnvctrl -p /sbin/ldconfig
|
||
|
%postun -n libxnvctrl -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/nvidia-settings
|
||
|
%{_libdir}/libnvidia-gtk2.so.*
|
||
|
%{_libdir}/libnvidia-gtk3.so.*
|
||
|
%{_libdir}/libnvidia-wayland-client.so.*
|
||
|
%{_mandir}/man1/nvidia-settings.1*
|
||
|
%{_datadir}/applications/nvidia-settings.desktop
|
||
|
%{_datadir}/pixmaps/nvidia-settings.png
|
||
|
|
||
|
%files -n libxnvctrl
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libXNVCtrl.so.*
|
||
|
%doc COPYING
|
||
|
|
||
|
%files -n libxnvctrl-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/NVCtrl
|
||
|
%{_includedir}/NVCtrl/*.h
|
||
|
%{_libdir}/libXNVCtrl.a
|
||
|
%{_libdir}/libXNVCtrl.so
|
||
|
|
||
|
%changelog
|
||
|
* Mon May 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 555.42.02-1mamba
|
||
|
- package created using the webbuild interface
|