package created using the webbuild interface [release 555.42.02-1mamba;Mon May 27 2024]

This commit is contained in:
Silvan Calarco 2024-05-28 00:17:33 +02:00
parent 42ce1d0629
commit 9d8172788b
3 changed files with 151 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# nvidia-settings
NVIDIA driver control panel.

View File

@ -0,0 +1,38 @@
diff --git a/src/Makefile b/src/Makefile
index 68eb140..6d0aab8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -345,7 +345,7 @@ endif
ifdef BUILD_GTK3LIB
$(eval $(call DEBUG_INFO_RULES, $(GTK3LIB)))
-$(GTK3LIB).unstripped: $(LIBXNVCTRL) $(GTK3_OBJS) $(XCP_OBJS) $(IMAGE_OBJS) $(VERSION_MK)
+$(GTK3LIB).unstripped: $(LIBXNVCTRL) $(LIBXNVCTRL_SHARED) $(GTK3_OBJS) $(XCP_OBJS) $(IMAGE_OBJS) $(VERSION_MK)
$(call quiet_cmd,LINK) -shared $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) \
$(LIBXNVCTRL) $(LIBS) $(GTK3_LIBS) \
-Wl,--unresolved-symbols=ignore-all -o $@ \
diff --git a/src/libXNVCtrl/xnvctrl.mk b/src/libXNVCtrl/xnvctrl.mk
index e6be2ef..c0921c4 100644
--- a/src/libXNVCtrl/xnvctrl.mk
+++ b/src/libXNVCtrl/xnvctrl.mk
@@ -39,6 +39,11 @@ XNVCTRL_CFLAGS ?=
LIBXNVCTRL = $(OUTPUTDIR)/libXNVCtrl.a
+LIBXNVCTRL_SHARED = $(OUTPUTDIR)/libXNVCtrl.so
+LIBXNVCTRL_ABI_VERSION_MAJOR = 0
+LIBXNVCTRL_ABI_VERSION_MINOR = 0
+LIBXNVCTRL_LIBS += -lXext -lX11
+
LIBXNVCTRL_SRC = $(XNVCTRL_DIR)/NVCtrl.c
LIBXNVCTRL_OBJ = $(call BUILD_OBJECT_LIST,$(LIBXNVCTRL_SRC))
@@ -47,3 +52,8 @@ $(eval $(call DEFINE_OBJECT_RULE,TARGET,$(LIBXNVCTRL_SRC)))
$(LIBXNVCTRL) : $(LIBXNVCTRL_OBJ)
$(call quiet_cmd,AR) ru $@ $(LIBXNVCTRL_OBJ)
+
+$(LIBXNVCTRL_SHARED) : $(LIBXNVCTRL_OBJ)
+ $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname=$(notdir $@).${LIBXNVCTRL_ABI_VERSION_MAJOR} -o $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $^ $(LIBXNVCTRL_LIBS)
+ ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@
+ ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR)

111
nvidia-settings.spec Normal file
View File

@ -0,0 +1,111 @@
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