Sync from SUSE:SLFO:Main libXNVCtrl revision 34739afe3fdc5403c1db9e3a2f4038c7
This commit is contained in:
commit
122bd92329
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/NVIDIA/nvidia-settings.git</param>
|
||||
<param name="revision">510.47.03</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="subdir">src/libXNVCtrl</param>
|
||||
<param name="filename">libXNVCtrl</param>
|
||||
</service>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
</services>
|
BIN
libXNVCtrl-510.47.03.obscpio
(Stored with Git LFS)
Normal file
BIN
libXNVCtrl-510.47.03.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
9
libXNVCtrl.changes
Normal file
9
libXNVCtrl.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 29 13:19:16 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Initial packaging of libXNVCtrl version 510.47.03
|
||||
* nothing changed between 510.47.03 and 515.57
|
||||
- Add required patches:
|
||||
* shared-library.patch
|
||||
* persistent-nvidia-id-string.patch
|
||||
|
4
libXNVCtrl.obsinfo
Normal file
4
libXNVCtrl.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: libXNVCtrl
|
||||
version: 510.47.03
|
||||
mtime: 1643742892
|
||||
commit: 8bb057c8b1ab4cecbbf3916e248ff486fe548066
|
77
libXNVCtrl.spec
Normal file
77
libXNVCtrl.spec
Normal file
@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package libXNVCtrl
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: libXNVCtrl
|
||||
Version: 510.47.03
|
||||
Release: 0
|
||||
Summary: NV-CONTROL X library
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/NVIDIA/nvidia-settings
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Patch0: shared-library.patch
|
||||
Patch1: persistent-nvidia-id-string.patch
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(xv)
|
||||
|
||||
%description
|
||||
The NV-CONTROL X extension provides a mechanism for X clients to query
|
||||
and set configuration parameters of the NVIDIA X driver.
|
||||
State set by the NV-CONTROL X extension is assumed to be persistent
|
||||
only for the current server generation.
|
||||
|
||||
%package -n libXNVCtrl0
|
||||
Summary: NV-CONTROL X extension library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libXNVCtrl0
|
||||
The NV-CONTROL X extension provides a mechanism for X clients to query
|
||||
and set configuration parameters of the NVIDIA X driver.
|
||||
State set by the NV-CONTROL X extension is assumed to be persistent
|
||||
only for the current server generation.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the NV-CONTROL X extension library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libXNVCtrl0 = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the development files for the
|
||||
NV-CONTROL X extension library
|
||||
|
||||
%prep
|
||||
%autosetup -p0
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_includedir}/NVCtrl
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
install -m0644 ./*.h %{buildroot}%{_includedir}/NVCtrl
|
||||
cp -a ./libXNVCtrl.so* %{buildroot}%{_libdir}
|
||||
|
||||
%ldconfig_scriptlets -n libXNVCtrl0
|
||||
|
||||
%files -n libXNVCtrl0
|
||||
%{_libdir}/libXNVCtrl.so.*
|
||||
|
||||
%files -n libXNVCtrl-devel
|
||||
%{_libdir}/libXNVCtrl.so
|
||||
%{_includedir}/NVCtrl
|
||||
|
||||
%changelog
|
15
persistent-nvidia-id-string.patch
Normal file
15
persistent-nvidia-id-string.patch
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
utils.mk | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- utils.mk
|
||||
+++ utils.mk
|
||||
@@ -524,7 +524,7 @@ define GENERATE_NVIDSTRING
|
||||
# g_nvid_string.c depends on all objects except g_nvid_string.o, and version.mk
|
||||
$(NVIDSTRING): $$(filter-out $$(call BUILD_OBJECT_LIST,$$(NVIDSTRING)), $(3)) $$(VERSION_MK)
|
||||
$(at_if_quiet)$$(MKDIR) $$(dir $$@)
|
||||
- $(at_if_quiet)$$(ECHO) "const char $(1)[] = \"nvidia id: NVIDIA $$(strip $(2)) for $$(TARGET_ARCH) $$(NVIDIA_VERSION) $$(NVIDSTRING_BUILD_TYPE_STRING) (`$$(WHOAMI)`@`$$(HOSTNAME)`) `$$(DATE)`\";" > $$@
|
||||
+ $(at_if_quiet)$$(ECHO) "const char $(1)[] = \"nvidia id: NVIDIA $$(strip $(2)) for $$(TARGET_ARCH) $$(NVIDIA_VERSION) $$(NVIDSTRING_BUILD_TYPE_STRING) (abuild@host) `$$(DATE) -d @$$(SOURCE_DATE_EPOCH)`\";" > $$@
|
||||
$(at_if_quiet)$$(ECHO) "const char *const p$$(strip $(1)) = $(1) + 11;" >> $$@;
|
||||
endef
|
||||
|
36
shared-library.patch
Normal file
36
shared-library.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff -Naur nvidia-settings-430.26.old/src/libXNVCtrl/Makefile nvidia-settings-430.26/src/libXNVCtrl/Makefile
|
||||
--- Makefile 2019-06-16 21:49:43.008676795 +0200
|
||||
+++ Makefile 2019-06-16 21:50:31.462519476 +0200
|
||||
@@ -51,7 +51,9 @@
|
||||
.PHONY: clean
|
||||
|
||||
all: $(LIBXNVCTRL)
|
||||
+all: $(LIBXNVCTRL_SHARED)
|
||||
|
||||
clean:
|
||||
rm -rf $(LIBXNVCTRL) *~ \
|
||||
$(OUTPUTDIR)/*.o $(OUTPUTDIR)/*.d
|
||||
+ rm -f $(LIBXNVCTRL_SHARED) $(LIBXNVCTRL_SHARED).*
|
||||
diff -Naur nvidia-settings-430.26.old/src/libXNVCtrl/xnvctrl.mk nvidia-settings-430.26/src/libXNVCtrl/xnvctrl.mk
|
||||
--- xnvctrl.mk 2019-06-16 21:49:43.008676795 +0200
|
||||
+++ xnvctrl.mk 2019-06-18 18:48:30.736176713 +0200
|
||||
@@ -37,7 +37,8 @@
|
||||
XNVCTRL_CFLAGS ?=
|
||||
|
||||
|
||||
-LIBXNVCTRL = $(OUTPUTDIR)/libXNVCtrl.a
|
||||
+LIBXNVCTRL = libXNVCtrl.a
|
||||
+LIBXNVCTRL_SHARED = libXNVCtrl.so
|
||||
|
||||
LIBXNVCTRL_SRC = $(XNVCTRL_DIR)/NVCtrl.c
|
||||
|
||||
@@ -47,3 +48,9 @@
|
||||
|
||||
$(LIBXNVCTRL) : $(LIBXNVCTRL_OBJ)
|
||||
$(call quiet_cmd,AR) ru $@ $(LIBXNVCTRL_OBJ)
|
||||
+
|
||||
+$(LIBXNVCTRL_SHARED): $(LIBXNVCTRL_OBJ)
|
||||
+ $(RM) $@ $@.*
|
||||
+ $(CC) -shared -Wl,-soname=$@.0 -o $@.0.0.0 $(LDFLAGS) $^ -lXext -lX11
|
||||
+ ln -s $@.0.0.0 $@.0
|
||||
+ ln -s $@.0 $@
|
Loading…
Reference in New Issue
Block a user